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
Modifier and TypeFieldDescriptionprotected Collection<String>
protected String
protected final DataObjectDataSourceImpl
protected String
protected String
protected String
protected String
-
Constructor Summary
ConstructorDescriptionDataObjectInstanceVariableContainerBuilderImpl
(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, wait
Methods 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:DataObjectInstanceVariableContainerBuilder
Set 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:
definitionId
in interfaceDataObjectInstanceVariableContainerBuilder
-
definitionKey
Description copied from interface:DataObjectInstanceVariableContainerBuilder
Set 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:
definitionKey
in interfaceDataObjectInstanceVariableContainerBuilder
-
tenantId
Description copied from interface:DataObjectInstanceVariableContainerBuilder
Set the tenant id for the new data object. This can be used together with the definition key for the lookup- Specified by:
tenantId
in interfaceDataObjectInstanceVariableContainerBuilder
-
operation
Description copied from interface:DataObjectInstanceVariableContainerBuilder
Set the key of the operation that should be used to create the object.- Specified by:
operation
in interfaceDataObjectInstanceVariableContainerBuilder
-
createFromPayload
public DataObjectInstanceVariableContainerBuilder createFromPayload(DataObjectHandlingContext context) Description copied from interface:DataObjectInstanceVariableContainerBuilder
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.- Specified by:
createFromPayload
in 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:DataObjectInstanceVariableContainerBuilder
Generic setter for a data object field value specified by its name and value to be set.- Specified by:
value
in 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:DataObjectInstanceVariableContainerBuilder
If set, the permissions to create data object instances are checked against the passed user and groups.- Specified by:
accessibleByUserOrGroups
in interfaceDataObjectInstanceVariableContainerBuilder
-
create
Description copied from interface:DataObjectInstanceVariableContainerBuilder
Creates and persists the new data object instance.- Specified by:
create
in interfaceDataObjectInstanceVariableContainerBuilder
- Returns:
- the newly created data object instance
-
getDefinitionId
- Specified by:
getDefinitionId
in interfaceDataObjectInstanceVariableContainerBuilder
-
getDefinitionKey
- Specified by:
getDefinitionKey
in interfaceDataObjectInstanceVariableContainerBuilder
-
getTenantId
- Specified by:
getTenantId
in interfaceDataObjectInstanceVariableContainerBuilder
-
getOperation
-
getData
- Specified by:
getData
in interfaceDataObjectInstanceVariableContainerBuilder
-
getAccessibleByUser
-
getAccessibleByGroups
-