Package org.apache.unomi.router.api
Class ImportExportConfiguration
java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.router.api.ImportExportConfiguration
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExportConfiguration
,ImportConfiguration
Created by amidani on 21/06/2017.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the column separator.Retrieves the config type of the import configurationRetrieves the description of the import configurationRetrieves the executionsRetrieves the line separator.Gets the multi value delimiter.Gets the multi value separator.getName()
Retrieves the name of the import configurationRetrieves a Map of all property name - value pairs for this import configuration.getProperty
(String name) Retrieves the property identified by the specified name.Retrieves the import configuration status for last execution.boolean
isActive()
Retrieves the import configuration active flag.void
setActive
(boolean active) Sets the active flag true/false.void
setColumnSeparator
(String columnSeparator) Sets the column separator.void
setConfigType
(String configType) Sets the config type of the import configurationvoid
setDescription
(String description) Sets the description of the import configurationvoid
setExecutions
(List<Map<String, Object>> executions) Sets the executionsvoid
setLineSeparator
(String lineSeparator) Sets the line separator.void
setMultiValueDelimiter
(String multiValueDelimiter) Sets the multi value delimiter.void
setMultiValueSeparator
(String multiValueSeparator) Sets the multi value separator.void
Sets the name of the import configurationvoid
setProperty
(String name, Object value) Sets the property identified by the specified name to the specified value.void
Sets status of the last execution.Methods inherited from class org.apache.unomi.api.Item
equals, getItemId, getItemType, getItemType, getScope, getSystemMetadata, getVersion, hashCode, setItemId, setItemType, setScope, setSystemMetadata, setVersion
-
Constructor Details
-
ImportExportConfiguration
public ImportExportConfiguration()
-
-
Method Details
-
setProperty
Sets the property identified by the specified name to the specified value. If a property with that name already exists, replaces its value, otherwise adds the new property with the specified name and value.- Parameters:
name
- the name of the property to setvalue
- the value of the property
-
getName
Retrieves the name of the import configuration- Returns:
- the name of the import configuration
-
setName
Sets the name of the import configuration- Parameters:
name
- the name of the import configuration
-
getDescription
Retrieves the description of the import configuration- Returns:
- the description of the import configuration
-
setDescription
Sets the description of the import configuration- Parameters:
description
- the description of the import configuration
-
getConfigType
Retrieves the config type of the import configuration- Returns:
- the config type of the import configuration
-
setConfigType
Sets the config type of the import configuration- Parameters:
configType
- the config type of the import configuration
-
getProperty
Retrieves the property identified by the specified name.- Parameters:
name
- the name of the property to retrieve- Returns:
- the value of the specified property or
null
if no such property exists
-
getProperties
Retrieves a Map of all property name - value pairs for this import configuration.- Returns:
- a Map of all property name - value pairs for this import configuration
-
isActive
public boolean isActive()Retrieves the import configuration active flag.- Returns:
- true if the import configuration is active false if not
-
setActive
public void setActive(boolean active) Sets the active flag true/false.- Parameters:
active
- a boolean to set to active or inactive the import configuration
-
getStatus
Retrieves the import configuration status for last execution.- Returns:
- status of the last execution
-
setStatus
Sets status of the last execution.- Parameters:
status
- of the last execution
-
getColumnSeparator
Retrieves the column separator.- Returns:
- column separator
-
setColumnSeparator
Sets the column separator.- Parameters:
columnSeparator
- property used to specify a line separator. Defaults to ','
-
getLineSeparator
Retrieves the line separator.- Returns:
- the line separator
-
setLineSeparator
Sets the line separator.- Parameters:
lineSeparator
- property used to specify a line separator. Defaults to '\n'
-
getMultiValueSeparator
Gets the multi value separator.- Returns:
- multiValueSeparator multi value separator
-
setMultiValueSeparator
Sets the multi value separator.- Parameters:
multiValueSeparator
- multi value separator
-
getMultiValueDelimiter
Gets the multi value delimiter.- Returns:
- multiValueDelimiter multi value delimiter
-
setMultiValueDelimiter
Sets the multi value delimiter.- Parameters:
multiValueDelimiter
- multi value delimiter
-
getExecutions
Retrieves the executions- Returns:
- executions
-
setExecutions
Sets the executions- Parameters:
executions
- executions
-