|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kew.api.document.Document.Builder
public static final class Document.Builder
A builder which can be used to construct Document instances. Enforces the constraints of the DocumentContract.
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 ModelBuilderpublic String getDocumentId()
DocumentContract
getDocumentId in interface DocumentContractpublic DocumentStatus getStatus()
DocumentContract
getStatus in interface DocumentContractpublic org.joda.time.DateTime getDateCreated()
DocumentContract
getDateCreated in interface DocumentContractpublic org.joda.time.DateTime getDateLastModified()
DocumentContract
getDateLastModified in interface DocumentContractpublic org.joda.time.DateTime getDateApproved()
DocumentContract
getDateApproved in interface DocumentContractpublic org.joda.time.DateTime getDateFinalized()
DocumentContract
getDateFinalized in interface DocumentContractpublic String getTitle()
DocumentContract
getTitle in interface DocumentContractpublic String getApplicationDocumentId()
DocumentContract
getApplicationDocumentId in interface DocumentContractpublic String getInitiatorPrincipalId()
DocumentContract
getInitiatorPrincipalId in interface DocumentContractpublic String getRoutedByPrincipalId()
DocumentContract
getRoutedByPrincipalId in interface DocumentContractpublic String getDocumentTypeName()
DocumentContract
getDocumentTypeName in interface DocumentContractpublic String getDocumentTypeId()
DocumentContract
getDocumentTypeId in interface DocumentContractpublic String getDocumentHandlerUrl()
DocumentContract
getDocumentHandlerUrl in interface DocumentContractpublic String getApplicationDocumentStatus()
DocumentContract
getApplicationDocumentStatus in interface DocumentContractpublic org.joda.time.DateTime getApplicationDocumentStatusDate()
DocumentContract
getApplicationDocumentStatusDate in interface DocumentContractpublic Map<String,String> getVariables()
DocumentContract
getVariables 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 setTitle(String title)
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||