com.webmethods.caf.faces.data.task.impl
Class TaskContentProviderExtended

java.lang.Object
  extended by com.webmethods.caf.faces.bean.PageFlowScopeAdapter
      extended by com.webmethods.caf.faces.data.task.impl.AbstractTaskContentProvider
          extended by com.webmethods.caf.faces.data.task.impl.TaskContentProvider
              extended by com.webmethods.caf.faces.data.task.impl.TaskContentProviderExtended
All Implemented Interfaces:
IPageFlowScopeAdapter, IContentProvider, IRefreshable, IRefreshableContentProvider, ITransactionalContentProvider, IUpdateableContentProvider, ITaskContentProvider, Serializable
Direct Known Subclasses:
SimpleTaskContentProvider

public class TaskContentProviderExtended
extends TaskContentProvider

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:
Serialized Form

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
 
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
 
Constructor Summary
TaskContentProviderExtended()
           
 
Method Summary
 boolean getCanUserAcceptTask()
          Returns true or false whether current user have permissions to accept task
 boolean getCanUserAssignTask()
          Returns true or false whether current user have permissions to assign task
 boolean getCanUserCancelTask()
          Returns true or false whether current user have permissions to cancel task
 boolean getCanUserCompleteTask()
          Returns true or false whether current user have permissions to complete task
 boolean getCanUserCreateCollaboration()
          Returns true or false whether current user have permissions to create ad-hoc workflows
 boolean getCanUserDelegateTask()
          Returns true or false whether current user have permissions to delegate task
 boolean getCanUserDeleteCollaborationProcess()
          Returns true or false whether current user have permissions to delete ad-hoc workflow
 boolean getCanUserDeleteTask()
          Returns true or false whether current user have permissions to delete task
 boolean getCanUserModifyTaskData()
          Returns true or false whether current user have permissions to update task business data
 boolean getCanUserModifyTaskInfo()
          Returns true or false whether current user have permissions to update task info
 boolean getCanUserQueueNewTask()
          Returns true or false whether current user have permissions to queue task of current task type
 boolean getCanUserResumeTask()
          Returns true or false whether current user have permissions to resume task
 boolean getCanUserRollbackTask()
          Returns true or false whether current user have permissions to rollback task state
 boolean getCanUserSuspendTask()
          Returns true or false whether current user have permissions to suspend task
 boolean getCanUserUpdateCollaborationProcess()
          Returns true or false whether current user have permissions to update ad-hoc workflow process
 boolean getCanUserViewCollaboration()
          Returns true or false whether current user have permissions to view ad-hoc workflows for current task
 boolean getCanUserViewTaskAudit()
          Returns true or false whether current user have permissions to view task audit
 boolean getCanUserViewTaskCollaboration()
          Returns true or false whether current user have permissions to view ad-hoc workflows for current task
 boolean getCanUserViewTaskComments()
          Returns true or false whether current user have permissions to view task comments
 boolean getCanUserViewTaskData()
          Returns true or false whether current user have permissions to view data of current task instance
 boolean getCanUserViewTaskInfo()
          Returns true or false whether current user have permissions to view task info
 boolean isProcessArchived()
          Helper method to determine if business process owning this task is already archived.
protected  ITaskData newTaskData()
          Creates new instance of task business data.
 void openProcessInstanceDetails()
          This method calculates url to open Monitor Business Process page for the current task and redirects user to this page.
 
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, 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 Detail

TaskContentProviderExtended

public TaskContentProviderExtended()
Method Detail

newTaskData

protected ITaskData newTaskData()
                         throws ContentProviderException
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 class AbstractTaskContentProvider
Returns:
business data object
Throws:
ContentProviderException

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


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


isProcessArchived

public boolean isProcessArchived()
                          throws Exception
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

public void openProcessInstanceDetails()
                                throws Exception
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