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()
ModelBuilderbuild in interface ModelBuilderpublic String getDocumentId()
DocumentContractgetDocumentId in interface DocumentContractpublic DocumentStatus getStatus()
DocumentContractgetStatus in interface DocumentContractpublic org.joda.time.DateTime getDateCreated()
DocumentContractgetDateCreated in interface DocumentContractpublic org.joda.time.DateTime getDateLastModified()
DocumentContractgetDateLastModified in interface DocumentContractpublic org.joda.time.DateTime getDateApproved()
DocumentContractgetDateApproved in interface DocumentContractpublic org.joda.time.DateTime getDateFinalized()
DocumentContractgetDateFinalized in interface DocumentContractpublic String getTitle()
DocumentContractgetTitle in interface DocumentContractpublic String getApplicationDocumentId()
DocumentContractgetApplicationDocumentId in interface DocumentContractpublic String getInitiatorPrincipalId()
DocumentContractgetInitiatorPrincipalId in interface DocumentContractpublic String getRoutedByPrincipalId()
DocumentContractgetRoutedByPrincipalId in interface DocumentContractpublic String getDocumentTypeName()
DocumentContractgetDocumentTypeName in interface DocumentContractpublic String getDocumentTypeId()
DocumentContractgetDocumentTypeId in interface DocumentContractpublic String getDocumentHandlerUrl()
DocumentContractgetDocumentHandlerUrl in interface DocumentContractpublic String getApplicationDocumentStatus()
DocumentContractgetApplicationDocumentStatus in interface DocumentContractpublic org.joda.time.DateTime getApplicationDocumentStatusDate()
DocumentContractgetApplicationDocumentStatusDate in interface DocumentContractpublic Map<String,String> getVariables()
DocumentContractgetVariables in interface DocumentContractpublic 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-2015 The Kuali Foundation. All Rights Reserved.