Class ImportSourceOTAttr
java.lang.Object
com.riadalabs.jira.plugins.insight.services.imports.model.ImportSourceOTAttr
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
hashCode()
boolean
If false the concatenator fromImportSource
should be usedboolean
If false the delimiter fromImportSource
should be usedboolean
If multiple locators are specified the data will have to be concatenated in before inserted into Assetsboolean
The object type attribute configuration can be null in the case when the correspondingImportSourceOT
has had it's object type changed.void
mergeWith
(ImportSourceOTAttr other) Merge this with the supplied other.void
void
setConcatenator
(String concatenator) void
setCreated
(Date created) void
setDataLocator
(List<DataLocator> dataLocator) void
setDelimiter
(Character delimiter) void
setDescription
(String description) void
setExternalIdPart
(Boolean externalIdPart) void
void
setImportSourceOTId
(Integer importSourceOTId) void
setObjectTypeAttributeId
(Integer objectTypeAttributeId) void
setReferencedObjectIQL
(String referencedObjectIQL) void
void
setUpdated
(Date updated) toString()
-
Constructor Details
-
ImportSourceOTAttr
public ImportSourceOTAttr() -
ImportSourceOTAttr
-
-
Method Details
-
hasOverridenDelimiter
public boolean hasOverridenDelimiter()If false the delimiter fromImportSource
should be used -
hasOverridenConcatenator
public boolean hasOverridenConcatenator()If false the concatenator fromImportSource
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 correspondingImportSourceOT
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
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
-
setId
-
getImportSourceOTId
-
setImportSourceOTId
-
getCreated
-
setCreated
-
getUpdated
-
setUpdated
-
getDescription
-
setDescription
-
getObjectTypeAttributeId
-
setObjectTypeAttributeId
-
getDataLocator
-
setDataLocator
-
getBase64
-
setBase64
-
getRegexp
-
setRegexp
-
getDelimiter
-
setDelimiter
-
getConcatenator
-
setConcatenator
-
getExternalIdPart
-
setExternalIdPart
-
getReferencedObjectIQL
-
setReferencedObjectIQL
-
equals
-
hashCode
public int hashCode() -
toString
-