public interface TaskProvider extends Serializable
Modifier and Type | Method and Description |
---|---|
List<Task> |
getCurrentTaskInstances(CoreSession coreSession) |
List<Task> |
getCurrentTaskInstances(List<String> actors,
CoreSession coreSession)
Returns a list of task instances assigned to one of the actors in the
list or to its pool.
|
List<Task> |
getTaskInstances(DocumentModel dm,
List<String> actors,
CoreSession coreSession)
Returns the list of task instances associated with this document assigned
to one of the actor in the list or its pool.
|
List<Task> |
getTaskInstances(DocumentModel dm,
NuxeoPrincipal user,
CoreSession coreSssion)
Returns the list of task instances associated with this document for
which the user is the actor or belongs to the pooled actor list.
|
List<Task> getCurrentTaskInstances(CoreSession coreSession) throws ClientException
coreSession
- IllegalStateException
- If the currentUser is null.ClientException
List<Task> getCurrentTaskInstances(List<String> actors, CoreSession coreSession) throws ClientException
actors
- a list used as actorId to retrieve the tasks.coreSession
- ClientException
List<Task> getTaskInstances(DocumentModel dm, NuxeoPrincipal user, CoreSession coreSssion) throws ClientException
If the user is null, then it returns all task instances for the document.
dm
- the document.user
- coreSession
- ClientException
List<Task> getTaskInstances(DocumentModel dm, List<String> actors, CoreSession coreSession) throws ClientException
dm
- actors
- coreSession
- ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.