org.kuali.rice.kew.api.document
Class DocumentStatusTransition.Builder

java.lang.Object
  extended by org.kuali.rice.kew.api.document.DocumentStatusTransition.Builder
All Implemented Interfaces:
Serializable, ModelBuilder, DocumentStatusTransitionContract
Enclosing class:
DocumentStatusTransition

public static final class DocumentStatusTransition.Builder
extends Object
implements Serializable, ModelBuilder, DocumentStatusTransitionContract

A builder which can be used to construct DocumentStatusTransition instances. Enforces the constraints of the DocumentStatusTransitionContract.

See Also:
Serialized Form

Method Summary
 DocumentStatusTransition build()
          Returns an instance of the object being built by this builder based on the current state of the builder.
static DocumentStatusTransition.Builder create(DocumentStatusTransitionContract contract)
           
static DocumentStatusTransition.Builder create(String documentId, String oldStatus, String newStatus)
           
 String getDocumentId()
          The id parent document of the DocumentStatusTransition.
 String getId()
          The unique id of the DocumentStatusTransition.
 String getNewStatus()
          The new status value of the DocumentStatusTransition.
 String getOldStatus()
          The previous status value of the DocumentStatusTransition.
 org.joda.time.DateTime getStatusTransitionDate()
          The date of the DocumentStatusTransition.
 void setDocumentId(String documentId)
           
 void setId(String id)
           
 void setNewStatus(String newStatus)
           
 void setOldStatus(String oldStatus)
           
 void setStatusTransitionDate(org.joda.time.DateTime statusTransitionDate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static DocumentStatusTransition.Builder create(String documentId,
                                                      String oldStatus,
                                                      String newStatus)

create

public static DocumentStatusTransition.Builder create(DocumentStatusTransitionContract contract)

build

public DocumentStatusTransition 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: DocumentStatusTransitionContract
The unique id of the DocumentStatusTransition.

Specified by:
getId in interface DocumentStatusTransitionContract
Returns:
id

getDocumentId

public String getDocumentId()
Description copied from interface: DocumentStatusTransitionContract
The id parent document of the DocumentStatusTransition.

Specified by:
getDocumentId in interface DocumentStatusTransitionContract
Returns:
documentId

getOldStatus

public String getOldStatus()
Description copied from interface: DocumentStatusTransitionContract
The previous status value of the DocumentStatusTransition.

Specified by:
getOldStatus in interface DocumentStatusTransitionContract
Returns:
oldStatus

getNewStatus

public String getNewStatus()
Description copied from interface: DocumentStatusTransitionContract
The new status value of the DocumentStatusTransition.

Specified by:
getNewStatus in interface DocumentStatusTransitionContract
Returns:
newStatus

getStatusTransitionDate

public org.joda.time.DateTime getStatusTransitionDate()
Description copied from interface: DocumentStatusTransitionContract
The date of the DocumentStatusTransition.

Specified by:
getStatusTransitionDate in interface DocumentStatusTransitionContract
Returns:
statusTransitionDate

setId

public void setId(String id)

setDocumentId

public void setDocumentId(String documentId)

setOldStatus

public void setOldStatus(String oldStatus)

setNewStatus

public void setNewStatus(String newStatus)

setStatusTransitionDate

public void setStatusTransitionDate(org.joda.time.DateTime statusTransitionDate)


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