This is an automated email from the ASF dual-hosted git repository.

jinmeiliao pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new 8eeb201  GEODE-3621: revert the change to maintain backward 
compatibility
8eeb201 is described below

commit 8eeb20117c5255be8023e9181caeec268ad082c8
Author: Jinmei Liao <[email protected]>
AuthorDate: Mon Oct 2 10:06:35 2017 -0700

    GEODE-3621: revert the change to maintain backward compatibility
---
 .../apache/geode/security/ResourcePermission.java  | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git 
a/geode-core/src/main/java/org/apache/geode/security/ResourcePermission.java 
b/geode-core/src/main/java/org/apache/geode/security/ResourcePermission.java
index b36fb55..d47888f 100644
--- a/geode-core/src/main/java/org/apache/geode/security/ResourcePermission.java
+++ b/geode-core/src/main/java/org/apache/geode/security/ResourcePermission.java
@@ -29,6 +29,15 @@ public class ResourcePermission extends WildcardPermission {
 
   public static String ALL = "*";
 
+  /**
+   * @deprecated use ALL
+   */
+  public static String ALL_REGIONS = "*";
+  /**
+   * @deprecated use All
+   */
+  public static String ALL_KEYS = "*";
+
   public enum Resource {
     NULL, CLUSTER, DATA
   }
@@ -67,6 +76,20 @@ public class ResourcePermission extends WildcardPermission {
     this(Resource.NULL, Operation.NULL, ALL, ALL);
   }
 
+  public ResourcePermission(String resource, String operation) {
+    this(resource, operation, ALL, ALL);
+  }
+
+  public ResourcePermission(String resource, String operation, String target) {
+    this(resource, operation, target, ALL);
+  }
+
+  public ResourcePermission(String resource, String operation, String target, 
String key) {
+    this((resource == null) ? Resource.NULL : 
Resource.valueOf(resource.toUpperCase()),
+        (operation == null) ? Operation.NULL : 
Operation.valueOf(operation.toUpperCase()), target,
+        key);
+  }
+
   public ResourcePermission(Resource resource, Operation operation) {
     this(resource, operation, ALL, ALL);
   }
@@ -123,6 +146,13 @@ public class ResourcePermission extends WildcardPermission 
{
   }
 
   /**
+   * @deprecated use getTarget()
+   */
+  public String getRegionName() {
+    return getTarget();
+  }
+
+  /**
    * returns the key, could be "*" meaning all keys.
    */
   public String getKey() {

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to