@PublicApi
public interface ImportSourceConfigurationFacade
Modifier and Type | Method and Description |
---|---|
ImportSource |
createPredefinedConfiguration(Integer importSourceId,
ObjectTypeBean optionalParent)
Create the template configuration as specified by the component.
|
void |
createPredefinedStructure(Integer importSourceId,
ObjectTypeBean optionalParent)
Creates a predefined structure based on the import component used.
|
void |
deleteImportSource(Integer importSourceId)
Deletes an Import Source
|
void |
deleteImportSourceOT(Integer importSourceOT)
Deletes an Import Source OT
|
void |
deleteImportSourceOTAttr(Integer importSourceOTAttr)
Deletes an Import Source OTA
|
List<ImportSource> |
findImportSourcesByModule(String moduleKey)
Finds import sources for a specific import module type (each integration module specifies it's own type with a
module key e.g.
|
List<ImportSource> |
findImportSourcesBySchema(Integer objectSchemaId)
Finds all import source configurations by the given object schema id.
|
List<ImportSource> |
findImportSourcesForObjectTypeId(Integer objectTypeId)
Finds all the import sources where the specified object type id is used in any object type mapping
configuration.
|
ImportSource |
loadImportSource(Integer importSourceId)
Loads the ImportSource from the database and validates it if it is ready to be synchronised.
|
ImportSourceOT |
loadImportSourceOT(Integer importSourceOTId)
Load a specific import source OT configuration item.
|
ImportSourceOTAttr |
loadImportSourceOTAttr(Integer importSourceOTAttrId)
Load a specific import source OT Attr configuration item.
|
ImportSource |
loadImportSourceWithMaskedPasswords(Integer importSourceId)
Loads the ImportSource from the database and validate if it is ready to be synchronised.
|
List<String> |
passwordFieldNamesInModuleConfig(Integer importSourceId)
Retrieves a list of all the keys (the json names) in the
ImportSource.getJsonConfiguration() that
represents a password field for the given import source. |
Progress |
startImportSource(int importSourceId)
Start an import given the id of the configuration.
|
Progress |
startImportSourceForSpecificOTs(int importSourceId,
List<Integer> importSourceOTIds)
Start an import given the id of the configuration but only import a specific number of object types.
|
ImportSource |
storeImportSource(ImportSource importSource)
Store the entire import source together with all attached ImportSourceOTs and ImportSourceOTAs.
|
ImportSourceOT |
storeImportSourceOT(ImportSourceOT importSourceOT)
Store a single import source OT configuration item together with all ImportSourceOTAs.
|
ImportSourceOTAttr |
storeImportSourceOTAttr(ImportSourceOTAttr importSourceOTAttr)
Store a single import source OTAttr configuration item together with all ImportSourceOTAs.
|
List<ImportSource> findImportSourcesBySchema(Integer objectSchemaId) throws InsightException
loadImportSource(Integer)
InsightException
List<ImportSource> findImportSourcesForObjectTypeId(Integer objectTypeId) throws InsightException
ImportSourceOT
configuration with the ObjectTypeBean
specified by the argument. The import sources in the list will have
all passwords masked see loadImportSource(Integer)
InsightException
List<ImportSource> findImportSourcesByModule(String moduleKey) throws InsightException
loadImportSource(Integer)
InsightException
ImportSource loadImportSource(Integer importSourceId) throws InsightException
ValidationInsightException
rather than returning an Invalid import source. Note that the validation state of the import source will be
persisted to the database. I.e. a call to this function will update the stored import source with the current
validation statusImportSource.getJsonConfiguration()
removed. In other words
all password fields (both name and value in the json config) will be missing. To get the password fields (names
and masked values) use the loadImportSourceWithMaskedPasswords(Integer)
instead.InsightException
- / ValidationInsightException if the ImportSource is not valid.List<String> passwordFieldNamesInModuleConfig(Integer importSourceId) throws InsightException
ImportSource.getJsonConfiguration()
that
represents a password field for the given import source. The password fields are masked in the fetched import
source as described in loadImportSourceWithMaskedPasswords(Integer)
InsightException
ImportSource loadImportSourceWithMaskedPasswords(Integer importSourceId) throws InsightException
ValidationInsightException
rather than returning an Invalid import source. Note that the validation state of the import source will be
persisted to the database. I.e. a call to this function will update the stored import source with the current
validation statusImportSource.getJsonConfiguration()
masked. In other words
doing a call like storeImportSource(loadImportSourceWithMaskedPasswords(1)) will overwrite the stored passwords
in the database with masked values leading to an invalid configurationInsightException
ImportSourceOT loadImportSourceOT(Integer importSourceOTId) throws InsightException
InsightException
ImportSourceOTAttr loadImportSourceOTAttr(Integer importSourceOTAttrId) throws InsightException
InsightException
ImportSource storeImportSource(ImportSource importSource) throws InsightException
importSource
- the import source that will be persisted. If the ImportSource.getId()
!= null an
existing import source will be updated. When an import source is sent to be updated and the ImportSource.getJsonConfiguration()
do not have any of the configured password fields present (i.e the json name
of the password field is not present at all) the already saved password from the database will be used. In other
words in all cases when the passwords are not to be updated the passwords should not be present at all in the
ImportSource.getJsonConfiguration()
loadImportSource(Integer)
InsightException
ImportSourceOT storeImportSourceOT(ImportSourceOT importSourceOT) throws InsightException
InsightException
ImportSourceOTAttr storeImportSourceOTAttr(ImportSourceOTAttr importSourceOTAttr) throws InsightException
InsightException
void deleteImportSource(Integer importSourceId) throws InsightException
InsightException
void deleteImportSourceOT(Integer importSourceOT) throws InsightException
InsightException
void deleteImportSourceOTAttr(Integer importSourceOTAttr) throws InsightException
InsightException
void createPredefinedStructure(Integer importSourceId, ObjectTypeBean optionalParent) throws InsightException
optionalParent
- if this structure should be inserted under a specific parent. If left as null the object
type tree will be created on the top levelInsightException
ImportSource createPredefinedConfiguration(Integer importSourceId, ObjectTypeBean optionalParent) throws InsightException
optionalParent
- if this structure should be inserted under a specific parent. If left as null the object
type tree will be created on the top levelloadImportSource(Integer)
InsightException
Progress startImportSource(int importSourceId) throws InsightException
InsightException
Progress startImportSourceForSpecificOTs(int importSourceId, List<Integer> importSourceOTIds) throws InsightException
InsightException
Copyright © 2024 Atlassian. All rights reserved.