Interface IRoleProvider
- All Superinterfaces:
IComponent
,IDirSystemManagementObject
,IInitializable
The IRole provider manages the configuration and contents of all the registered
roles.
-
Field Summary
Fields inherited from interface com.webmethods.portal.service.dir.IDirSystemManagementObject
CREATE_GROUP_MODE, CREATE_USER_MODE, CURRENT_PRINCIPAL
-
Method Summary
Modifier and TypeMethodDescriptiongetImplementationID
(IDirRole dirRole) Get the thingID that is the 'storage' or 'implementation' for the dir role.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 rolevoid
modifyRoleMembership
(IURI principalURI, IDirRole dirRole, boolean add) Adds or removes a principal to the roleboolean
Not all role providers support looking up role membership; in fact most don't.boolean
Whether or not this IRoleProvider supports modifications of its roles.Methods inherited from interface com.webmethods.portal.system.IComponent
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
Methods inherited from interface com.webmethods.portal.service.dir.IDirSystemManagementObject
getPortletBean
Methods inherited from interface com.webmethods.portal.system.init.IInitializable
init, shutdown
-
Method Details
-
isMemberOfRole
Determines whether the user/group is a member of the role- Parameters:
principalURI
-dirRole
-- Returns:
- true if a member, false otherwise
- Throws:
PortalException
-
supportsRoleModification
Whether or not this IRoleProvider supports modifications of its roles. For isntance, an LDAP Role Provider does not- Throws:
PortalException
-
modifyRoleMembership
Adds or removes a principal to the role- Throws:
PortalException
-
getImplementationID
Get the thingID that is the 'storage' or 'implementation' for the dir role. It's found via it's relation- Throws:
PortalException
-
supportsRoleMembershipLookup
Not all role providers support looking up role membership; in fact most don't. For instance, a HttpRule based role provider can never know the full membership list- Returns:
- true if supported, false otherwise
- Throws:
PortalException
- See Also:
-
getRoleMembership
Return the membership of this role. NOTE: most providers don't support this- Parameters:
dirRole
-- Returns:
- a list of the (known) members of this role
- Throws:
PortalException
- See Also:
-