public interface ITaskService extends ITaskComponent
Modifier and Type | Method and Description |
---|---|
void |
completeTaskPendingUpdate(IURI taskURI)
Decrement value of the task pending updates counter
|
IURI |
createTask(IURI principalURI,
IURI taskDefinitionURI)
Creates new task from the given task data.
|
IURI |
createTask(IURI principalURI,
IURI taskDefinitionURI,
Serializable taskData)
Creates new task from the given task data.
|
IURI |
createTaskForMigration(IURI principalURI,
IURI taskDefinitionURI,
Serializable taskData,
Integer taskID)
Creates new task from the given task data and taskID.
|
ITaskUpdateContext |
createUpdateContext(IURI sourceURI,
IURI taskURI)
Creates instance of task update context which should be used for all task update operations
|
void |
deleteTaskData(IURI taskURI)
This would delete task data record from database
|
void |
flushTaskCache(IURI taskURI)
Flushes any task data from caches.
|
void |
flushTaskDataCache(IURI taskURI)
Flushes only the cache for "task data".
|
ITask |
getTask(IURI taskURI)
Returns the task by its uri
|
Object |
getTaskData(IURI taskURI,
boolean copy,
ClassLoader classLoader)
Returns custom task data object by task URI
|
IURI |
getTaskURIByExternalID(String externalID)
Returns the task uri by its external ID
|
boolean |
isTaskMutable(IURI taskURI)
Detemines if task is mutable at the given moment of time.
|
boolean |
isTaskUptoDate(IURI taskURI,
int taskVersionNumber)
Determines if task version number is up to date
|
void |
updateTask(ITaskUpdateContext updateContext,
Map<String,?> properties,
boolean hidden)
Updates task properties
|
void |
updateTask(ITaskUpdateContext updateContext,
Map<String,?> properties,
boolean hidden,
boolean refreshRemoteCaches)
Updates task properties
|
void |
updateTaskData(ITaskUpdateContext updateContext,
Object taskData)
Updates task data for a given task
|
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
IURI createTask(IURI principalURI, IURI taskDefinitionURI, Serializable taskData) throws PortalException
PortalException
IURI createTaskForMigration(IURI principalURI, IURI taskDefinitionURI, Serializable taskData, Integer taskID) throws PortalException
PortalException
IURI createTask(IURI principalURI, IURI taskDefinitionURI) throws PortalException
PortalException
void updateTask(ITaskUpdateContext updateContext, Map<String,?> properties, boolean hidden, boolean refreshRemoteCaches) throws PortalException
hidden
- set to true if that task update should not be recorded in pending task updates counterPortalException
void updateTask(ITaskUpdateContext updateContext, Map<String,?> properties, boolean hidden) throws PortalException
hidden
- set to true if that task update should not be recorded in pending task updates counterPortalException
void updateTaskData(ITaskUpdateContext updateContext, Object taskData) throws PortalException
PortalException
void completeTaskPendingUpdate(IURI taskURI) throws PortalException
PortalException
ITaskUpdateContext createUpdateContext(IURI sourceURI, IURI taskURI) throws PortalException
PortalException
IURI getTaskURIByExternalID(String externalID) throws PortalException
PortalException
ITask getTask(IURI taskURI) throws PortalException
PortalException
Object getTaskData(IURI taskURI, boolean copy, ClassLoader classLoader) throws PortalException
PortalException
void deleteTaskData(IURI taskURI) throws PortalException
PortalException
boolean isTaskMutable(IURI taskURI) throws PortalException
PortalException
boolean isTaskUptoDate(IURI taskURI, int taskVersionNumber) throws PortalException
PortalException
void flushTaskCache(IURI taskURI)
taskURI
- void flushTaskDataCache(IURI taskURI)