Author: anil.saldhana(a)jboss.com
Date: 2008-07-22 19:11:01 -0400 (Tue, 22 Jul 2008)
New Revision: 30
Modified:
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
Log:
JBID-19: associate/disassociate groups with one group
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-22
23:09:00 UTC (rev 29)
+++
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java 2008-07-22
23:11:01 UTC (rev 30)
@@ -51,6 +51,17 @@
*/
void associate(Group groupA, Group groupB, RelationshipType relationshipType)
throws PersistenceManagerNotFoundException,SessionNotOpenException;
+
+ /**
+ * Associate a relationship between one group and a list of other groups
+ * @param groupA
+ * @param groupB a list of groups which are related to groupA
+ * @param relationshipType
+ * @throws PersistenceManagerNotFoundException
+ * @throws SessionNotOpenException
+ */
+ void associate(Group groupA, List<Group> groupB, RelationshipType
relationshipType)
+ throws PersistenceManagerNotFoundException,SessionNotOpenException;
/**
* <p>Associate a relationship between two realms</p>
@@ -119,6 +130,17 @@
throws PersistenceManagerNotFoundException,SessionNotOpenException;
/**
+ * Disassociate a relationship between one group and a list of other groups
+ * @param groupA
+ * @param groupB
+ * @param relationshipType
+ * @throws PersistenceManagerNotFoundException
+ * @throws SessionNotOpenException
+ */
+ void disassociate(Group groupA, List<Group> groupB, RelationshipType
relationshipType)
+ throws PersistenceManagerNotFoundException,SessionNotOpenException;
+
+ /**
* <p>Disassociate a relationship between two realms</p>
* @param realmA
* @param realmB
Show replies by date