public static final class Document.Builder extends Object implements Serializable, ModelBuilder, DocumentContract
Document
instances. Enforces the constraints of the DocumentContract
.Modifier and Type | Method and Description |
---|---|
Document |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static Document.Builder |
create(DocumentContract contract) |
static Document.Builder |
create(String documentId,
DocumentStatus status,
org.joda.time.DateTime dateCreated,
String initiatorPrincipalId,
String documentTypeName,
String documentTypeId) |
static Document.Builder |
create(String documentId,
String initiatorPrinicpalId,
String documentTypeName,
String documentTypeId) |
String |
getApplicationDocumentId()
Retrieve the application document id.
|
String |
getApplicationDocumentStatus()
Retrieve the application document status.
|
org.joda.time.DateTime |
getApplicationDocumentStatusDate()
Retrieve the last application document status transition date.
|
org.joda.time.DateTime |
getDateApproved()
Retrieve the document approval date
|
org.joda.time.DateTime |
getDateCreated()
Retrieve the document creation date
|
org.joda.time.DateTime |
getDateFinalized()
Retrieve the document finalization date
|
org.joda.time.DateTime |
getDateLastModified()
Retrieve the document last-modified date
|
String |
getDocumentHandlerUrl()
Retrieve the document handler url
|
String |
getDocumentId()
Retrieve the document id
|
String |
getDocumentTypeId()
Retrieve the id of the type of this document
|
String |
getDocumentTypeName()
Retrieve the name of the type of this document
|
String |
getInitiatorPrincipalId()
Retrieve the initiator principal id
|
String |
getRoutedByPrincipalId()
Retrieve the router principal id
|
DocumentStatus |
getStatus()
Retrieve the document status
|
String |
getTitle()
Retrieve the document title
|
Map<String,String> |
getVariables()
Retrieve the currently defined internal workflow engine variables for the document
NOTE: use of workflow engine variables is an advanced technique requiring specific crafting of the
workflow document routing; these variables will not be useful for the majority of workflow use cases
|
void |
setApplicationDocumentId(String applicationDocumentId) |
void |
setApplicationDocumentStatus(String applicationDocumentStatus) |
void |
setApplicationDocumentStatusDate(org.joda.time.DateTime applicationDocumentStatusDate) |
void |
setDateApproved(org.joda.time.DateTime dateApproved) |
void |
setDateCreated(org.joda.time.DateTime dateCreated) |
void |
setDateFinalized(org.joda.time.DateTime dateFinalized) |
void |
setDateLastModified(org.joda.time.DateTime dateLastModified) |
void |
setDocumentHandlerUrl(String documentHandlerUrl) |
void |
setDocumentId(String documentId) |
void |
setDocumentTypeId(String documentTypeId) |
void |
setDocumentTypeName(String documentTypeName) |
void |
setInitiatorPrincipalId(String initiatorPrincipalId) |
void |
setRoutedByPrincipalId(String routedByPrincipalId) |
void |
setStatus(DocumentStatus status) |
void |
setTitle(String title) |
void |
setVariables(Map<String,String> variables) |
public static Document.Builder create(String documentId, DocumentStatus status, org.joda.time.DateTime dateCreated, String initiatorPrincipalId, String documentTypeName, String documentTypeId)
public static Document.Builder create(String documentId, String initiatorPrinicpalId, String documentTypeName, String documentTypeId)
public static Document.Builder create(DocumentContract contract)
public Document build()
ModelBuilder
build
in interface ModelBuilder
public String getDocumentId()
DocumentContract
getDocumentId
in interface DocumentContract
public DocumentStatus getStatus()
DocumentContract
getStatus
in interface DocumentContract
public org.joda.time.DateTime getDateCreated()
DocumentContract
getDateCreated
in interface DocumentContract
public org.joda.time.DateTime getDateLastModified()
DocumentContract
getDateLastModified
in interface DocumentContract
public org.joda.time.DateTime getDateApproved()
DocumentContract
getDateApproved
in interface DocumentContract
public org.joda.time.DateTime getDateFinalized()
DocumentContract
getDateFinalized
in interface DocumentContract
public String getTitle()
DocumentContract
getTitle
in interface DocumentContract
public String getApplicationDocumentId()
DocumentContract
getApplicationDocumentId
in interface DocumentContract
public String getInitiatorPrincipalId()
DocumentContract
getInitiatorPrincipalId
in interface DocumentContract
public String getRoutedByPrincipalId()
DocumentContract
getRoutedByPrincipalId
in interface DocumentContract
public String getDocumentTypeName()
DocumentContract
getDocumentTypeName
in interface DocumentContract
public String getDocumentTypeId()
DocumentContract
getDocumentTypeId
in interface DocumentContract
public String getDocumentHandlerUrl()
DocumentContract
getDocumentHandlerUrl
in interface DocumentContract
public String getApplicationDocumentStatus()
DocumentContract
getApplicationDocumentStatus
in interface DocumentContract
public org.joda.time.DateTime getApplicationDocumentStatusDate()
DocumentContract
getApplicationDocumentStatusDate
in interface DocumentContract
public Map<String,String> getVariables()
DocumentContract
getVariables
in interface DocumentContract
public void setDocumentId(String documentId)
public void setStatus(DocumentStatus status)
public void setDateCreated(org.joda.time.DateTime dateCreated)
public void setDateLastModified(org.joda.time.DateTime dateLastModified)
public void setDateApproved(org.joda.time.DateTime dateApproved)
public void setDateFinalized(org.joda.time.DateTime dateFinalized)
public void setApplicationDocumentId(String applicationDocumentId)
public void setInitiatorPrincipalId(String initiatorPrincipalId)
public void setRoutedByPrincipalId(String routedByPrincipalId)
public void setDocumentTypeName(String documentTypeName)
public void setDocumentTypeId(String documentTypeId)
public void setDocumentHandlerUrl(String documentHandlerUrl)
public void setApplicationDocumentStatus(String applicationDocumentStatus)
public void setApplicationDocumentStatusDate(org.joda.time.DateTime applicationDocumentStatusDate)
public void setVariables(Map<String,String> variables)
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.