public interface DataObjectModificationBuilder
DataObjectDataSource
implementation.Modifier and Type | Method and Description |
---|---|
default DataObjectModificationBuilder |
accessibleByUser(String userId) |
DataObjectModificationBuilder |
accessibleByUserOrGroups(String userId,
Collection<String> groupKeys) |
DataObjectModificationBuilder |
definitionId(String id)
Set the id of the data object definition the update operation should be based on.
|
DataObjectModificationBuilder |
definitionKey(String key)
Set the key of the data object definition the update operation should be based on.
|
String |
getDefinitionId()
Returns the id of the data object definition this modification builder is based on.
|
Map<String,Object> |
getModificationData() |
Map<String,Object> |
getOriginalData() |
DataObjectModificationBuilder |
lookupId(String lookupId)
The id of the data object that should be modified with the data.
|
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 |
operation(String operation)
Set the key of the operation that should be used to create the object.
|
DataObjectModificationBuilder |
originalValue(String valueName,
Object value)
Generic setter for a data object field value specified by its name and value to be set.
|
DataObjectModificationBuilder |
tenantId(String tenantId)
Set the tenant id for data object definition.
|
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 definitionId(String id)
DataObjectModificationBuilder definitionKey(String key)
DataObjectModificationBuilder tenantId(String tenantId)
DataObjectModificationBuilder operation(String operation)
DataObjectModificationBuilder lookupId(String lookupId)
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 setdefault DataObjectModificationBuilder accessibleByUser(String userId)
DataObjectModificationBuilder accessibleByUserOrGroups(String userId, Collection<String> groupKeys)
DataObjectInstanceVariableContainer modify()