@PublicApi
public interface InsightImportModule<T extends ImportModuleConfiguration>
| Modifier and Type | Method and Description |
|---|---|
T |
convertConfigurationFromJSON(String jsonString)
Reverse operation from the toJSON method found in the
ImportModuleConfiguration. |
ImportDataHolder |
dataHolder(T configuration,
ModuleOTSelector moduleOTSelector)
Contains the actual data when importing.
|
default ImportDataHolder |
dataHolder(T configuration,
ModuleOTSelector moduleOTSelector,
List<DataLocator> configuredDataLocators,
List<ModuleOTSelector> enabledModuleOTSelectors)
Contains the actual data when importing.
|
List<DataLocator> |
fetchDataLocators(T configuration,
ModuleOTSelector moduleOTSelector)
Retrieves the data locators for the source that should be used when importing.
|
ImportWarnings |
getWarnings(T configuration,
ModuleOTSelector moduleOTSelector)
Identifies potential problems with a modules selector and informs the user about them.
|
T |
importModuleConfigurationTemplate()
Retrieve the template configuration this will be additional configuration that is required by the user in order
for this component to function properly.
|
ValidationResult |
postFunction(T configuration,
int affectedObjectSchemaId,
com.atlassian.jira.user.ApplicationUser actor)
Each synchronization of an import type for an import source is wrapped up with this post function.
|
ValidationResult |
postFunctionOT(T configuration,
ModuleOTSelector moduleOTSelector,
int affectedObjectTypeId,
com.atlassian.jira.user.ApplicationUser actor)
Each synchronization of an import type for an import source is wrapped up with this post function.
|
InsightSchemaExternal |
predefinedStructure(T configuration)
Defines the structure to create within Insight.
|
TemplateImportConfiguration |
templateImportConfiguration(T configuration)
Returns a preset of an import configuration to be used when an import is created from a component.
|
ValidationResult |
validateAndTestConfiguration(T configuration)
Validates the supplied configuration.
|
ValidationResult |
validateDependencies()
Validates any module dependencies.
|
ValidationLicenseResult |
validateLicenseForInstance(T configuration)
Validates the license for each synchronization, for a specific configuration for a module if the license-type is
set to LICENSED.
|
ValidationLicenseResult |
validateLicenseForModule()
Validates the license for this module if the license-type is set to LICENSED.
|
ValidationResult |
validateOTConfiguration(T configuration,
ModuleOTSelector moduleOTSelector)
Validate the module object type selector based on the configuration.
|
ImportDataHolder dataHolder(T configuration, ModuleOTSelector moduleOTSelector) throws ImportComponentException
ImportDataHolder is the TwoDimensionalConfiguration storing data in memory before inserting them to Insight. It is suitable for most
importsconfiguration - the specific configuration for this modulemoduleOTSelector - the specific external selector for one specific object type. Insight will only import
that object type and the return type should be based filtered on this parameterImportComponentException - if the component fails to populate the data holderdefault ImportDataHolder dataHolder(T configuration, ModuleOTSelector moduleOTSelector, @Nullable List<DataLocator> configuredDataLocators, @Nullable List<ModuleOTSelector> enabledModuleOTSelectors) throws ImportComponentException
ImportDataHolder is the TwoDimensionalConfiguration storing data in memory before inserting them to Insight. It is suitable for most
importsconfiguration - the specific configuration for this modulemoduleOTSelector - the specific external selector for one specific object type. Insight will only importconfiguredDataLocators - the configured datalocators for the object type. Null means all datalocators for the object type mappingenabledModuleOTSelectors - the enabled module selectors. Null means all import source module selectorsImportComponentException - if the component fails to populate the data holderT importModuleConfigurationTemplate()
InsightSchemaExternal predefinedStructure(T configuration) throws ImportComponentException
ExternalFormat should be the ObjectTypeExternalImportComponentException - if the component fails to create a predefined structureTemplateImportConfiguration templateImportConfiguration(T configuration) throws ImportComponentException
configuration - the specific configuration for this instanceImportComponentExceptionList<DataLocator> fetchDataLocators(T configuration, ModuleOTSelector moduleOTSelector) throws ImportComponentException
ImportComponentException - if the component fails to load valid data locatorsValidationResult validateAndTestConfiguration(T configuration)
null. Empty map if the configuration is valid. If the configuration is valid a i18n
error message should be added as the value and the key should point to the corresponding configuration id that
was not validValidationResult validateDependencies()
null. Empty map if the configuration is valid. If the configuration is valid a i18n
error message should be added as the value and the key should point to the corresponding configuration id that
was not validValidationLicenseResult validateLicenseForModule()
null. Empty map if the configuration is valid. If the configuration is valid a i18n
error message should be added as the value and the key should point to the corresponding configuration id that
was not validValidationLicenseResult validateLicenseForInstance(T configuration)
null. Empty map if the configuration is valid. If the configuration is valid a i18n
error message should be added as the value and the key should point to the corresponding configuration id that
was not validValidationResult validateOTConfiguration(T configuration, ModuleOTSelector moduleOTSelector)
dataHolder(ImportModuleConfiguration, * ModuleOTSelector) it will return a result and not an exceptionconfiguration - the module specific configurationmoduleOTSelector - the specific object type selectornull. Empty map if the configuration is valid. If the configuration is valid a i18n
error message should be added as the value and the key should point to the module ot selectorImportWarnings getWarnings(T configuration, ModuleOTSelector moduleOTSelector)
configuration - the module specific configurationmoduleOTSelector - the specific object type selectorT convertConfigurationFromJSON(String jsonString)
ImportModuleConfiguration. This method will be
called when deserialize the configuration stored for a particular configurationValidationResult postFunctionOT(T configuration, ModuleOTSelector moduleOTSelector, int affectedObjectTypeId, com.atlassian.jira.user.ApplicationUser actor)
configuration - the module specific configurationmoduleOTSelector - the specific object type selectoraffectedObjectTypeId - the object type id that is synchronizedactor - the specific actor for this synchronizationnull. Empty map if the configuration is valid. If the configuration is valid a i18n
error message should be added as the value and the key should point to the module ot selectorValidationResult postFunction(T configuration, int affectedObjectSchemaId, com.atlassian.jira.user.ApplicationUser actor)
configuration - the module specific configurationaffectedObjectSchemaId - the object object schema id that is synchronizedactor - the specific actor for this synchronizationnull. Empty map if the configuration is valid. If the configuration is valid a i18n
error message should be added as the value and the key should point to the module ot selectorCopyright © 2024 Atlassian. All rights reserved.