[jboss-cvs] JBossAS SVN: r69806 - projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 12 18:03:31 EST 2008
Author: sguilhen at redhat.com
Date: 2008-02-12 18:03:31 -0500 (Tue, 12 Feb 2008)
New Revision: 69806
Modified:
projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity/Role.java
Log:
Added getParent() method to the Role interface, to allow a role (or group) to retrieve a reference to its parent group.
Modified: projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity/Role.java
===================================================================
--- projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity/Role.java 2008-02-12 23:02:47 UTC (rev 69805)
+++ projects/security/security-spi/trunk/identity/src/main/org/jboss/security/identity/Role.java 2008-02-12 23:03:31 UTC (rev 69806)
@@ -30,19 +30,19 @@
* @version $Revision$
*/
public interface Role
-{
+{
/**
* Get Name of the Role
* @return
*/
public String getRoleName();
-
+
/**
* Get type of role
* @return simple,group
*/
public RoleType getType();
-
+
/**
* Indicate whether the argument role is equal or contained
* depending on the role-type
@@ -50,4 +50,10 @@
* @return true or false
*/
public boolean containsAll(Role anotherRole);
+
+ /**
+ * Gets a reference to the parent role, if one is available.
+ * @return a reference to the parent role if one exists; {@code null} otherwise.
+ */
+ public Role getParent();
}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list