sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject [2/2] git commit: SENTRY-39 - Rename class in "search" module to Search (Gregory Chanan via Brock Noland)
Date Wed, 09 Oct 2013 22:50:01 GMT
SENTRY-39 - Rename class in "search" module to Search (Gregory Chanan via Brock Noland)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/224aa8c8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/224aa8c8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/224aa8c8

Branch: refs/heads/master
Commit: 224aa8c8b631fa049d9ed6f1162f8ed8af9bd6e7
Parents: d1b14ba
Author: Brock Noland <brock@apache.org>
Authored: Wed Oct 9 17:49:53 2013 -0500
Committer: Brock Noland <brock@apache.org>
Committed: Wed Oct 9 17:49:53 2013 -0500

----------------------------------------------------------------------
 .../sentry/core/model/search/Collection.java    |  4 +-
 .../core/model/search/SearchConstants.java      | 25 +++++++++++++
 .../core/model/search/SearchModelAction.java    | 39 ++++++++++++++++++++
 .../model/search/SearchModelAuthorizable.java   | 28 ++++++++++++++
 .../sentry/core/model/search/SolrConstants.java | 25 -------------
 .../core/model/search/SolrModelAction.java      | 39 --------------------
 .../model/search/SolrModelAuthorizable.java     | 28 --------------
 7 files changed, 94 insertions(+), 94 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/224aa8c8/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/Collection.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/Collection.java
b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/Collection.java
index a35a9c2..26ea287 100644
--- a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/Collection.java
+++ b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/Collection.java
@@ -16,12 +16,12 @@
  */
 package org.apache.sentry.core.model.search;
 
-public class Collection implements SolrModelAuthorizable {
+public class Collection implements SearchModelAuthorizable {
 
   /**
    * Represents all tables
    */
-  public static final Collection ALL = new Collection(SolrConstants.ALL);
+  public static final Collection ALL = new Collection(SearchConstants.ALL);
 
   private final String name;
 

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/224aa8c8/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchConstants.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchConstants.java
b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchConstants.java
new file mode 100644
index 0000000..7a39b79
--- /dev/null
+++ b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchConstants.java
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sentry.core.model.search;
+
+public class SearchConstants {
+
+  public static final String ALL = "*";
+  public static final String QUERY = "query";
+  public static final String UPDATE = "update";
+
+}

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/224aa8c8/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAction.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAction.java
b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAction.java
new file mode 100644
index 0000000..48ac267
--- /dev/null
+++ b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAction.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sentry.core.model.search;
+
+import org.apache.sentry.core.common.Action;
+
+/**
+ * Represents actions in the Search model.
+ */
+public enum SearchModelAction implements Action {
+
+  UPDATE(SearchConstants.UPDATE),
+  QUERY(SearchConstants.QUERY),
+  ALL(SearchConstants.ALL);
+
+  private final String value;
+  private SearchModelAction(String value) {
+    this.value = value;
+  }
+
+  @Override
+  public String getValue() {
+    return value;
+  }
+}

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/224aa8c8/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAuthorizable.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAuthorizable.java
b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAuthorizable.java
new file mode 100644
index 0000000..4526c4e
--- /dev/null
+++ b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SearchModelAuthorizable.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sentry.core.model.search;
+
+import org.apache.sentry.core.common.Authorizable;
+
+public interface SearchModelAuthorizable extends Authorizable {
+
+  public enum AuthorizableType {
+    Collection
+  };
+
+  public AuthorizableType getAuthzType();
+}

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/224aa8c8/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrConstants.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrConstants.java
b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrConstants.java
deleted file mode 100644
index a100526..0000000
--- a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrConstants.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.sentry.core.model.search;
-
-public class SolrConstants {
-
-  public static final String ALL = "*";
-  public static final String QUERY = "query";
-  public static final String UPDATE = "update";
-
-}

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/224aa8c8/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAction.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAction.java
b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAction.java
deleted file mode 100644
index ed9a2f3..0000000
--- a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAction.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.sentry.core.model.search;
-
-import org.apache.sentry.core.common.Action;
-
-/**
- * Represents actions in the Solr model.
- */
-public enum SolrModelAction implements Action {
-
-  UPDATE(SolrConstants.UPDATE),
-  QUERY(SolrConstants.QUERY),
-  ALL(SolrConstants.ALL);
-
-  private final String value;
-  private SolrModelAction(String value) {
-    this.value = value;
-  }
-
-  @Override
-  public String getValue() {
-    return value;
-  }
-}

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/224aa8c8/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAuthorizable.java
----------------------------------------------------------------------
diff --git a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAuthorizable.java
b/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAuthorizable.java
deleted file mode 100644
index d7d5fb3..0000000
--- a/sentry-core/sentry-core-model-search/src/main/java/org/apache/sentry/core/model/search/SolrModelAuthorizable.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.sentry.core.model.search;
-
-import org.apache.sentry.core.common.Authorizable;
-
-public interface SolrModelAuthorizable extends Authorizable {
-
-  public enum AuthorizableType {
-    Collection
-  };
-
-  public AuthorizableType getAuthzType();
-}


Mime
View raw message