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 Detail

      • InheritUsersAction

        public InheritUsersAction()
    • Method Detail

      • 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,
                                    javax.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
      • 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.
      • usesTaskPool

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