当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
MembershipModule - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.identity2
Interface MembershipModule
- All Known Implementing Classes:
- LDAPMembershipModuleImpl
- public interface MembershipModule
- Version:
- $Revision: 1.1 $
- Author:
- Boleslaw Dawidowicz
Method Summary |
void |
assignRoles(User user,
java.util.Set roles)
|
void |
assignUsers(Role role,
java.util.Set users)
|
java.util.Set |
findRoleMembers(java.lang.String roleName,
int offset,
int limit,
java.lang.String userNameFilter)
Returns role members based on rolename |
java.util.Set |
getRoles(User user)
Return the set of role objects that a given user has. |
java.util.Set |
getUsers(Role role)
|
getRoles
public java.util.Set getRoles(User user)
throws IdentityException
- 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
- Throws:
IdentityException
assignUsers
public void assignUsers(Role role,
java.util.Set users)
throws IdentityException
- Throws:
IdentityException
assignRoles
public void assignRoles(User user,
java.util.Set roles)
throws IdentityException
- Throws:
IdentityException
findRoleMembers
public java.util.Set findRoleMembers(java.lang.String roleName,
int offset,
int limit,
java.lang.String userNameFilter)
throws IdentityException
- Returns role members based on rolename
- Parameters:
roleName
- offset
- limit
-
- Throws:
IdentityException