org.kuali.rice.kew.api.action
Class ActionSet.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.action.ActionSet.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, ActionSetContract
Enclosing class:
ActionSet

public static final class ActionSet.Builder
extends Object
implements Serializable, ModelBuilder, ActionSetContract

A builder which can be used to construct ActionSet instances. Enforces the constraints of the ActionSetContract.

See Also:
Serialized Form

Method Summary
 boolean addAcknowledge()
          This overridden method ...
 boolean addAction(String actionCode)
           
 boolean addApprove()
           
 boolean addCancel()
           
 boolean addComplete()
           
 boolean addDisapprove()
           
 boolean addFyi()
           
 boolean addRouted()
           
 ActionSet build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static ActionSet.Builder create()
           
static ActionSet.Builder create(ActionSetContract contract)
          Creates a builder by populating it with data from the given .
 List<String> getActionSet()
           
 boolean hasAcknowledge()
           
 boolean hasAction(String actionCode)
           
 boolean hasApprove()
           
 boolean hasCancel()
           
 boolean hasComplete()
           
 boolean hasDisapprove()
           
 boolean hasFyi()
           
 boolean hasRouted()
           
 boolean removeAction(String actionCode)
           
 void setActionSetList(List<String> actionSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ActionSet.Builder create()

create

public static ActionSet.Builder create(ActionSetContract contract)
Creates a builder by populating it with data from the given .

Parameters:
contract - the contract from which to populate this builder
Returns:
an instance of the builder populated with data from the contract

build

public ActionSet build()
Description copied from interface: ModelBuilder
Returns an instance of the object being built by this builder based on the current state of the builder. It should be possible to invoke this method more than once on the same builder. It should never return null;

Specified by:
build in interface ModelBuilder
Returns:
an instance of the object being built by this builder, should never return null

getActionSet

public List<String> getActionSet()

setActionSetList

public void setActionSetList(List<String> actionSet)

hasAction

public boolean hasAction(String actionCode)
Specified by:
hasAction in interface ActionSetContract

addAction

public boolean addAction(String actionCode)
Specified by:
addAction in interface ActionSetContract

removeAction

public boolean removeAction(String actionCode)
Specified by:
removeAction in interface ActionSetContract

hasApprove

public boolean hasApprove()
Specified by:
hasApprove in interface ActionSetContract

hasComplete

public boolean hasComplete()
Specified by:
hasComplete in interface ActionSetContract

hasAcknowledge

public boolean hasAcknowledge()
Specified by:
hasAcknowledge in interface ActionSetContract

hasFyi

public boolean hasFyi()
Specified by:
hasFyi in interface ActionSetContract

hasDisapprove

public boolean hasDisapprove()
Specified by:
hasDisapprove in interface ActionSetContract

hasCancel

public boolean hasCancel()
Specified by:
hasCancel in interface ActionSetContract

hasRouted

public boolean hasRouted()
Specified by:
hasRouted in interface ActionSetContract

addApprove

public boolean addApprove()
Specified by:
addApprove in interface ActionSetContract

addComplete

public boolean addComplete()
Specified by:
addComplete in interface ActionSetContract

addAcknowledge

public boolean addAcknowledge()
This overridden method ...

Specified by:
addAcknowledge in interface ActionSetContract
See Also:
ActionSetContract.addAcknowledge()

addFyi

public boolean addFyi()
Specified by:
addFyi in interface ActionSetContract

addDisapprove

public boolean addDisapprove()
Specified by:
addDisapprove in interface ActionSetContract

addCancel

public boolean addCancel()
Specified by:
addCancel in interface ActionSetContract

addRouted

public boolean addRouted()
Specified by:
addRouted in interface ActionSetContract


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.