java.lang.Object
com.riadalabs.jira.plugins.insight.services.imports.model.ImportSource

@PublicApi public class ImportSource extends Object
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 Details

    • ImportSource

      public ImportSource()
    • ImportSource

      public ImportSource(ImportSource source)
  • Method Details

    • getEnabledImportSourceOTS

      public List<ImportSourceOT> getEnabledImportSourceOTS()
      Retrieves all the enabled ImportSourceOT. If this list is empty no import should be done for this ImportSource
      Returns:
      A list of enabled importSourceOTs never null
    • isEnabled

      public boolean isEnabled()
      Is this ImportSource active and enabled
    • isDisabled

      public boolean isDisabled()
      Is this ImportSource disabled by choice (not invalid that is)
    • isInvalid

      public boolean isInvalid()
      Is this ImportSource invalid
    • isValid

      public boolean isValid()
      Is this ImportSource valid
    • mergeWith

      public void mergeWith(ImportSource other)
      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

      public Integer getId()
    • setId

      public void setId(Integer id)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getCreated

      public Date getCreated()
    • setCreated

      public void setCreated(Date created)
    • getUpdated

      public Date getUpdated()
    • setUpdated

      public void setUpdated(Date updated)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getObjectSchemaId

      public Integer getObjectSchemaId()
    • setObjectSchemaId

      public void setObjectSchemaId(Integer objectSchemaId)
    • getRunAsUserKey

      public String getRunAsUserKey()
    • setRunAsUserKey

      public void setRunAsUserKey(String runAsUserKey)
    • getImportSourceModuleKey

      public String getImportSourceModuleKey()
    • setImportSourceModuleKey

      public void setImportSourceModuleKey(String importSourceModuleKey)
    • isSynchronizationEnabled

      public boolean isSynchronizationEnabled()
    • setSynchronizationEnabled

      public void setSynchronizationEnabled(boolean synchronizationEnabled)
    • getSynchronization

      public String getSynchronization()
    • setSynchronization

      public void setSynchronization(String synchronization)
    • isFailureNotificationsEnabled

      public boolean isFailureNotificationsEnabled()
    • setFailureNotificationsEnabled

      public void setFailureNotificationsEnabled(Boolean failureNotificationsEnabled)
    • getDefaultConcatenator

      public String getDefaultConcatenator()
    • setDefaultConcatenator

      public void setDefaultConcatenator(String defaultConcatenator)
    • getDefaultHandleEmptyValues

      public EmptyValues getDefaultHandleEmptyValues()
    • setDefaultHandleEmptyValues

      public void setDefaultHandleEmptyValues(EmptyValues defaultHandleEmptyValues)
    • getDefaultHandleUnknownValues

      public UnknownValues getDefaultHandleUnknownValues()
    • setDefaultHandleUnknownValues

      public void setDefaultHandleUnknownValues(UnknownValues defaultHandleUnknownValues)
    • getDateFormat

      public String getDateFormat()
    • setDateFormat

      public void setDateFormat(String dateFormat)
    • getDateTimeFormat

      public String getDateTimeFormat()
    • setDateTimeFormat

      public void setDateTimeFormat(String dateTimeFormat)
    • getImportSourceStatus

      public ImportSourceStatus getImportSourceStatus()
    • setImportSourceStatus

      public void setImportSourceStatus(ImportSourceStatus importSourceStatus)
    • getJsonConfiguration

      public String getJsonConfiguration()
    • setJsonConfiguration

      public void setJsonConfiguration(String jsonConfiguration)
    • getImportSourceOTS

      public List<ImportSourceOT> getImportSourceOTS()
    • setImportSourceOTS

      public void setImportSourceOTS(List<ImportSourceOT> importSourceOTS)
    • getModuleVersion

      public Integer getModuleVersion()
    • setModuleVersion

      public void setModuleVersion(Integer moduleVersion)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object