Class TaskContentProviderExtended
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.task.impl.AbstractTaskContentProvider
com.webmethods.caf.faces.data.task.impl.TaskContentProvider
com.webmethods.caf.faces.data.task.impl.TaskContentProviderExtended
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IContentProvider
,IRefreshable
,IRefreshableContentProvider
,ITransactionalContentProvider
,IUpdateableContentProvider
,ITaskContentProvider
,Serializable
- Direct Known Subclasses:
SimpleTaskContentProvider
Abstract base class to load/update/create task instances. This class is being extended
when task is generated in the Task CAF Application to define specific task business
data
- See Also:
-
Field Summary
Fields inherited from class com.webmethods.caf.faces.data.task.impl.AbstractTaskContentProvider
m_adhocRouting, m_autoAccept, m_currentTaskData, m_currentTaskInfo, m_maxAllowedToAccept, m_needAcceptToUpdate, m_needRefresh, m_previousTaskData, m_previousTaskInfo, m_taskID, m_taskTypeID, PROPERTY_KEY_TASKDATA, PROPERTY_KEYS
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attemptTransition
(String taskID, String status) boolean
boolean
Returns true or false whether current user have permissions to accept taskboolean
Returns true or false whether current user have permissions to assign taskboolean
Returns true or false whether current user have permissions to cancel taskboolean
Returns true or false whether current user have permissions to complete taskboolean
Returns true or false whether current user have permissions to create ad-hoc workflowsboolean
Returns true or false whether current user have permissions to delegate taskboolean
Returns true or false whether current user have permissions to delete ad-hoc workflowboolean
Returns true or false whether current user have permissions to delete taskboolean
Returns true or false whether current user have permissions to update task business databoolean
Returns true or false whether current user have permissions to update task infoboolean
Returns true or false whether current user have permissions to queue task of current task typeboolean
Returns true or false whether current user have permissions to resume taskboolean
Returns true or false whether current user have permissions to rollback task stateboolean
Returns true or false whether current user have permissions to suspend taskboolean
Returns true or false whether current user have permissions to update ad-hoc workflow processboolean
Returns true or false whether current user have permissions to view ad-hoc workflows for current taskboolean
Returns true or false whether current user have permissions to view task auditboolean
Returns true or false whether current user have permissions to view ad-hoc workflows for current taskboolean
Returns true or false whether current user have permissions to view task commentsboolean
This is not usedboolean
Returns true or false whether current user have permissions to view data of current task instanceboolean
Returns true or false whether current user have permissions to view task infoboolean
Returns true or false whether current user has permissions to view task voting statisticsboolean
Helper method to determine if business process owning this task is already archived.boolean
void
protected ITaskData
Creates new instance of task business data.void
This method calculates url to open Monitor Business Process page for the current task and redirects user to this page.boolean
validStatusTransition
(String currentStatus, String nextStatus) boolean
void
void
voteOrSetStatus
(String status) Methods inherited from class com.webmethods.caf.faces.data.task.impl.TaskContentProvider
getTaskServiceProvider
Methods inherited from class com.webmethods.caf.faces.data.task.impl.AbstractTaskContentProvider
acceptTask, applyChanges, applyChangesNoAccept, cancelChanges, cancelTask, completeTask, deleteTask, getAdhocRouting, getAutoAccept, getCurrentUserID, getMaxAllowedToAccept, getNeedAcceptToUpdate, getNeedInfoRefresh, getNeedRefresh, getPropertyKeys, getTaskID, getTaskInfo, getTaskTypeID, getTaskTypeName, getType, getValue, hasPendingChanges, hasProperty, init, isAutoRefresh, isCurrentUserAccepted, isReadOnly, isUpdateable, queueNewTask, refresh, reset, resumeTask, setAdhocRouting, setAutoAccept, setAutoRefresh, setMaxAllowedToAccept, setNeedAcceptToUpdate, setNeedRefresh, setTaskID, setTaskTypeID, setValue, supportsAutoRefresh, suspendTask, unacceptTask
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
toString
-
Constructor Details
-
TaskContentProviderExtended
public TaskContentProviderExtended()
-
-
Method Details
-
newTaskData
Description copied from class:AbstractTaskContentProvider
Creates new instance of task business data. This must be overridden as each task type implements its business data in its unique class- Specified by:
newTaskData
in classAbstractTaskContentProvider
- Returns:
- business data object
- Throws:
ContentProviderException
-
canVoteTask
public boolean canVoteTask() -
voteComplete
- Throws:
PortalException
-
voteOrSetStatus
- Throws:
Exception
-
vote
- Throws:
PortalException
-
attemptTransition
- Throws:
PortalException
-
makeVote
- Throws:
PortalException
-
isVotingDone
- Throws:
PortalException
-
validStatusTransition
-
getCanUserQueueNewTask
public boolean getCanUserQueueNewTask()Returns true or false whether current user have permissions to queue task of current task type -
getCanUserViewTaskData
public boolean getCanUserViewTaskData()Returns true or false whether current user have permissions to view data of current task instance -
getCanUserViewTaskComments
public boolean getCanUserViewTaskComments()Returns true or false whether current user have permissions to view task comments -
getCanUserViewTaskCollaboration
public boolean getCanUserViewTaskCollaboration()Returns true or false whether current user have permissions to view ad-hoc workflows for current task -
getCanUserViewCollaboration
public boolean getCanUserViewCollaboration()Returns true or false whether current user have permissions to view ad-hoc workflows for current task -
getCanUserCreateCollaboration
public boolean getCanUserCreateCollaboration()Returns true or false whether current user have permissions to create ad-hoc workflows -
getCanUserViewTaskInfo
public boolean getCanUserViewTaskInfo()Returns true or false whether current user have permissions to view task info -
getCanUserViewTaskAudit
public boolean getCanUserViewTaskAudit()Returns true or false whether current user have permissions to view task audit -
getCanUserViewTaskContent
public boolean getCanUserViewTaskContent()This is not used -
getCanUserCompleteTask
public boolean getCanUserCompleteTask()Returns true or false whether current user have permissions to complete task -
getCanUserCancelTask
public boolean getCanUserCancelTask()Returns true or false whether current user have permissions to cancel task -
getCanUserSuspendTask
public boolean getCanUserSuspendTask()Returns true or false whether current user have permissions to suspend task -
getCanUserResumeTask
public boolean getCanUserResumeTask()Returns true or false whether current user have permissions to resume task -
getCanUserModifyTaskData
public boolean getCanUserModifyTaskData()Returns true or false whether current user have permissions to update task business data -
getCanUserModifyTaskInfo
public boolean getCanUserModifyTaskInfo()Returns true or false whether current user have permissions to update task info -
getCanUserAcceptTask
public boolean getCanUserAcceptTask()Returns true or false whether current user have permissions to accept task -
getCanUserAssignTask
public boolean getCanUserAssignTask()Returns true or false whether current user have permissions to assign task -
getCanUserDelegateTask
public boolean getCanUserDelegateTask()Returns true or false whether current user have permissions to delegate task -
getCanUserRollbackTask
public boolean getCanUserRollbackTask()Returns true or false whether current user have permissions to rollback task state -
getCanUserDeleteTask
public boolean getCanUserDeleteTask()Returns true or false whether current user have permissions to delete task -
getCanUserUpdateCollaborationProcess
public boolean getCanUserUpdateCollaborationProcess()Returns true or false whether current user have permissions to update ad-hoc workflow process -
getCanUserDeleteCollaborationProcess
public boolean getCanUserDeleteCollaborationProcess()Returns true or false whether current user have permissions to delete ad-hoc workflow -
getCanUserViewTaskVotingStatistics
public boolean getCanUserViewTaskVotingStatistics()Returns true or false whether current user has permissions to view task voting statistics -
isProcessArchived
Helper method to determine if business process owning this task is already archived. This is used to determine if task can be safely deleted- Returns:
- true or false
- Throws:
Exception
-
openProcessInstanceDetails
This method calculates url to open Monitor Business Process page for the current task and redirects user to this page. This method can be invoked only in the context of the action request processing (e.g. from command action)- Throws:
Exception
-