public static final class DocumentUpdate.Builder extends Object implements Serializable, ModelBuilder
DocumentUpdate
instances.Modifier and Type | Method and Description |
---|---|
void |
addDirtyField(String field) |
DocumentUpdate |
build()
Returns an instance of the object being built by this builder based
on the current state of the builder.
|
static DocumentUpdate.Builder |
create() |
static DocumentUpdate.Builder |
create(Document document) |
String |
getApplicationDocumentId() |
String |
getApplicationDocumentStatus() |
List<String> |
getDirtyFields() |
String |
getTitle() |
Map<String,String> |
getVariables() |
String |
getVariableValue(String name) |
void |
setApplicationDocumentId(String applicationDocumentId) |
void |
setApplicationDocumentStatus(String applicationDocumentStatus) |
void |
setDirtyFields(List<String> dirtyFields) |
void |
setTitle(String title)
Sets the document title - will be truncated to
KewApiConstants.TITLE_MAX_LENGTH length. |
void |
setVariable(String name,
String value) |
void |
setVariables(Map<String,String> variables) |
public static DocumentUpdate.Builder create()
public static DocumentUpdate.Builder create(Document document)
public DocumentUpdate build()
ModelBuilder
build
in interface ModelBuilder
public void setTitle(String title)
KewApiConstants.TITLE_MAX_LENGTH
length.public String getApplicationDocumentId()
public void setApplicationDocumentId(String applicationDocumentId)
public String getApplicationDocumentStatus()
public void setApplicationDocumentStatus(String applicationDocumentStatus)
public void setVariables(Map<String,String> variables)
public Map<String,String> getVariables()
public String getVariableValue(String name)
public void setVariable(String name, String value)
public List<String> getDirtyFields()
public void setDirtyFields(List<String> dirtyFields)
public void addDirtyField(String field)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.