Class MasterDataInstanceBuilderImpl
- java.lang.Object
-
- com.flowable.dataobject.engine.impl.runtime.MasterDataInstanceBuilderImpl
-
- All Implemented Interfaces:
MasterDataInstanceBuilder
public class MasterDataInstanceBuilderImpl extends Object implements MasterDataInstanceBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected String
creatorId
protected String
dataObjectDefinitionId
protected String
dataObjectDefinitionKey
protected DataObjectRuntimeServiceImpl
dataObjectRuntimeService
protected String
externalId
protected boolean
favorite
protected String
key
protected String
name
protected String
overrideDefinitionTenantId
protected int
sortOrder
protected String
state
protected String
tenantId
protected String
updaterId
protected Map<String,Object>
variables
-
Constructor Summary
Constructors Constructor Description MasterDataInstanceBuilderImpl(DataObjectRuntimeServiceImpl dataObjectRuntimeService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MasterDataInstanceBuilder
addVariableValue(String name, Object value)
Set the tenant id to resolve the data object definitionMasterDataInstance
create()
creates the master data instanceMasterDataInstanceBuilder
creatorId(String creatorId)
Set the creator id of the master data instanceMasterDataInstanceBuilder
dataObjectDefinitionId(String dataObjectDefinitionId)
Set the id of the master data object definitionMasterDataInstanceBuilder
dataObjectDefinitionKey(String dataObjectDefinitionKey)
Set the key of the master data object definition, latest version of the data object definition with the given key.MasterDataInstanceBuilder
externalId(String externalId)
Set the external id of the master data instanceMasterDataInstanceBuilder
favorite()
Set the favorite value to true for the master data instanceString
getCreatorId()
String
getDataObjectDefinitionId()
String
getDataObjectDefinitionKey()
String
getExternalId()
String
getKey()
String
getName()
String
getOverrideDefinitionTenantId()
int
getSortOrder()
String
getState()
String
getTenantId()
String
getUpdaterId()
Map<String,Object>
getVariables()
boolean
isFavorite()
MasterDataInstanceBuilder
key(String key)
Set the key of the master data instanceMasterDataInstanceBuilder
name(String name)
Set the name of the master data instanceMasterDataInstanceBuilder
overrideDataObjectDefinitionId(String tenantId)
Indicator to override the tenant id of the data object definition with the provided value.MasterDataInstanceBuilder
sortOrder(int sortOrder)
Set the sort order of the master data instanceMasterDataInstanceBuilder
state(String state)
Set the state of the master data instanceMasterDataInstanceBuilder
tenantId(String tenantId)
Set the tenant id to resolve the data object definitionMasterDataInstanceBuilder
updaterId(String updaterId)
Set the updater id of the master data instance
-
-
-
Field Detail
-
dataObjectRuntimeService
protected DataObjectRuntimeServiceImpl dataObjectRuntimeService
-
dataObjectDefinitionId
protected String dataObjectDefinitionId
-
dataObjectDefinitionKey
protected String dataObjectDefinitionKey
-
key
protected String key
-
externalId
protected String externalId
-
name
protected String name
-
state
protected String state
-
sortOrder
protected int sortOrder
-
favorite
protected boolean favorite
-
creatorId
protected String creatorId
-
updaterId
protected String updaterId
-
tenantId
protected String tenantId
-
overrideDefinitionTenantId
protected String overrideDefinitionTenantId
-
-
Constructor Detail
-
MasterDataInstanceBuilderImpl
public MasterDataInstanceBuilderImpl(DataObjectRuntimeServiceImpl dataObjectRuntimeService)
-
-
Method Detail
-
dataObjectDefinitionId
public MasterDataInstanceBuilder dataObjectDefinitionId(String dataObjectDefinitionId)
Description copied from interface:MasterDataInstanceBuilder
Set the id of the master data object definition- Specified by:
dataObjectDefinitionId
in interfaceMasterDataInstanceBuilder
-
dataObjectDefinitionKey
public MasterDataInstanceBuilder dataObjectDefinitionKey(String dataObjectDefinitionKey)
Description copied from interface:MasterDataInstanceBuilder
Set the key of the master data object definition, latest version of the data object definition with the given key. If dataObjectDefinitionId was set this will be ignored- Specified by:
dataObjectDefinitionKey
in interfaceMasterDataInstanceBuilder
-
name
public MasterDataInstanceBuilder name(String name)
Description copied from interface:MasterDataInstanceBuilder
Set the name of the master data instance- Specified by:
name
in interfaceMasterDataInstanceBuilder
-
externalId
public MasterDataInstanceBuilder externalId(String externalId)
Description copied from interface:MasterDataInstanceBuilder
Set the external id of the master data instance- Specified by:
externalId
in interfaceMasterDataInstanceBuilder
-
key
public MasterDataInstanceBuilder key(String key)
Description copied from interface:MasterDataInstanceBuilder
Set the key of the master data instance- Specified by:
key
in interfaceMasterDataInstanceBuilder
-
state
public MasterDataInstanceBuilder state(String state)
Description copied from interface:MasterDataInstanceBuilder
Set the state of the master data instance- Specified by:
state
in interfaceMasterDataInstanceBuilder
-
sortOrder
public MasterDataInstanceBuilder sortOrder(int sortOrder)
Description copied from interface:MasterDataInstanceBuilder
Set the sort order of the master data instance- Specified by:
sortOrder
in interfaceMasterDataInstanceBuilder
-
favorite
public MasterDataInstanceBuilder favorite()
Description copied from interface:MasterDataInstanceBuilder
Set the favorite value to true for the master data instance- Specified by:
favorite
in interfaceMasterDataInstanceBuilder
-
creatorId
public MasterDataInstanceBuilder creatorId(String creatorId)
Description copied from interface:MasterDataInstanceBuilder
Set the creator id of the master data instance- Specified by:
creatorId
in interfaceMasterDataInstanceBuilder
-
updaterId
public MasterDataInstanceBuilder updaterId(String updaterId)
Description copied from interface:MasterDataInstanceBuilder
Set the updater id of the master data instance- Specified by:
updaterId
in interfaceMasterDataInstanceBuilder
-
tenantId
public MasterDataInstanceBuilder tenantId(String tenantId)
Description copied from interface:MasterDataInstanceBuilder
Set the tenant id to resolve the data object definition- Specified by:
tenantId
in interfaceMasterDataInstanceBuilder
-
overrideDataObjectDefinitionId
public MasterDataInstanceBuilder overrideDataObjectDefinitionId(String tenantId)
Description copied from interface:MasterDataInstanceBuilder
Indicator to override the tenant id of the data object definition with the provided value. The tenantId to lookup the data object definition should still be provided if needed.- Specified by:
overrideDataObjectDefinitionId
in interfaceMasterDataInstanceBuilder
-
addVariableValue
public MasterDataInstanceBuilder addVariableValue(String name, Object value)
Description copied from interface:MasterDataInstanceBuilder
Set the tenant id to resolve the data object definition- Specified by:
addVariableValue
in interfaceMasterDataInstanceBuilder
-
create
public MasterDataInstance create()
Description copied from interface:MasterDataInstanceBuilder
creates the master data instance- Specified by:
create
in interfaceMasterDataInstanceBuilder
-
getDataObjectDefinitionId
public String getDataObjectDefinitionId()
-
getDataObjectDefinitionKey
public String getDataObjectDefinitionKey()
-
getKey
public String getKey()
-
getExternalId
public String getExternalId()
-
getName
public String getName()
-
getState
public String getState()
-
getSortOrder
public int getSortOrder()
-
isFavorite
public boolean isFavorite()
-
getCreatorId
public String getCreatorId()
-
getUpdaterId
public String getUpdaterId()
-
getTenantId
public String getTenantId()
-
getOverrideDefinitionTenantId
public String getOverrideDefinitionTenantId()
-
-