public static final class DocumentStatusTransition.Builder extends Object implements Serializable, ModelBuilder, DocumentStatusTransitionContract
DocumentStatusTransition
instances. Enforces the constraints of the DocumentStatusTransitionContract
.Modifier and Type | Method and Description |
---|---|
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) |
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 setDocumentId(String documentId)
public void setOldStatus(String oldStatus)
public void setNewStatus(String newStatus)
public void setStatusTransitionDate(org.joda.time.DateTime statusTransitionDate)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.