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

@PublicApi public class ImportSourceOTAttr extends Object
The mapping of the external data to one Assets attribute. The object type attribute is required to exist on this import source ots object type. The external data is mapped from the external source by using the data locator to identify where the data should be collected from (e.g. in a CSV file the data locator is the column headers. If multiple locators are used the concatenator will be used to concatenate the data. The data collected by the locator(s) will then be transferred through the selector in order to select part of the data found by the locator. The external id part determine if this should be considered to be a part of the id to uniquely identify one object in the external data. The id can be multiple configurations.
  • Constructor Details

    • ImportSourceOTAttr

      public ImportSourceOTAttr()
    • ImportSourceOTAttr

      public ImportSourceOTAttr(ImportSourceOTAttr copyFrom)
  • Method Details

    • hasOverridenDelimiter

      public boolean hasOverridenDelimiter()
      If false the delimiter from ImportSource should be used
    • hasOverridenConcatenator

      public boolean hasOverridenConcatenator()
      If false the concatenator from ImportSource should be used
    • isConcatenatedLocator

      public boolean isConcatenatedLocator()
      If multiple locators are specified the data will have to be concatenated in before inserted into Assets
    • isObjectTypeAttributeConfigured

      public boolean isObjectTypeAttributeConfigured()
      The object type attribute configuration can be null in the case when the corresponding ImportSourceOT has had it's object type changed. In other words the object type attribute that was configured for this is now invalid. This method will return true if an object type attribute is configured
    • mergeWith

      public void mergeWith(ImportSourceOTAttr other)
      Merge this with the supplied other. This id, created, importsourceotid 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)
    • getImportSourceOTId

      public Integer getImportSourceOTId()
    • setImportSourceOTId

      public void setImportSourceOTId(Integer importSourceOTId)
    • 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)
    • getObjectTypeAttributeId

      public Integer getObjectTypeAttributeId()
    • setObjectTypeAttributeId

      public void setObjectTypeAttributeId(Integer objectTypeAttributeId)
    • getDataLocator

      public List<DataLocator> getDataLocator()
    • setDataLocator

      public void setDataLocator(List<DataLocator> dataLocator)
    • getBase64

      public Boolean getBase64()
    • setBase64

      public void setBase64(Boolean base64)
    • getRegexp

      public String getRegexp()
    • setRegexp

      public void setRegexp(String regexp)
    • getDelimiter

      public Character getDelimiter()
    • setDelimiter

      public void setDelimiter(Character delimiter)
    • getConcatenator

      public String getConcatenator()
    • setConcatenator

      public void setConcatenator(String concatenator)
    • getExternalIdPart

      public Boolean getExternalIdPart()
    • setExternalIdPart

      public void setExternalIdPart(Boolean externalIdPart)
    • getReferencedObjectIQL

      public String getReferencedObjectIQL()
    • setReferencedObjectIQL

      public void setReferencedObjectIQL(String referencedObjectIQL)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object