Interface IRoleSystem
public interface IRoleSystem
Date: Oct 19, 2004
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearCache
(IDirPrincipal principal) Clear any cached information for the supplied principaldefault IPagingCookie
createRoleCookie
(IContext context) findRoleByDN
(String dn) Given a dn, find the roleReturns the admin rolegetRoleFromThing
(IThingID thingID) Returns theIDirRole
portlet which is associated with this IThingIDgetRoleProviderFromThing
(IThingID thingID) Returns theIRoleProvider
portlet which is associated with this IThingIDRetrieves the list ofIThing
s which are portlets which implement theIRoleProvider
interface and are currently configured.getRoleProviders
(IThingID userID) Retrieves the list ofIThing
s which are portlets which implement theIRoleProvider
interface and are currently configured.Get all available resolversgetRoles()
Returns a list of IThingIDs that is all of the defined roles in the portalReturns a list of IThingIDs that is all of the defined roles in the portallookupRoleByID
(String uid) Lookup a role based on its uidlookupRoles
(IPagingCookie pagingCookie, int maxResults) lookupRoles
(IPagingCookie pagingCookie, int maxResults, String regEx) void
registerResolver
(IRoleResolver resolver) Register a new resolvervoid
shutdown()
Called during shutdown to allow the object to release resourcesboolean
unregisterResolver
(IRoleResolver resolver) un register
-
Method Details
-
shutdown
void shutdown()Called during shutdown to allow the object to release resources -
getRoleProviderFromThing
Returns theIRoleProvider
portlet which is associated with this IThingID- Parameters:
thingID
-- Returns:
- an
IRoleProvider
- Throws:
PortalException
-
getRoleProviders
Retrieves the list ofIThing
s which are portlets which implement theIRoleProvider
interface and are currently configured.- Returns:
- list of IThingIDs
- Throws:
PortalException
-
getRoleProviders
Retrieves the list ofIThing
s which are portlets which implement theIRoleProvider
interface and are currently configured.- Parameters:
userID
- filtered for the current user- Returns:
- list of IThingIDs
- Throws:
PortalException
-
getRoles
Returns a list of IThingIDs that is all of the defined roles in the portal- Throws:
PortalException
-
getRoles
Returns a list of IThingIDs that is all of the defined roles in the portal- Parameters:
userID
- filtered for the current user- Throws:
PortalException
-
getRoleFromThing
Returns theIDirRole
portlet which is associated with this IThingID- Parameters:
thingID
-- Returns:
- an
IDirRole
- Throws:
PortalException
-
getAdminRole
Returns the admin role- Throws:
PortalException
-
findRoleByDN
Given a dn, find the role- Throws:
PortalException
-
lookupRoleByID
Lookup a role based on its uid- Parameters:
uid
-- Throws:
PortalException
-
lookupRoles
default IListView<IDirRole> lookupRoles(IPagingCookie pagingCookie, int maxResults) throws PortalException, BizException - Throws:
PortalException
BizException
-
lookupRoles
default IListView<IDirRole> lookupRoles(IPagingCookie pagingCookie, int maxResults, String regEx) throws PortalException, BizException - Throws:
PortalException
BizException
-
createRoleCookie
- Throws:
PortalException
-
getDefaultPrincipalAttributeProvider
IPrincipalAttributeProvider getDefaultPrincipalAttributeProvider()- Returns:
- the default pap for roles
-
registerResolver
Register a new resolver- Parameters:
resolver
-
-
unregisterResolver
un register -
getRoleResolvers
List<IRoleResolver> getRoleResolvers()Get all available resolvers -
clearCache
Clear any cached information for the supplied principal- Parameters:
principal
- the principal to clear the cache for- Throws:
PortalException
-