org.jboss.portal.identity.ldap
Class LDAPStaticGroupMembershipModuleImpl
java.lang.Object
org.jboss.portal.identity.service.IdentityModuleService
org.jboss.portal.identity.service.MembershipModuleService
org.jboss.portal.identity.ldap.LDAPMembershipModule
org.jboss.portal.identity.ldap.LDAPStaticGroupMembershipModuleImpl
- All Implemented Interfaces:
- MembershipModule
public class LDAPStaticGroupMembershipModuleImpl
- extends LDAPMembershipModule
- Version:
- $Revision: 1.1 $
- Author:
- Boleslaw Dawidowicz
Method Summary |
void |
assignRoles(User user,
java.util.Set roles)
Creates a relationship beetween a user and set of roles. |
void |
assignUsers(Role role,
java.util.Set users)
Creates a relationship beetween a role and set of users. |
java.util.Set |
findRoleMembers(java.lang.String roleName,
int offset,
int limit,
java.lang.String userNameFilter)
Returns role members based on rolename - depreciated method ethod here only for compatibility with
old RoleModule interface |
java.util.Set |
getRoles(User user)
Return the set of role objects that a given user has. |
java.util.Set |
getUsers(Role role)
Returns the set of user objects that a given role has. |
java.util.Set |
getUsers(Role role,
java.lang.String userNameFilter)
|
Methods inherited from class org.jboss.portal.identity.service.IdentityModuleService |
getConnectionJNDIName, getIdentityConfiguration, getIdentityContext, getIdentityEventBroadcaster, getInitOptions, getJndiBinder, getJNDIName, getModuleType, setConnectionJNDIName, setIdentityContext, setInitOptions, setJndiBinder, setJNDIName, setModuleType, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPStaticGroupMembershipModuleImpl
public LDAPStaticGroupMembershipModuleImpl()
getRoles
public java.util.Set getRoles(User user)
throws IdentityException
- Description copied from interface:
MembershipModule
- Return the set of role objects that a given user has.
- Parameters:
user
- the user
- Returns:
- the set of roles of the specified user
- Throws:
IdentityException
getUsers
public java.util.Set getUsers(Role role)
throws IdentityException
- Description copied from interface:
MembershipModule
- Returns the set of user objects that a given role has.
- Returns:
-
- Throws:
IdentityException
getUsers
public java.util.Set getUsers(Role role,
java.lang.String userNameFilter)
throws IdentityException
- Throws:
IdentityException
assignUsers
public void assignUsers(Role role,
java.util.Set users)
throws IdentityException
- Description copied from interface:
MembershipModule
- Creates a relationship beetween a role and set of users. Other roles that have assotiontions with
those users remain unaffected.
- Throws:
IdentityException
assignRoles
public void assignRoles(User user,
java.util.Set roles)
throws IdentityException
- Description copied from interface:
MembershipModule
- Creates a relationship beetween a user and set of roles. This operation will erase any other assotientions
beetween the user and roles not specified in the provided set.
- Throws:
IdentityException
findRoleMembers
public java.util.Set findRoleMembers(java.lang.String roleName,
int offset,
int limit,
java.lang.String userNameFilter)
throws IdentityException
- Description copied from interface:
MembershipModule
- Returns role members based on rolename - depreciated method ethod here only for compatibility with
old RoleModule interface
- Throws:
IdentityException