|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.api.document.DocumentStatusTransition.Builder
public static final class DocumentStatusTransition.Builder
A builder which can be used to construct DocumentStatusTransition
instances. Enforces the constraints of the DocumentStatusTransitionContract
.
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 |
---|
public static DocumentStatusTransition.Builder create(String documentId, String oldStatus, String newStatus)
public static DocumentStatusTransition.Builder create(DocumentStatusTransitionContract contract)
public DocumentStatusTransition build()
ModelBuilder
build
in interface ModelBuilder
public String getId()
DocumentStatusTransitionContract
getId
in interface DocumentStatusTransitionContract
public String getDocumentId()
DocumentStatusTransitionContract
getDocumentId
in interface DocumentStatusTransitionContract
public String getOldStatus()
DocumentStatusTransitionContract
getOldStatus
in interface DocumentStatusTransitionContract
public String getNewStatus()
DocumentStatusTransitionContract
getNewStatus
in interface DocumentStatusTransitionContract
public org.joda.time.DateTime getStatusTransitionDate()
DocumentStatusTransitionContract
getStatusTransitionDate
in interface DocumentStatusTransitionContract
public void setId(String id)
public void setDocumentId(String documentId)
public void setOldStatus(String oldStatus)
public void setNewStatus(String newStatus)
public void setStatusTransitionDate(org.joda.time.DateTime statusTransitionDate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |