Author: anil.saldhana(a)jboss.com
Date: 2008-07-10 12:54:42 -0400 (Thu, 10 Jul 2008)
New Revision: 14
Modified:
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java
Log:
JBID-5: additional 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
14:35:34 UTC (rev 13)
+++
trunk/identity-api/src/main/java/org/jboss/identity/api/managers/RelationshipManager.java 2008-07-10
16:54:42 UTC (rev 14)
@@ -21,13 +21,18 @@
*/
package org.jboss.identity.api.managers;
+import java.util.List;
+import java.util.Set;
+
+import org.jboss.identity.model.Identity;
+import org.jboss.identity.model.Role;
import org.jboss.identity.model.domain.Realm;
import org.jboss.identity.model.groups.Group;
import org.jboss.identity.model.relation.RelationshipType;
/**
- * Manages the relationships between
- * groups, realms
+ * <p>Manages the relationships between
+ * roles, groups, identities and realms</p>
* @author Anil.Saldhana(a)redhat.com
* @since Jul 10, 2008
*/
@@ -48,4 +53,36 @@
* @param relationshipType
*/
void associate(Realm realmA, Realm realmB, RelationshipType relationshipType);
+
+ /**
+ * <p>Associate a role with an Identity</p>
+ * @param realm
+ * @param identity
+ * @param aRole
+ */
+ void associate(Realm realm, Identity identity, Role aRole);
+
+ /**
+ * <p>Associate a list of roles with an Identity</p>
+ * @param realm
+ * @param identity
+ * @param aRoleList
+ */
+ void associate(Realm realm, Identity identity, List<Role> aRoleList);
+
+ /**
+ * <p>Associate a group with an identity</p>
+ * @param realm
+ * @param identity
+ * @param aGroup
+ */
+ void associate(Realm realm,Identity identity, Group aGroup);
+
+ /**
+ * <p>Associate a set of groups with an identity</p>
+ * @param realm
+ * @param identity
+ * @param aGroupSet
+ */
+ void associate(Realm realm,Identity identity, Set<Group> aGroupSet);
}
\ No newline at end of file
Show replies by date