[jboss-cvs] JBossAS SVN: r77999 - in projects/security/security-spi/trunk: acl/src/main/org/jboss/security/acl and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Sep 4 14:49:37 EDT 2008
Author: sguilhen at redhat.com
Date: 2008-09-04 14:49:37 -0400 (Thu, 04 Sep 2008)
New Revision: 77999
Modified:
projects/security/security-spi/trunk/.project
projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java
projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java
Log:
SECURITY-258: Added getEntry(Identity) method to ACL to allow the retrieval of specific entries by the ACLProvider.getEntitlements method. Added keys to get the part and child resources of a resource.
Modified: projects/security/security-spi/trunk/.project
===================================================================
--- projects/security/security-spi/trunk/.project 2008-09-04 18:14:49 UTC (rev 77998)
+++ projects/security/security-spi/trunk/.project 2008-09-04 18:49:37 UTC (rev 77999)
@@ -1,15 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
- <name>jboss-security</name>
- <comment>JBoss Security is a cross cutting project that handles security
+ <name>security-spi</name>
+ <comment>JBoss Security is a cross cutting project that handles security
for the JEMS projects</comment>
- <projects/>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments/>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
\ No newline at end of file
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Modified: projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java
===================================================================
--- projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java 2008-09-04 18:14:49 UTC (rev 77998)
+++ projects/security/security-spi/trunk/acl/src/main/org/jboss/security/acl/ACL.java 2008-09-04 18:49:37 UTC (rev 77999)
@@ -77,6 +77,16 @@
/**
* <p>
+ * Obtains the entry that corresponds to the specified identity.
+ * </p>
+ *
+ * @param identity a reference to the {@code Identity} object.
+ * @return the {@code ACLEntry} that corresponds to the identity, or {@code null} if no entry could be found.
+ */
+ public ACLEntry getEntry(Identity identity);
+
+ /**
+ * <p>
* Obtains a reference to the resource being protected by this ACL.
* </p>
*
Modified: projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java
===================================================================
--- projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java 2008-09-04 18:14:49 UTC (rev 77998)
+++ projects/security/security-spi/trunk/authorization/src/main/org/jboss/security/authorization/ResourceKeys.java 2008-09-04 18:49:37 UTC (rev 77999)
@@ -30,7 +30,10 @@
* @version $Revision$
*/
public interface ResourceKeys
-{
+{
+ String PARENT_RESOURCE = "parentResource";
+ String CHILD_RESOURCES = "childResources";
+
String HASROLE_PRINCIPAL = "hasRole.Principal";
String PRINCIPAL_ROLES = "principal.roles";
String RESOURCE_PERM_CHECK = "resourcePermissionCheck";
More information about the jboss-cvs-commits
mailing list