| |
|
| java.lang.Object de.danet.an.workflow.liferayrms.RmsService
RmsService | public RmsService()(Code) | | Constructs a new resource management service. A context and resource
assignment service must be set and init must be called after creating
an instance with this constructor.
Parameters: ctx - the application context Parameters: rasvc - the resource assignment service throws: FactoryConfigurationError - if the required resourcescannot be obtained |
asResource | public WfResource asResource(Principal principal) throws ResourceNotFoundException, RemoteException(Code) | | Given a
java.security.Principal principal , return the
workflow resource associated with this principal by the
resource management facility.
The implementation assumes that the given principal is the
value assigned as principal by the associated
de.danet.an.staffmgmt.jbossx.StaffMemberLoginModuleauthentication component .
Parameters: principal - the principal. a WfResource object corresponding to thegiven principal. throws: ResourceNotFoundException - if the StaffMember with the given keycan't be found or the key is not associate with an StaffMember object. throws: RemoteException - if a system-level error occurs. |
init | public void init() throws FactoryConfigurationError(Code) | | Initialize the RMS. Called autromatically by the constructor
that has the parameters. When the constructor without parameters
is used, this must be called after setting the context and the
resource assignment service.
|
selectResources | public Collection selectResources(Object resSel) throws RemoteException, UnsupportedOperationException(Code) | | The resSel paramter is evaluated if it is of type
java.lang.String only. It takes the
following format:
R:role name
- Selects the role with the given name.
G:group name
- Selects the group with the given name.
M:member id
- Selects the member with the given id.
Parameters: resSel - an object that describes resource selection criteria. collection of WfResource objects. throws: RemoteException - if a system-level error occurs. throws: UnsupportedOperationException - if the resource managementservice does not support this feature. |
setResourceAssignmentService | public void setResourceAssignmentService(ResourceAssignmentService ras)(Code) | | Parameters: ras - The resource assignment service to set. |
|
|
|