Package org.apache.unomi.router.api
Class ImportConfiguration
java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.router.api.ImportExportConfiguration
org.apache.unomi.router.api.ImportConfiguration
- All Implemented Interfaces:
Serializable
Created by amidani on 28/04/2017.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the import configuration propertiesToOverwrite field.boolean
Retrieves the hasDeleteColumn flag.boolean
Retrieves the hasHeader flag.boolean
Retrieves the import configuration overwriteExistingProfiles flag.void
setHasDeleteColumn
(boolean hasDeleteColumn) Sets the hasDeleteColumn flag.void
setHasHeader
(boolean hasHeader) Sets the hasHeader flag.void
setMergingProperty
(String mergingProperty) Sets the merging property.void
setOverwriteExistingProfiles
(boolean overwriteExistingProfiles) Sets the overwriteExistingProfiles flag true/false.void
setPropertiesToOverwrite
(List<String> propertiesToOverwrite) Methods inherited from class org.apache.unomi.router.api.ImportExportConfiguration
getColumnSeparator, getConfigType, getDescription, getExecutions, getLineSeparator, getMultiValueDelimiter, getMultiValueSeparator, getName, getProperties, getProperty, getStatus, isActive, setActive, setColumnSeparator, setConfigType, setDescription, setExecutions, setLineSeparator, setMultiValueDelimiter, setMultiValueSeparator, setName, setProperty, setStatus
Methods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getScope, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
Field Details
-
ITEM_TYPE
The ImportConfiguration ITEM_TYPE
-
-
Constructor Details
-
ImportConfiguration
public ImportConfiguration()
-
-
Method Details
-
getMergingProperty
-
setMergingProperty
Sets the merging property.- Parameters:
mergingProperty
- property used to check if the profile exist when merging
-
isOverwriteExistingProfiles
public boolean isOverwriteExistingProfiles()Retrieves the import configuration overwriteExistingProfiles flag.- Returns:
- true if during the import existing profiles must be overwritten
-
setOverwriteExistingProfiles
public void setOverwriteExistingProfiles(boolean overwriteExistingProfiles) Sets the overwriteExistingProfiles flag true/false.- Parameters:
overwriteExistingProfiles
- a boolean to set overwriteExistingProfiles in the import configuration
-
getPropertiesToOverwrite
Retrieves the import configuration propertiesToOverwrite field.- Returns:
- propertiesToOverwrite list.
-
setPropertiesToOverwrite
-
isHasHeader
public boolean isHasHeader()Retrieves the hasHeader flag.- Returns:
- true if the file imported by the current config has a header line.
-
setHasHeader
public void setHasHeader(boolean hasHeader) Sets the hasHeader flag.- Parameters:
hasHeader
- new value for hasHeader
-
isHasDeleteColumn
public boolean isHasDeleteColumn()Retrieves the hasDeleteColumn flag.- Returns:
- true if the file imported by the current config has a delete column.
-
setHasDeleteColumn
public void setHasDeleteColumn(boolean hasDeleteColumn) Sets the hasDeleteColumn flag.- Parameters:
hasDeleteColumn
- new value for hasDeleteColumn
-