public interface IRoleProvider extends IDirSystemManagementObject
CREATE_GROUP_MODE, CREATE_USER_MODE, CURRENT_PRINCIPAL
Modifier and Type | Method and Description |
---|---|
IThingID |
getImplementationID(IDirRole dirRole)
Get the thingID that is the 'storage' or 'implementation' for the dir role.
|
IDirPrincipalList |
getRoleMembership(IDirRole dirRole)
Return the membership of this role.
|
boolean |
isMemberOfRole(IURI principalURI,
IDirRole dirRole)
Determines whether the user/group is a member of the role
|
void |
modifyRoleMembership(IURI principalURI,
IDirRole dirRole,
boolean add)
Adds or removes a principal to the role
|
boolean |
supportsRoleMembershipLookup()
Not all role providers support looking up role membership; in fact most don't.
|
boolean |
supportsRoleModification()
Whether or not this IRoleProvider supports modifications of its roles.
|
getPortletBean
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
boolean isMemberOfRole(IURI principalURI, IDirRole dirRole) throws PortalException
principalURI
- dirRole
- PortalException
boolean supportsRoleModification() throws PortalException
PortalException
void modifyRoleMembership(IURI principalURI, IDirRole dirRole, boolean add) throws PortalException
PortalException
IThingID getImplementationID(IDirRole dirRole) throws PortalException
PortalException
boolean supportsRoleMembershipLookup() throws PortalException
PortalException
getRoleMembership(IDirRole)
IDirPrincipalList getRoleMembership(IDirRole dirRole) throws PortalException
dirRole
- PortalException
supportsRoleMembershipLookup()