Class DataObjectInstanceVariableContainerBuilderImpl
java.lang.Object
com.flowable.dataobject.engine.impl.runtime.datasource.DataObjectInstanceVariableContainerBuilderImpl
- All Implemented Interfaces:
DataObjectInstanceVariableContainerBuilder
public class DataObjectInstanceVariableContainerBuilderImpl
extends Object
implements DataObjectInstanceVariableContainerBuilder
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Collection<String>protected Stringprotected final DataObjectDataSourceImplprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionDataObjectInstanceVariableContainerBuilderImpl(DataObjectDataSourceImpl dataObjectDataSource) -
Method Summary
Modifier and TypeMethodDescriptionaccessibleByUserOrGroups(String userId, Collection<String> groupKeys) If set, the permissions to create data object instances are checked against the passed user and groups.create()Creates and persists the new data object instance.If an instance builder is used to create a new data object given by the payload sent from a form typically, this method is invoked to create the data object according the given payload data.definitionId(String id) Set the id of the data object definition the new instance should be based on.definitionKey(String key) Set the key of the data object definition the new instance should be based on.getData()Set the key of the operation that should be used to create the object.Set the tenant id for the new data object.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.DataObjectInstanceVariableContainerBuilder
accessibleByUser
-
Field Details
-
data
-
definitionKey
-
definitionId
-
tenantId
-
operation
-
accessibleByUser
-
accessibleByGroups
-
dataObjectDataSource
-
-
Constructor Details
-
DataObjectInstanceVariableContainerBuilderImpl
public DataObjectInstanceVariableContainerBuilderImpl(DataObjectDataSourceImpl dataObjectDataSource)
-
-
Method Details
-
definitionId
Description copied from interface:DataObjectInstanceVariableContainerBuilderSet the id of the data object definition the new instance should be based on. Must only be provided, if the data object definition key is not set.- Specified by:
definitionIdin interfaceDataObjectInstanceVariableContainerBuilder
-
definitionKey
Description copied from interface:DataObjectInstanceVariableContainerBuilderSet the key of the data object definition the new instance 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 interfaceDataObjectInstanceVariableContainerBuilder
-
tenantId
Description copied from interface:DataObjectInstanceVariableContainerBuilderSet the tenant id for the new data object. This can be used together with the definition key for the lookup- Specified by:
tenantIdin interfaceDataObjectInstanceVariableContainerBuilder
-
operation
Description copied from interface:DataObjectInstanceVariableContainerBuilderSet the key of the operation that should be used to create the object.- Specified by:
operationin interfaceDataObjectInstanceVariableContainerBuilder
-
createFromPayload
public DataObjectInstanceVariableContainerBuilder createFromPayload(DataObjectHandlingContext context) Description copied from interface:DataObjectInstanceVariableContainerBuilderIf an instance builder is used to create a new data object given by the payload sent from a form typically, this method is invoked to create the data object according the given payload data.- Specified by:
createFromPayloadin interfaceDataObjectInstanceVariableContainerBuilder- 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
-
value
Description copied from interface:DataObjectInstanceVariableContainerBuilderGeneric setter for a data object field value specified by its name and value to be set.- Specified by:
valuein interfaceDataObjectInstanceVariableContainerBuilder- 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 DataObjectInstanceVariableContainerBuilder accessibleByUserOrGroups(String userId, Collection<String> groupKeys) Description copied from interface:DataObjectInstanceVariableContainerBuilderIf set, the permissions to create data object instances are checked against the passed user and groups.- Specified by:
accessibleByUserOrGroupsin interfaceDataObjectInstanceVariableContainerBuilder
-
create
Description copied from interface:DataObjectInstanceVariableContainerBuilderCreates and persists the new data object instance.- Specified by:
createin interfaceDataObjectInstanceVariableContainerBuilder- Returns:
- the newly created data object instance
-
getDefinitionId
- Specified by:
getDefinitionIdin interfaceDataObjectInstanceVariableContainerBuilder
-
getDefinitionKey
- Specified by:
getDefinitionKeyin interfaceDataObjectInstanceVariableContainerBuilder
-
getTenantId
- Specified by:
getTenantIdin interfaceDataObjectInstanceVariableContainerBuilder
-
getOperation
-
getData
- Specified by:
getDatain interfaceDataObjectInstanceVariableContainerBuilder
-
getAccessibleByUser
-
getAccessibleByGroups
-