Class ImportSource
java.lang.Object
com.riadalabs.jira.plugins.insight.services.imports.model.ImportSource
The main class for import configuration. It is responsible for specifying where some external data can be found and
how to retrieve it. The class is responsible for having the configuration of how the data is mapped into Insight.
This is done by mapping different part of data to different ObjectTypes which in turn maps the data to Insight
attributes. The import source is separated from other import sources and self contained. It must have references to a
object schema, object types and object type attributes in order to function properly. Each import source can be
enabled, disabled and invalid. The later indicates that something is fishy with the configuration and it should not
be executed
- Since:
- 5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Retrieves all the enabledImportSourceOT
.getId()
getName()
int
hashCode()
boolean
Is thisImportSource
disabled by choice (not invalid that is)boolean
Is thisImportSource
active and enabledboolean
boolean
Is thisImportSource
invalidboolean
boolean
isValid()
Is thisImportSource
validvoid
mergeWith
(ImportSource other) Merge this with the supplied other.void
setCreated
(Date created) void
setDateFormat
(String dateFormat) void
setDateTimeFormat
(String dateTimeFormat) void
setDefaultConcatenator
(String defaultConcatenator) void
setDefaultHandleEmptyValues
(EmptyValues defaultHandleEmptyValues) void
setDefaultHandleUnknownValues
(UnknownValues defaultHandleUnknownValues) void
setDescription
(String description) void
setFailureNotificationsEnabled
(Boolean failureNotificationsEnabled) void
void
setImportSourceModuleKey
(String importSourceModuleKey) void
setImportSourceOTS
(List<ImportSourceOT> importSourceOTS) void
setImportSourceStatus
(ImportSourceStatus importSourceStatus) void
setJsonConfiguration
(String jsonConfiguration) void
setModuleVersion
(Integer moduleVersion) void
void
setObjectSchemaId
(Integer objectSchemaId) void
setRunAsUserKey
(String runAsUserKey) void
setSynchronization
(String synchronization) void
setSynchronizationEnabled
(boolean synchronizationEnabled) void
setUpdated
(Date updated) toString()
-
Constructor Details
-
ImportSource
public ImportSource() -
ImportSource
-
-
Method Details
-
getEnabledImportSourceOTS
Retrieves all the enabledImportSourceOT
. If this list is empty no import should be done for thisImportSource
- Returns:
- A list of enabled importSourceOTs never null
-
isEnabled
public boolean isEnabled()Is thisImportSource
active and enabled -
isDisabled
public boolean isDisabled()Is thisImportSource
disabled by choice (not invalid that is) -
isInvalid
public boolean isInvalid()Is thisImportSource
invalid -
isValid
public boolean isValid()Is thisImportSource
valid -
mergeWith
Merge this with the supplied other. This id, created will be used in all circumstances. The merge will replace this values with the others if they exist. Accept theirs. -
getId
-
setId
-
getName
-
setName
-
getCreated
-
setCreated
-
getUpdated
-
setUpdated
-
getDescription
-
setDescription
-
getObjectSchemaId
-
setObjectSchemaId
-
getRunAsUserKey
-
setRunAsUserKey
-
getImportSourceModuleKey
-
setImportSourceModuleKey
-
isSynchronizationEnabled
public boolean isSynchronizationEnabled() -
setSynchronizationEnabled
public void setSynchronizationEnabled(boolean synchronizationEnabled) -
getSynchronization
-
setSynchronization
-
isFailureNotificationsEnabled
public boolean isFailureNotificationsEnabled() -
setFailureNotificationsEnabled
-
getDefaultConcatenator
-
setDefaultConcatenator
-
getDefaultHandleEmptyValues
-
setDefaultHandleEmptyValues
-
getDefaultHandleUnknownValues
-
setDefaultHandleUnknownValues
-
getDateFormat
-
setDateFormat
-
getDateTimeFormat
-
setDateTimeFormat
-
getImportSourceStatus
-
setImportSourceStatus
-
getJsonConfiguration
-
setJsonConfiguration
-
getImportSourceOTS
-
setImportSourceOTS
-
getModuleVersion
-
setModuleVersion
-
toString
-
equals
-
hashCode
public int hashCode()
-