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
FieldsModifier and TypeFieldDescriptionprotected CommandExecutorprotected Stringprotected Stringprotected Collection<com.fasterxml.jackson.databind.JsonNode>protected com.fasterxml.jackson.databind.ObjectMapperprotected Booleanprotected Stringprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionMasterDataInstanceImportBuilderImpl(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>booleanBefore 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:MasterDataInstanceImportBuilderAdds a master data json file to this builder.- Specified by:
addInputStreamin interfaceMasterDataInstanceImportBuilder
-
addClasspathResource
Description copied from interface:MasterDataInstanceImportBuilderAdds a master data json file from the classpath to this builder.- Specified by:
addClasspathResourcein interfaceMasterDataInstanceImportBuilder
-
addResourceDocument
Description copied from interface:MasterDataInstanceImportBuilderAdds a master data json document to this builder.- Specified by:
addResourceDocumentin interfaceMasterDataInstanceImportBuilder
-
tenantId
Description copied from interface:MasterDataInstanceImportBuilderThe 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:
tenantIdin interfaceMasterDataInstanceImportBuilder- Parameters:
tenantId- the id of the tenant to which to deploy
-
dataObjectDefinitionKey
Description copied from interface:MasterDataInstanceImportBuilderThe 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:
dataObjectDefinitionKeyin interfaceMasterDataInstanceImportBuilder- Parameters:
dataObjectDefinitionKey- the key of the data object that should be used for deployment
-
dataObjectDefinitionId
Description copied from interface:MasterDataInstanceImportBuilderThe 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:
dataObjectDefinitionIdin interfaceMasterDataInstanceImportBuilder- Parameters:
dataObjectDefinitionId- the id of the data object that should be used for deployment
-
overwrite
Description copied from interface:MasterDataInstanceImportBuilderBefore 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:
overwritein interfaceMasterDataInstanceImportBuilder
-
doImport
- Specified by:
doImportin interfaceMasterDataInstanceImportBuilder
-
getMasterDataDocuments
-
getTenantId
-
isTenantIdSet
public boolean isTenantIdSet() -
getDataObjectDefinitionKey
-
getDataObjectDefinitionId
-
getOverwrite
-