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
FieldsModifier and TypeFieldDescriptionprotected Collection<String>protected Stringprotected final DataObjectDataSourceImplprotected Stringprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionDataObjectModificationBuilderImpl(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, waitMethods 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:DataObjectModificationBuilderSet 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:
definitionIdin interfaceDataObjectModificationBuilder
-
definitionKey
Description copied from interface:DataObjectModificationBuilderSet 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:
definitionKeyin interfaceDataObjectModificationBuilder
-
tenantId
Description copied from interface:DataObjectModificationBuilderSet the tenant id for data object definition. This can be used together with the definition key for the lookup- Specified by:
tenantIdin interfaceDataObjectModificationBuilder
-
operation
Description copied from interface:DataObjectModificationBuilderSet the key of the operation that should be used to create the object.- Specified by:
operationin interfaceDataObjectModificationBuilder
-
lookupId
Description copied from interface:DataObjectModificationBuilderThe id of the data object that should be modified with the data. Only relevant when using the default update operation.- Specified by:
lookupIdin interfaceDataObjectModificationBuilder
-
value
Description copied from interface:DataObjectModificationBuilderGeneric setter for a data object field value specified by its name and value to be set.- Specified by:
valuein 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:DataObjectModificationBuilderGeneric setter for a data object field value specified by its name and value to be set.- Specified by:
originalValuein 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:
accessibleByUserOrGroupsin interfaceDataObjectModificationBuilder
-
modifyFromPayload
Description copied from interface:DataObjectModificationBuilderIf 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:
modifyFromPayloadin 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:DataObjectModificationBuilderPersists 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:
modifyin 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:DataObjectModificationBuilderReturns the id of the data object definition this modification builder is based on.- Specified by:
getDefinitionIdin interfaceDataObjectModificationBuilder- Returns:
- the id of the data object definition
-
getDefinitionKey
-
getTenantId
-
getOperation
-
getLookupId
-
getModificationData
- Specified by:
getModificationDatain interfaceDataObjectModificationBuilder
-
getOriginalData
- Specified by:
getOriginalDatain interfaceDataObjectModificationBuilder
-
getAccessibleByUser
-
getAccessibleByGroups
-