public interface ITaskContentProvider extends ITransactionalContentProvider, IRefreshableContentProvider
Modifier and Type | Method and Description |
---|---|
void |
acceptTask()
Accepts current task for the current user
|
void |
cancelTask()
Cancels current task
|
void |
completeTask()
Updates and completes current task
|
void |
deleteTask()
Deletes current task
|
boolean |
getAdhocRouting()
Returns ad-hoc routing configuration setting.
|
boolean |
getAutoAccept()
Returns auto-accept configuration setting.
|
String |
getCurrentUserID()
Returns user ID of the current user
|
int |
getMaxAllowedToAccept()
Returns maximum number of users which may accept a task at a given time.
|
boolean |
getNeedAcceptToUpdate()
Returns Control indicates whether user must first accept a task before updating it.
|
String |
getTaskID()
Returns the current task ID
|
ITaskInfo |
getTaskInfo()
Returns current task info
ITaskInfo , or empty object if there is no current task |
String |
getTaskTypeID()
Returns New taskTypeID.
|
String |
getTaskTypeName()
Returns display name of the task type
|
void |
queueNewTask()
Queues new task using data set in the TaskInfo and TaskData
|
void |
resumeTask()
Resumes current task
|
void |
setAdhocRouting(boolean allowAdhocRouting)
Sets ad-hoc routing configuration setting.
|
void |
setAutoAccept(boolean autoAccept)
Sets auto-accept configuration setting.
|
void |
setMaxAllowedToAccept(int maxAllowedToAccept)
Sets maximum number of users which may accept a task at a given time.
|
void |
setNeedAcceptToUpdate(boolean c)
Set control indicates whether user must first accept a task before updating it.
|
void |
setTaskID(String taskID)
Sets current taskID
|
void |
suspendTask()
Suspends current task
|
void |
unacceptTask()
Unaccepts current task from the current user
|
applyChanges, cancelChanges
isReadOnly, setValue
getPropertyKeys, getType, getValue, hasProperty, toString
getNeedRefresh, isAutoRefresh, refresh, setAutoRefresh, setNeedRefresh, supportsAutoRefresh
String getTaskID()
void setTaskID(String taskID)
taskID
- current taskIDITaskInfo getTaskInfo()
ITaskInfo
, or empty object if there is no current taskString getTaskTypeID()
String getTaskTypeName()
boolean getAutoAccept()
void setAutoAccept(boolean autoAccept)
autoAccept
- boolean getAdhocRouting()
void setAdhocRouting(boolean allowAdhocRouting)
allowAdhocRouting
- int getMaxAllowedToAccept()
void setMaxAllowedToAccept(int maxAllowedToAccept)
maxAllowedToAccept
- boolean getNeedAcceptToUpdate()
void setNeedAcceptToUpdate(boolean c)
c
- true means user must first accept a task before updating itvoid queueNewTask() throws ContentProviderException
ContentProviderException
void acceptTask() throws ContentProviderException
ContentProviderException
void unacceptTask() throws ContentProviderException
ContentProviderException
void completeTask() throws ContentProviderException
ContentProviderException
void cancelTask() throws ContentProviderException
ContentProviderException
void deleteTask() throws ContentProviderException
ContentProviderException
void suspendTask() throws ContentProviderException
ContentProviderException
void resumeTask() throws ContentProviderException
ContentProviderException
String getCurrentUserID() throws ContentProviderException
ContentProviderException