public interface DataObjectModificationBuilder
DataObjectDataSource
implementation.Modifier and Type | Method and Description |
---|---|
String |
getDefinitionId()
Returns the id of the data object definition this modification builder is based on.
|
Map<String,Object> |
getModificationData() |
Map<String,Object> |
getOriginalData() |
DataObjectInstanceVariableContainer |
modify()
Persists the modified data object instance.
|
DataObjectModificationBuilder |
modifyFromPayload(DataObjectHandlingContext context)
If a modification builder is used to modify a data object given by the payload sent from a form typically, this method is invoked to modify the
data object according the given payload data.
|
DataObjectModificationBuilder |
originalValue(String valueName,
Object value)
Generic setter for a data object field value specified by its name and value to be set.
|
DataObjectModificationBuilder |
value(String valueName,
Object value)
Generic setter for a data object field value specified by its name and value to be set.
|
String getDefinitionId()
DataObjectModificationBuilder modifyFromPayload(DataObjectHandlingContext context)
context
- the data object context containing the data and full payload and further information for parsing the content into the data objectDataObjectModificationBuilder value(String valueName, Object value)
valueName
- the name of the data object field to set a valuevalue
- the value to be setDataObjectModificationBuilder originalValue(String valueName, Object value)
valueName
- the name of the data object field to set a valuevalue
- the value to be setDataObjectInstanceVariableContainer modify()
Copyright © 2019. All rights reserved.