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

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

public static final class ActionTaken.Builder
extends Object
implements Serializable, ModelBuilder, ActionTakenContract

A builder which can be used to construct ActionTaken instances. Enforces the constraints of the ActionTakenContract.

See Also:
Serialized Form

Method Summary
 ActionTaken build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static ActionTaken.Builder create(ActionTakenContract contract)
           
static ActionTaken.Builder create(String id, String documentId, String principalId, ActionType actionTaken)
           
 org.joda.time.DateTime getActionDate()
           
 ActionType getActionTaken()
           
 String getAnnotation()
           
 String getDelegatorGroupId()
           
 String getDelegatorPrincipalId()
           
 String getDocumentId()
           
 String getId()
          The unique identifier for an object.
 String getPrincipalId()
           
 boolean isCurrent()
           
 void setActionDate(org.joda.time.DateTime actionDate)
           
 void setActionTaken(ActionType actionTaken)
           
 void setAnnotation(String annotation)
           
 void setCurrent(boolean current)
           
 void setDelegatorGroupId(String delegatorGroupId)
           
 void setDelegatorPrincipalId(String delegatorPrincipalId)
           
 void setDocumentId(String documentId)
           
 void setId(String id)
           
 void setPrincipalId(String principalId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ActionTaken.Builder create(String id,
                                         String documentId,
                                         String principalId,
                                         ActionType actionTaken)

create

public static ActionTaken.Builder create(ActionTakenContract contract)

build

public ActionTaken 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

getId

public String getId()
Description copied from interface: Identifiable
The unique identifier for an object. This can be null.

Specified by:
getId in interface Identifiable
Specified by:
getId in interface ActionTakenContract
Returns:
the id

getDocumentId

public String getDocumentId()
Specified by:
getDocumentId in interface ActionTakenContract

getPrincipalId

public String getPrincipalId()
Specified by:
getPrincipalId in interface ActionTakenContract

getDelegatorPrincipalId

public String getDelegatorPrincipalId()
Specified by:
getDelegatorPrincipalId in interface ActionTakenContract

getDelegatorGroupId

public String getDelegatorGroupId()
Specified by:
getDelegatorGroupId in interface ActionTakenContract

getActionTaken

public ActionType getActionTaken()
Specified by:
getActionTaken in interface ActionTakenContract

getActionDate

public org.joda.time.DateTime getActionDate()
Specified by:
getActionDate in interface ActionTakenContract

getAnnotation

public String getAnnotation()
Specified by:
getAnnotation in interface ActionTakenContract

isCurrent

public boolean isCurrent()
Specified by:
isCurrent in interface ActionTakenContract

setId

public void setId(String id)

setDocumentId

public void setDocumentId(String documentId)

setPrincipalId

public void setPrincipalId(String principalId)

setDelegatorPrincipalId

public void setDelegatorPrincipalId(String delegatorPrincipalId)

setDelegatorGroupId

public void setDelegatorGroupId(String delegatorGroupId)

setActionTaken

public void setActionTaken(ActionType actionTaken)

setActionDate

public void setActionDate(org.joda.time.DateTime actionDate)

setAnnotation

public void setAnnotation(String annotation)

setCurrent

public void setCurrent(boolean current)


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