Class DataObjectModificationBuilderImpl
java.lang.Object
com.flowable.dataobject.engine.impl.runtime.datasource.DataObjectModificationBuilderImpl
- All Implemented Interfaces:
DataObjectModificationBuilder
public class DataObjectModificationBuilderImpl
extends Object
implements DataObjectModificationBuilder
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected Collection<String>
protected String
protected final DataObjectDataSourceImpl
protected String
protected String
protected String
protected String
protected String
-
Constructor Summary
ConstructorDescriptionDataObjectModificationBuilderImpl
(DataObjectDataSourceImpl dataObjectDataSource) -
Method Summary
Modifier and TypeMethodDescriptionaccessibleByUserOrGroups
(String userId, Collection<String> groupKeys) definitionId
(String id) Set the id of the data object definition the update operation should be based on.definitionKey
(String key) Set the key of the data object definition the update operation should be based on.Returns the id of the data object definition this modification builder is based on.The id of the data object that should be modified with the data.modify()
Persists the modified data object instance.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.Set the key of the operation that should be used to create the object.originalValue
(String valueName, Object value) Generic setter for a data object field value specified by its name and value to be set.Set the tenant id for data object definition.Generic setter for a data object field value specified by its name and value to be set.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.flowable.dataobject.api.runtime.DataObjectModificationBuilder
accessibleByUser
-
Field Details
-
dataObjectDataSource
-
definitionId
-
definitionKey
-
tenantId
-
operation
-
lookupId
-
modificationData
-
originalData
-
accessibleByUser
-
accessibleByGroups
-
-
Constructor Details
-
DataObjectModificationBuilderImpl
-
-
Method Details
-
definitionId
Description copied from interface:DataObjectModificationBuilder
Set the id of the data object definition the update operation should be based on. Must only be provided, if the data object definition key is not set.- Specified by:
definitionId
in interfaceDataObjectModificationBuilder
-
definitionKey
Description copied from interface:DataObjectModificationBuilder
Set the key of the data object definition the update operation should be based on. If set, the latest definition id is used. The key is ignored, if the definition id is set directly.- Specified by:
definitionKey
in interfaceDataObjectModificationBuilder
-
tenantId
Description copied from interface:DataObjectModificationBuilder
Set the tenant id for data object definition. This can be used together with the definition key for the lookup- Specified by:
tenantId
in interfaceDataObjectModificationBuilder
-
operation
Description copied from interface:DataObjectModificationBuilder
Set the key of the operation that should be used to create the object.- Specified by:
operation
in interfaceDataObjectModificationBuilder
-
lookupId
Description copied from interface:DataObjectModificationBuilder
The id of the data object that should be modified with the data. Only relevant when using the default update operation.- Specified by:
lookupId
in interfaceDataObjectModificationBuilder
-
value
Description copied from interface:DataObjectModificationBuilder
Generic setter for a data object field value specified by its name and value to be set.- Specified by:
value
in interfaceDataObjectModificationBuilder
- Parameters:
valueName
- the name of the data object field to set a valuevalue
- the value to be set- Returns:
- the builder instance for method chaining
-
originalValue
Description copied from interface:DataObjectModificationBuilder
Generic setter for a data object field value specified by its name and value to be set.- Specified by:
originalValue
in interfaceDataObjectModificationBuilder
- Parameters:
valueName
- the name of the data object field to set a valuevalue
- the value to be set- Returns:
- the builder instance for method chaining
-
accessibleByUserOrGroups
public DataObjectModificationBuilder accessibleByUserOrGroups(String userId, Collection<String> groupKeys) - Specified by:
accessibleByUserOrGroups
in interfaceDataObjectModificationBuilder
-
modifyFromPayload
Description copied from interface:DataObjectModificationBuilder
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.- Specified by:
modifyFromPayload
in interfaceDataObjectModificationBuilder
- Parameters:
context
- the data object context containing the data and full payload and further information for parsing the content into the data object- Returns:
- the builder instance for method chaining
-
modify
Description copied from interface:DataObjectModificationBuilder
Persists the modified data object instance. This operation will try to return the container that was modified. NOTE: Whether something is returned or not depends on the implementation for the operation- Specified by:
modify
in interfaceDataObjectModificationBuilder
- Returns:
- the modified data object instance which might be the very same or actually a new one returned by the data source
-
getDefinitionId
Description copied from interface:DataObjectModificationBuilder
Returns the id of the data object definition this modification builder is based on.- Specified by:
getDefinitionId
in interfaceDataObjectModificationBuilder
- Returns:
- the id of the data object definition
-
getDefinitionKey
-
getTenantId
-
getOperation
-
getLookupId
-
getModificationData
- Specified by:
getModificationData
in interfaceDataObjectModificationBuilder
-
getOriginalData
- Specified by:
getOriginalData
in interfaceDataObjectModificationBuilder
-
getAccessibleByUser
-
getAccessibleByGroups
-