org.dspace.xmlworkflow.state.actions.userassignment
Class NoUserSelectionAction

java.lang.Object
  extended by org.dspace.xmlworkflow.state.actions.Action
      extended by org.dspace.xmlworkflow.state.actions.userassignment.UserSelectionAction
          extended by org.dspace.xmlworkflow.state.actions.userassignment.NoUserSelectionAction

public class NoUserSelectionAction
extends UserSelectionAction

A user selection action that does not assign any users

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)

Field Summary
 
Fields inherited from class org.dspace.xmlworkflow.state.actions.userassignment.UserSelectionAction
log
 
Constructor Summary
NoUserSelectionAction()
           
 
Method Summary
 void activate(Context c, XmlWorkflowItem wf)
           
 ActionResult execute(Context c, XmlWorkflowItem wfi, Step step, javax.servlet.http.HttpServletRequest request)
           
 boolean isFinished(XmlWorkflowItem wfi)
           
 boolean isValidUserSelection(Context context, XmlWorkflowItem wfi, boolean hasUI)
          Verifies if the user selection action is valid User constraints will be checked (enough users, group exists, ...)
 void regenerateTasks(Context c, XmlWorkflowItem wfi, RoleMembers roleMembers)
          Should a person have the option to repool the task the tasks will have to be regenerated
 boolean usesTaskPool()
          A boolean indicating wether or not the task pool is used for this type of user selection
 
Methods inherited from class org.dspace.xmlworkflow.state.actions.userassignment.UserSelectionAction
isAuthorized
 
Methods inherited from class org.dspace.xmlworkflow.state.actions.Action
addErrorField, alertUsersOnActivation, getErrorFields, getParent, getProvenanceStartId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoUserSelectionAction

public NoUserSelectionAction()
Method Detail

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 - ...

isValidUserSelection

public boolean isValidUserSelection(Context context,
                                    XmlWorkflowItem wfi,
                                    boolean hasUI)
                             throws WorkflowConfigurationException,
                                    SQLException
Description copied from class: UserSelectionAction
Verifies if the user selection action is valid User constraints will be checked (enough users, group exists, ...)

Specified by:
isValidUserSelection in class UserSelectionAction
Parameters:
context - the dspace context
wfi - the workflow item
hasUI - boolean indicating whether or not the action has a user interface
Returns:
if the action is valid
Throws:
WorkflowConfigurationException - occurs if there is a configuration error in the workflow
SQLException - ...

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

activate

public void activate(Context c,
                     XmlWorkflowItem wf)
              throws SQLException,
                     IOException
Specified by:
activate in class Action
Throws:
SQLException
IOException

execute

public ActionResult execute(Context c,
                            XmlWorkflowItem wfi,
                            Step step,
                            javax.servlet.http.HttpServletRequest request)
                     throws SQLException,
                            AuthorizeException,
                            IOException
Specified by:
execute in class Action
Throws:
SQLException
AuthorizeException
IOException


Copyright © 2011 DuraSpace. All Rights Reserved.