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
public class ImportConfiguration extends ImportExportConfiguration
Created by amidani on 28/04/2017.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImportConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMergingProperty()
List<String>
getPropertiesToOverwrite()
Retrieves the import configuration propertiesToOverwrite field.boolean
isHasDeleteColumn()
Retrieves the hasDeleteColumn flag.boolean
isHasHeader()
Retrieves the hasHeader flag.boolean
isOverwriteExistingProfiles()
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 Detail
-
ITEM_TYPE
public static final String ITEM_TYPE
The ImportConfiguration ITEM_TYPE
-
-
Method Detail
-
getMergingProperty
public String getMergingProperty()
-
setMergingProperty
public void setMergingProperty(String mergingProperty)
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
public List<String> getPropertiesToOverwrite()
Retrieves the import configuration propertiesToOverwrite field.- Returns:
- propertiesToOverwrite list.
-
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
-
-