|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The manager/container for all the roles defined in the process definition for the current application. The IRoleManager is a part of the application's process definition; a handle to the role manager can be obtained via the IProcessDefinition interface.
IRole
,
IProcessDefinition
Method Summary | |
boolean |
containsRole(java.lang.String roleName)
Returns true if the given role name corresponds to a role that has been registered with the role manager. |
IRole |
getRole(java.lang.String roleName)
Returns the role with name roleName . |
java.util.Enumeration |
resolveRoles(IParticipant p)
Returns an enumeration of the names of the roles the user belongs to. |
java.util.Enumeration |
resolveRoles(IParticipant p,
IProcessInstance pi)
Returns an enumeration of the names of the roles the user belongs to, given the context of the process instance. |
java.util.Enumeration |
roles()
Returns a list of all the defined roles registered with the role manager. |
Method Detail |
public boolean containsRole(java.lang.String roleName)
roleName
- the name of the role to checktrue
if the role has been registered with the
role manager; false
otherwise.public IRole getRole(java.lang.String roleName) throws PMException
roleName
. This method will
throw an exception if there is no role with name roleName
.
Users should use containsRole
instead to check if the
role exists if that is the main intention.roleName
- the name of the role to fetchroleName
.PMException
- if there is no such role registered with the
role manager.containsRole(java.lang.String)
,
IRole
public java.util.Enumeration resolveRoles(IParticipant p, IProcessInstance pi) throws PMException
getRoleUsers
method of the
IRoleCache
interface; this method returns the set of
role names the user belongs to within the context of this application,
whereas the IRoleCache method returns the qualified role names of
all the roles the user belongs to within the context of the cluster.p
- the user to search forpi
- the process instance to establish contextPMException
- if there is a problem resolving any role's
membership roster.IParticipant
,
IProcessInstance
public java.util.Enumeration resolveRoles(IParticipant p) throws PMException
resolveRoles( IParticipant )
in that this method should
be called where there is no process instance to establish context.
Users should note that the only role that relies upon the process
instance to resolve itself is a data field role; thus this method
can be used successfully in situations where a process instance is
not available.p
- the user to search forPMException
- if there is a problem resolving any role's
membership roster.IParticipant
public java.util.Enumeration roles()
IRole
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |