Class InheritUsersAction


public class InheritUsersAction extends UserSelectionAction
A user selection action that inherits user assignment from the previous step
Author:
Bram De Schouwer (bram.deschouwer at dot com), Kevin Van de Velde (kevin at atmire dot com), Ben Bosman (ben at atmire dot com), Mark Diggory (markd at atmire dot com)
  • Constructor Details

    • InheritUsersAction

      public InheritUsersAction()
  • Method Details

    • activate

      public void activate(Context c, XmlWorkflowItem wfItem)
      Description copied from class: Action
      Called when a workflow item becomes eligible for this Action.
      Specified by:
      activate in class Action
      Parameters:
      c - current DSpace session.
      wfItem - the eligible item.
    • execute

      public ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, jakarta.servlet.http.HttpServletRequest request)
      Description copied from class: Action
      Called when the action is to be performed.
      Specified by:
      execute in class Action
      Parameters:
      c - current DSpace session.
      wfi - the item on which the action is to be performed.
      step - the workflow step in which the action is performed.
      request - the current client request.
      Returns:
      the result of performing the action.
    • getOptions

      public List<String> getOptions()
      Description copied from class: Action
      Returns a list of options that the user can select at this action which results in the next step in the workflow
      Specified by:
      getOptions in class Action
      Returns:
      A list of options of this action, resulting in the next step of the workflow
    • isFinished

      public boolean isFinished(XmlWorkflowItem wfi)
      Specified by:
      isFinished in class UserSelectionAction
    • regenerateTasks

      public void regenerateTasks(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers) throws SQLException
      Description copied from class: UserSelectionAction
      Should a person have the option to repool the task the tasks will have to be regenerated
      Specified by:
      regenerateTasks in class UserSelectionAction
      Parameters:
      c - the dspace context
      wfi - the workflowitem
      roleMembers - the list of users for which tasks must be regenerated
      Throws:
      SQLException - An exception that provides information on a database access error or other errors.
    • isValidUserSelection

      public boolean isValidUserSelection(Context context, XmlWorkflowItem wfi, boolean hasUI) throws WorkflowConfigurationException, SQLException
      Description copied from class: UserSelectionAction
      Check user constraints (enough users, group exists, ...).
      Specified by:
      isValidUserSelection in class UserSelectionAction
      Parameters:
      context - the dspace context
      wfi - the workflow item
      hasUI - whether or not the Step has a user interface
      Returns:
      if the action is valid
      Throws:
      WorkflowConfigurationException - if there is an error in the workflow configuration.
      SQLException - passed through.
    • usesTaskPool

      public boolean usesTaskPool()
      Description copied from class: UserSelectionAction
      A boolean indicating whether or not the task pool is used for this type of user selection
      Specified by:
      usesTaskPool in class UserSelectionAction
      Returns:
      a boolean