public class CreateTaskUnrestricted extends UnrestrictedSessionRunner
isUnrestricted
Constructor and Description |
---|
CreateTaskUnrestricted(CoreSession session,
NuxeoPrincipal principal,
DocumentModel document,
String taskName,
List<String> prefixedActorIds,
boolean createOneTaskPerActor,
String directive,
String comment,
Date dueDate,
Map<String,String> taskVariables,
String parentPath) |
Modifier and Type | Method and Description |
---|---|
void |
createTask(CoreSession coreSession,
NuxeoPrincipal principal,
DocumentModel document,
String taskName,
List<String> prefixedActorIds,
boolean createOneTaskPerActor,
String directive,
String comment,
Date dueDate,
Map<String,String> taskVariables,
String parentPath) |
List<Task> |
getTasks() |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with
UnrestrictedSessionRunner.session available as an unrestricted session. |
getOriginatingUsername, runUnrestricted, setOriginatingUsername
public CreateTaskUnrestricted(CoreSession session, NuxeoPrincipal principal, DocumentModel document, String taskName, List<String> prefixedActorIds, boolean createOneTaskPerActor, String directive, String comment, Date dueDate, Map<String,String> taskVariables, String parentPath)
public void run() throws ClientException
UnrestrictedSessionRunner
UnrestrictedSessionRunner.runUnrestricted()
with
UnrestrictedSessionRunner.session
available as an unrestricted session.
It can also be called directly in which case the UnrestrictedSessionRunner.session
available will be the one passed to
#UnrestrictedSessionRunner(CoreSession)
.
run
in class UnrestrictedSessionRunner
ClientException
public void createTask(CoreSession coreSession, NuxeoPrincipal principal, DocumentModel document, String taskName, List<String> prefixedActorIds, boolean createOneTaskPerActor, String directive, String comment, Date dueDate, Map<String,String> taskVariables, String parentPath) throws ClientException
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.