|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the workflow resource management service used in the workflow package.
Method Summary | |
WfResource |
asResource(java.security.Principal principal)
Given a principal , return the
workflow resource associated with this principal by the
resource management facility. |
java.util.Collection |
authorizers(WfResource resource)
Given a , return the collection of
resources this resource is authorized for. |
java.util.Collection |
listResources()
List all available resources. |
WfResource |
resourceByKey(java.lang.String key)
Given a key , return the
workflow resource associated with this key. |
java.util.Collection |
selectResources(java.lang.Object resSel)
This optional method selects resources based on the resource selection criteria passed as parameter. |
Method Detail |
public WfResource asResource(java.security.Principal principal) throws ResourceNotFoundException, java.rmi.RemoteException
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.
principal
- the principal.
WfResource
object corresponding to the
given principal.
ResourceNotFoundException
- if the StaffMember with the given key
can't be found or the key is not associate with an StaffMember object.
java.rmi.RemoteException
- if a system-level error occurs.public java.util.Collection authorizers(WfResource resource) throws java.rmi.RemoteException
WfResource
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.
resource
- the resource.
WfResource
objects, not
including resource
java.rmi.RemoteException
- if a system-level error occurs.public WfResource resourceByKey(java.lang.String key) throws ResourceNotFoundException, java.rmi.RemoteException
key
, return the
workflow resource associated with this key.
This method is usually used to get
a WfResource
object corresponding to the given key.
key
- the key.
WfResource
object corresponding to the
given key.
ResourceNotFoundException
- if the StaffMember or an StaffGroup
with the given key can't be found.
java.rmi.RemoteException
- if a system-level error occurs.public java.util.Collection listResources() throws java.rmi.RemoteException
WfResource
objects.
java.rmi.RemoteException
- if a system-level error occurs.public java.util.Collection selectResources(java.lang.Object resSel) throws java.rmi.RemoteException, java.lang.UnsupportedOperationException
Usually, criteria for the resource selection must be determined
within the resource assignment, based on the list of resources
obtained with
. 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 listResources
(the workflow component has
obtained the information probably as part of the process
description and passed it through transparently).
autoAssignResources
resSel
- an object that describes resource selection criteria.
WfResource
objects.
java.rmi.RemoteException
- if a system-level error occurs.
java.lang.UnsupportedOperationException
- if the resource management
service does not support this feature.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |