| de.danet.an.workflow.spis.rms.ResourceManagementService
All known Subclasses: de.danet.an.workflow.rmsimpls.dbrms.DatabaseRmsService, de.danet.an.workflow.liferayrms.RmsService, de.danet.an.workflow.rmsimpls.eisrms.EisRmsService,
ResourceManagementService | public interface ResourceManagementService (Code) | | This interface defines the workflow resource management service
used in the workflow package.
|
Method Summary | |
WfResource | asResource(Principal principal) Given a
java.security.Principal principal , return the
workflow resource associated with this principal by the
resource management facility.
This method is usually used to get
a WfResource object corresponding to the current
user. | Collection | authorizers(WfResource resource) Given a
de.danet.an.workflow.omgcore.WfResourceWfResource object , return the collection of
resources this resource is authorized for.
This method usually returns all groups the resource is a
member of and all roles assigned to the resource.
Parameters: resource - the resource. | Collection | listResources() List all available resources. | WfResource | resourceByKey(String key) Given a key , return the
workflow resource associated with this key.
This method is usually used to get
a WfResource object corresponding to the given key.
Parameters: key - the key. | Collection | selectResources(Object resSel) This optional method selects resources based on the resource
selection criteria passed as parameter. |
asResource | 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.
This method is usually used to get
a WfResource object corresponding to the current
user. The WfResource object can subsequently be used
to e.g. determine the current user's worklist.
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. |
authorizers | Collection authorizers(WfResource resource) throws RemoteException(Code) | | Given a
de.danet.an.workflow.omgcore.WfResourceWfResource object , return the collection of
resources this resource is authorized for.
This method usually returns all groups the resource is a
member of and all roles assigned to the resource.
Parameters: resource - the resource. a collection of WfResource objects, notincluding resource throws: RemoteException - if a system-level error occurs. |
selectResources | Collection selectResources(Object resSel) throws RemoteException, UnsupportedOperationException(Code) | | This optional method selects resources based on the resource
selection criteria passed as parameter.
Usually, criteria for the resource selection must be determined
within the resource assignment, based on the list of resources
obtained with
ResourceManagementService.listResourceslistResources . Implementations of resource
management facilities may, however, support some query
functionality that eases this task for the resource assignment
service. The resource assignment service may have received
such resource selection information from the workflow engine
via
de.danet.an.workflow.spis.ras.ResourceAssignmentService.autoAssignResourcesautoAssignResources (the workflow component has
obtained the information probably as part of the process
description and passed it through transparently).
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. |
|
|