Interface ITaskContentProvider
- All Superinterfaces:
IContentProvider
,IRefreshable
,IRefreshableContentProvider
,ITransactionalContentProvider
,IUpdateableContentProvider
- All Known Implementing Classes:
AbstractTaskContentProvider
,SimpleTaskContentProvider
,TaskContentProvider
,TaskContentProviderExtended
public interface ITaskContentProvider
extends ITransactionalContentProvider, IRefreshableContentProvider
ITaskContentProvider is the interface represents content provider for task.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accepts current task for the current uservoid
Cancels current taskvoid
Updates and completes current taskvoid
Deletes current taskboolean
Returns ad-hoc routing configuration setting.boolean
Returns auto-accept configuration setting.Returns user ID of the current userint
Returns maximum number of users which may accept a task at a given time.boolean
Returns Control indicates whether user must first accept a task before updating it.Returns the current task IDReturns current task infoITaskInfo
, or empty object if there is no current taskReturns New taskTypeID.Returns display name of the task typevoid
Queues new task using data set in the TaskInfo and TaskDatavoid
Resumes current taskvoid
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
Sets current taskIDvoid
Suspends current taskvoid
Unaccepts current task from the current userMethods inherited from interface com.webmethods.caf.faces.data.IContentProvider
getPropertyKeys, getType, getValue, hasProperty, toString
Methods inherited from interface com.webmethods.caf.faces.data.IRefreshable
getNeedRefresh, isAutoRefresh, refresh, setAutoRefresh, setNeedRefresh, supportsAutoRefresh
Methods inherited from interface com.webmethods.caf.faces.data.ITransactionalContentProvider
applyChanges, cancelChanges
Methods inherited from interface com.webmethods.caf.faces.data.IUpdateableContentProvider
isReadOnly, setValue
-
Method Details
-
getTaskID
String getTaskID()Returns the current task ID -
setTaskID
Sets current taskID- Parameters:
taskID
- current taskID
-
getTaskInfo
ITaskInfo getTaskInfo()Returns current task infoITaskInfo
, or empty object if there is no current task -
getTaskTypeID
String getTaskTypeID()Returns New taskTypeID. This is used only when queueing new tasks -
getTaskTypeName
String getTaskTypeName()Returns display name of the task type -
getAutoAccept
boolean getAutoAccept()Returns auto-accept configuration setting. If set to false the user would have to manually accept/unaccept task for editing. Default is false -
setAutoAccept
void setAutoAccept(boolean autoAccept) Sets auto-accept configuration setting. If set to false the user would have to manually accept/unaccept task for editing. Default is false- Parameters:
autoAccept
-
-
getAdhocRouting
boolean getAdhocRouting()Returns ad-hoc routing configuration setting. If set to true to allow the user to route an individual task manually. Default is false -
setAdhocRouting
void setAdhocRouting(boolean allowAdhocRouting) Sets ad-hoc routing configuration setting. If true, allow the user to route an individual task manually. Default is false- Parameters:
allowAdhocRouting
-
-
getMaxAllowedToAccept
int getMaxAllowedToAccept()Returns maximum number of users which may accept a task at a given time. Default is 1 -
setMaxAllowedToAccept
void setMaxAllowedToAccept(int maxAllowedToAccept) Sets maximum number of users which may accept a task at a given time. Default is 1- Parameters:
maxAllowedToAccept
-
-
getNeedAcceptToUpdate
boolean getNeedAcceptToUpdate()Returns Control indicates whether user must first accept a task before updating it. Default is true -
setNeedAcceptToUpdate
void setNeedAcceptToUpdate(boolean c) Set control indicates whether user must first accept a task before updating it. Default is true- Parameters:
c
- true means user must first accept a task before updating it
-
queueNewTask
Queues new task using data set in the TaskInfo and TaskData- Throws:
ContentProviderException
-
acceptTask
Accepts current task for the current user- Throws:
ContentProviderException
-
unacceptTask
Unaccepts current task from the current user- Throws:
ContentProviderException
-
completeTask
Updates and completes current task- Throws:
ContentProviderException
-
cancelTask
Cancels current task- Throws:
ContentProviderException
-
deleteTask
Deletes current task- Throws:
ContentProviderException
-
suspendTask
Suspends current task- Throws:
ContentProviderException
-
resumeTask
Resumes current task- Throws:
ContentProviderException
-
getCurrentUserID
Returns user ID of the current user- Throws:
ContentProviderException
-