Class MasterDataInstanceImportBuilderImpl
java.lang.Object
com.flowable.dataobject.engine.impl.runtime.MasterDataInstanceImportBuilderImpl
- All Implemented Interfaces:
MasterDataInstanceImportBuilder
public class MasterDataInstanceImportBuilderImpl
extends Object
implements MasterDataInstanceImportBuilder
- Author:
- Filip Hrisafov
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandExecutor
protected String
protected String
protected Collection<com.fasterxml.jackson.databind.JsonNode>
protected com.fasterxml.jackson.databind.ObjectMapper
protected Boolean
protected String
protected boolean
-
Constructor Summary
ConstructorDescriptionMasterDataInstanceImportBuilderImpl
(CommandExecutor commandExecutor, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionaddClasspathResource
(String resource) Adds a master data json file from the classpath to this builder.addInputStream
(String resourceName, InputStream inputStream) Adds a master data json file to this builder.addResourceDocument
(String resourceDocument) Adds a master data json document to this builder.dataObjectDefinitionId
(String dataObjectDefinitionId) The data object definition id that should be used when deploying the master data resource documents.dataObjectDefinitionKey
(String dataObjectDefinitionKey) The data object definition key that should be used when deploying the master data resource documents.doImport()
Collection<com.fasterxml.jackson.databind.JsonNode>
boolean
Before importing master data instances from the document.The tenantId that should be used when deploying the master data resource documents.
-
Field Details
-
commandExecutor
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
masterDataDocuments
-
tenantId
-
tenantIdSet
protected boolean tenantIdSet -
dataObjectDefinitionKey
-
dataObjectDefinitionId
-
overwrite
-
-
Constructor Details
-
MasterDataInstanceImportBuilderImpl
public MasterDataInstanceImportBuilderImpl(CommandExecutor commandExecutor, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
addInputStream
Description copied from interface:MasterDataInstanceImportBuilder
Adds a master data json file to this builder.- Specified by:
addInputStream
in interfaceMasterDataInstanceImportBuilder
-
addClasspathResource
Description copied from interface:MasterDataInstanceImportBuilder
Adds a master data json file from the classpath to this builder.- Specified by:
addClasspathResource
in interfaceMasterDataInstanceImportBuilder
-
addResourceDocument
Description copied from interface:MasterDataInstanceImportBuilder
Adds a master data json document to this builder.- Specified by:
addResourceDocument
in interfaceMasterDataInstanceImportBuilder
-
tenantId
Description copied from interface:MasterDataInstanceImportBuilder
The tenantId that should be used when deploying the master data resource documents. If set then the tenantId from the document would be ignored.- Specified by:
tenantId
in interfaceMasterDataInstanceImportBuilder
- Parameters:
tenantId
- the id of the tenant to which to deploy
-
dataObjectDefinitionKey
Description copied from interface:MasterDataInstanceImportBuilder
The data object definition key that should be used when deploying the master data resource documents. If set then the dataObjectDefinitionKey from the document would be ignored.- Specified by:
dataObjectDefinitionKey
in interfaceMasterDataInstanceImportBuilder
- Parameters:
dataObjectDefinitionKey
- the key of the data object that should be used for deployment
-
dataObjectDefinitionId
Description copied from interface:MasterDataInstanceImportBuilder
The data object definition id that should be used when deploying the master data resource documents. If set then the dataObjectDefinitionKey from the document would be ignored.- Specified by:
dataObjectDefinitionId
in interfaceMasterDataInstanceImportBuilder
- Parameters:
dataObjectDefinitionId
- the id of the data object that should be used for deployment
-
overwrite
Description copied from interface:MasterDataInstanceImportBuilder
Before importing master data instances from the document. Delete all of them that matched the definition id / key in the matching tenant. This should be used with care. If set then the overwrite flag from the document would be ignored.- Specified by:
overwrite
in interfaceMasterDataInstanceImportBuilder
-
doImport
- Specified by:
doImport
in interfaceMasterDataInstanceImportBuilder
-
getMasterDataDocuments
-
getTenantId
-
isTenantIdSet
public boolean isTenantIdSet() -
getDataObjectDefinitionKey
-
getDataObjectDefinitionId
-
getOverwrite
-