[jboss-identity-commits] JBoss Identity SVN: r18 - trunk/identity-api/src/main/java/org/jboss/identity/api/managers.

jboss-identity-commits at lists.jboss.org jboss-identity-commits at lists.jboss.org
Thu Jul 10 13:49:10 EDT 2008


Author: anil.saldhana at jboss.com
Date: 2008-07-10 13:49:10 -0400 (Thu, 10 Jul 2008)
New Revision: 18

Modified:
   trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
Log:
JBID-5: managers api

Modified: trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
===================================================================
--- trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java	2008-07-10 17:48:55 UTC (rev 17)
+++ trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java	2008-07-10 17:49:10 UTC (rev 18)
@@ -34,6 +34,7 @@
  * <p>Manages the relationships between
  * roles, groups, identities and realms</p>
  * @author Anil.Saldhana at redhat.com
+ * @author <a href="mailto:boleslaw dot dawidowicz at redhat anotherdot com">Boleslaw Dawidowicz</a>
  * @since Jul 10, 2008
  */
 public interface RelationshipManager
@@ -85,4 +86,66 @@
     * @param aGroupSet
     */
    void associate(Realm realm,Identity identity, Set<Group> aGroupSet);
+   
+   /**
+    * <p>Disassociate a relationship between two groups</p>
+    * @param groupA
+    * @param groupB
+    * @param relationshipType
+    */
+   void disassociate(Group groupA, Group groupB, RelationshipType relationshipType);
+   
+   /**
+    * <p>Disassociate a relationship between two realms</p>
+    * @param realmA
+    * @param realmB
+    * @param relationshipType
+    */
+   void disassociate(Realm realmA, Realm realmB, RelationshipType relationshipType);
+   
+   /**
+    * <p>Disassociate a role with an Identity</p>
+    * @param realm
+    * @param identity
+    * @param aRole
+    */
+   void disassociate(Realm realm, Identity identity, Role aRole);
+   
+   /**
+    * <p>Disassociate a list of roles with an Identity</p>
+    * @param realm
+    * @param identity
+    * @param aRoleList
+    */
+   void disassociate(Realm realm, Identity identity, List<Role> aRoleList);
+   
+   /**
+    * <p>Disassociate a group with an identity</p>
+    * @param realm
+    * @param identity
+    * @param aGroup
+    */
+   void disassociate(Realm realm,Identity identity, Group aGroup);
+   
+   /**
+    * <p>Disassociate a set of groups with an identity</p>
+    * @param realm
+    * @param identity
+    * @param aGroupSet
+    */
+   void disassociate(Realm realm,Identity identity, Set<Group> aGroupSet);
+  
+   /**
+    * @param fromGroup
+    * @param toGroup
+    * @return returns a relationship type between this and given group.
+    */
+   RelationshipType getRelationship(Group fromGroup, Group toGroup);
+
+   /**
+    * @param fromRealm
+    * @param toRealm
+    * @return returns a relationship type between this and given Realm.
+    */
+   RelationshipType getRelationship(Realm fromRealm, Realm toRealm);
 }
\ No newline at end of file




More information about the jboss-identity-commits mailing list