Class 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:
  • Constructor Details

    • TaskContentProviderExtended

      public TaskContentProviderExtended()
  • Method Details

    • 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
    • canVoteTask

      public boolean canVoteTask()
    • voteComplete

      public void voteComplete() throws PortalException
      Throws:
      PortalException
    • voteOrSetStatus

      public void voteOrSetStatus(String status) throws Exception
      Throws:
      Exception
    • vote

      public boolean vote(String status) throws PortalException
      Throws:
      PortalException
    • attemptTransition

      public void attemptTransition(String taskID, String status) throws PortalException
      Throws:
      PortalException
    • makeVote

      public void makeVote(String status) throws PortalException
      Throws:
      PortalException
    • isVotingDone

      public boolean isVotingDone() throws PortalException
      Throws:
      PortalException
    • validStatusTransition

      public boolean validStatusTransition(String currentStatus, String nextStatus)
    • 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

      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