shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdem...@apache.org
Subject [3/5] shiro git commit: SHIRO-300 Add protected setParts(list) method to WildcardPermission so subclasses can create their own parts/subparts list.
Date Wed, 29 Jun 2016 22:06:17 GMT
SHIRO-300 Add protected setParts(list) method to WildcardPermission so subclasses can create
their own parts/subparts list.

Fixes #17


Project: http://git-wip-us.apache.org/repos/asf/shiro/repo
Commit: http://git-wip-us.apache.org/repos/asf/shiro/commit/a862620b
Tree: http://git-wip-us.apache.org/repos/asf/shiro/tree/a862620b
Diff: http://git-wip-us.apache.org/repos/asf/shiro/diff/a862620b

Branch: refs/heads/master
Commit: a862620bec0618d763ebe42b22bef8660b34dfdf
Parents: dbd1d62
Author: Matt Bishop <matthew.bishop@elasticpath.com>
Authored: Sun May 29 12:06:01 2016 -0700
Committer: Brian Demers <bdemers@stormpath.com>
Committed: Wed Jun 29 14:16:40 2016 -0700

----------------------------------------------------------------------
 .../apache/shiro/authz/permission/WildcardPermission.java   | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/shiro/blob/a862620b/core/src/main/java/org/apache/shiro/authz/permission/WildcardPermission.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/shiro/authz/permission/WildcardPermission.java
b/core/src/main/java/org/apache/shiro/authz/permission/WildcardPermission.java
index 54032a3..4149771 100644
--- a/core/src/main/java/org/apache/shiro/authz/permission/WildcardPermission.java
+++ b/core/src/main/java/org/apache/shiro/authz/permission/WildcardPermission.java
@@ -182,6 +182,15 @@ public class WildcardPermission implements Permission, Serializable {
         return this.parts;
     }
 
+    /**
+     * Sets the pre-split String parts of this <code>WildcardPermission</code>.
+     * @since 1.3.0
+     * @param parts pre-split String parts.
+     */
+    protected void setParts(List<Set<String>> parts) {
+        this.parts = parts;
+    }
+
     /*--------------------------------------------
     |               M E T H O D S               |
     ============================================*/


Mime
View raw message