com.silverpeas.workflow.engine.model
Class ActionRefs

java.lang.Object
  extended by com.silverpeas.workflow.engine.model.ActionRefs
All Implemented Interfaces:
AllowedActions, Serializable

public class ActionRefs
extends Object
implements Serializable, AllowedActions

Class implementing the representation of the <allowedActions> element of a Process Model.

See Also:
Serialized Form

Constructor Summary
ActionRefs()
          Constructor
 
Method Summary
 void addAllowedAction(AllowedAction allowedAction)
          Add an allowedAction to the collection
 AllowedAction createAllowedAction()
          Create an AllowedAction
 AllowedAction getAllowedAction(String strActionName)
          Get allowed action by action name
 Action[] getAllowedActions()
          Get available actions
 Iterator<AllowedAction> iterateAllowedAction()
          Iterate through the AllowedAction objects
 void removeAllowedAction(String strAllowedActionName)
          Remove an allowedAction from the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRefs

public ActionRefs()
Constructor

Method Detail

addAllowedAction

public void addAllowedAction(AllowedAction allowedAction)
Description copied from interface: AllowedActions
Add an allowedAction to the collection

Specified by:
addAllowedAction in interface AllowedActions
Parameters:
allowedAction - to be added

createAllowedAction

public AllowedAction createAllowedAction()
Description copied from interface: AllowedActions
Create an AllowedAction

Specified by:
createAllowedAction in interface AllowedActions
Returns:
an object implementing AllowedAction

iterateAllowedAction

public Iterator<AllowedAction> iterateAllowedAction()
Description copied from interface: AllowedActions
Iterate through the AllowedAction objects

Specified by:
iterateAllowedAction in interface AllowedActions
Returns:
an iterator

getAllowedActions

public Action[] getAllowedActions()
Description copied from interface: AllowedActions
Get available actions

Specified by:
getAllowedActions in interface AllowedActions
Returns:
allowed actions in an array

getAllowedAction

public AllowedAction getAllowedAction(String strActionName)
Description copied from interface: AllowedActions
Get allowed action by action name

Specified by:
getAllowedAction in interface AllowedActions
Parameters:
strActionName - the name of the action to find
Returns:
allowed action or null if action not found

removeAllowedAction

public void removeAllowedAction(String strAllowedActionName)
                         throws WorkflowException
Description copied from interface: AllowedActions
Remove an allowedAction from the collection

Specified by:
removeAllowedAction in interface AllowedActions
Parameters:
strAllowedActionName - the name of the allowedAction to be removed.
Throws:
WorkflowException


Copyright © 2016 Silverpeas. All Rights Reserved.