Package de.hybris.platform.impex.jalo
Class ImpExManager
- java.lang.Object
-
- de.hybris.platform.jalo.Manager
-
- de.hybris.platform.jalo.extension.Extension
-
- de.hybris.platform.impex.jalo.GeneratedImpExManager
-
- de.hybris.platform.impex.jalo.ImpExManager
-
- All Implemented Interfaces:
ItemLifecycleListener
,java.io.Serializable
public class ImpExManager extends GeneratedImpExManager
This is the extension manager of the ImpEx extension. Here you can create default import or export cronjobs as well as performing an import or export using pre-defined methods.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.extension.Extension
Extension.RestrictedLanguagesProvider, Extension.RightsProvider
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Manager
Manager.GenericManagerSingletonCreator, Manager.ManagerSingletonCreator
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.impex.jalo.GeneratedImpExManager
DEFAULT_INITIAL_ATTRIBUTES
-
-
Constructor Summary
Constructors Constructor Description ImpExManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImpExExportCronJob
createDefaultExportCronJob()
Creates an export cronjob with default values including theDEST_MEDIA
media andItemPKsMedia
media (all Items of the System).ImpExExportCronJob
createDefaultExportCronJob(ImpExExportJob impexExportJob, HeaderLibrary headerlibrary, java.util.Collection<Item> items)
Creates an export cronjob with default values including theDEST_MEDIA
media andItemPKsMedia
media with the given list (null for all Items of the System).ImpExExportCronJob
createDefaultExportCronJob(ExportConfiguration config)
Creates an export cronjob with given export configuration.ImpExExportCronJob
createDefaultExportCronJob(HeaderLibrary headerlibrary, java.util.Collection<Item> items)
Creates an export cronjob with default values including theDEST_MEDIA
media andItemPKsMedia
media with the given list (null for all Items of the System).ImpExImportCronJob
createDefaultImpExImportCronJob()
Creates a cronjob instance.ImpExImportCronJob
createDefaultImpExImportCronJob(ImpExImportJob impexImportJob)
Creates a cronjob instance.void
createEssentialData(java.util.Map params, JspContext jspc)
ImpExExportMedia
createImpExExportMedia(java.lang.String code)
Creates anImpExExportMedia
with given code.ImpExMedia
createImpExMedia(java.lang.String code)
Creates anImpExMedia
with given code.ImpExMedia
createImpExMedia(java.lang.String code, EnumerationValue encoding)
Creates anImpExMedia
with given code and default encoding.ImpExMedia
createImpExMedia(java.lang.String code, java.lang.String encoding)
Creates anImpExMedia
with given code and default encoding as well as CSV as mime type.ImpExMedia
createImpExMedia(java.lang.String code, java.lang.String encoding, java.io.InputStream content)
Creates anImpExMedia
with given code, default encoding and content as well as CSV as mime type.ImpExMedia
createImpExMedia(java.lang.String code, java.lang.String encoding, java.lang.String content)
Creates anImpExMedia
with given code, default encoding and content as well as CSV as mime type.ImpExMedia
createImpExMediaForCodeAndExtractionId(java.lang.String code, java.lang.String extractionId)
Item
createItem(java.lang.String type, java.lang.String attributes, java.lang.String values)
Creates any item using ImpEx specific syntax.ImpExExportCronJob
exportData(ImpExExportCronJob cronJob, boolean synchronous)
Exports data using givenImpExExportCronJob
instance.Export
exportData(ExportConfiguration config, boolean synchronous)
Exports data using a newImpExExportCronJob
instance.Export
exportData(ExportConfiguration config, HeaderLibrary library, java.util.Collection<Item> items, boolean synchronous)
Exports data using a newImpExExportCronJob
instance.Export
exportDataLight(ExportConfiguration config)
Exports data without using a cronjob.
ATTENTION: No logs are available except of these fired to the log4j system.Export
exportDataLight(ExportConfiguration config, HeaderLibrary library, java.util.Collection<Item> items)
Exports data without using a cronjob.
ATTENTION: No logs are available except of these fired to the log4j system.static EnumerationValue
getExportOnlyMode()
Gathers the enumeration value for the export only validation mode.static EnumerationValue
getExportReimportRelaxedMode()
Gathers the enumeration value for the relaxed export validation mode.static EnumerationValue
getExportReimportStrictMode()
Gathers the enumeration value for the strict export validation mode.MediaFolder
getImpExMediaFolder()
Gets the impex specificMediaFolder
used for storing data of ImpExMedia.static EnumerationValue
getImportRelaxedMode()
Gathers the enumeration value for the relaxed import validation mode.static EnumerationValue
getImportStrictMode()
Gathers the enumeration value for the strict import validation mode.static ImpExManager
getInstance()
Gets the singleton instance of this manager.ImpExExportJob
getOrCreateImpExExportJob()
Gets (or creates) the centralImpExExportJob
instance.ImpExImportJob
getOrCreateImpExImportJob()
Gets the central import job instance or creates it if not existent already.static EnumerationValue
getValidationMode(java.lang.String code)
Gathers the enumeration value for given validation mode.ImpExImportCronJob
importData(ImpExImportCronJob cronJob, boolean synchronous, boolean removeOnSuccess)
Imports data using givenImpExImportCronJob
instance.ImpExImportCronJob
importData(ImpExMedia media, ImpExMedia zipMedia, java.util.Collection<ImpExMedia> externalData, boolean codeexecution, boolean synchronous, boolean removeOnSuccess)
Imports data using a newImpExImportCronJob
instance.ImpExImportCronJob
importData(ImpExMedia media, java.util.Collection<ImpExMedia> externalData, boolean codeexecution, boolean synchronous, boolean removeOnSuccess)
Imports data using a newImpExImportCronJob
instance.ImpExImportCronJob
importData(java.io.InputStream dataIs, java.io.InputStream mediaIs, java.lang.String encoding, char fieldSeparator, char quoteCharacter, boolean codeexecution)
Imports data using a newImpExImportCronJob
instance.ImpExImportCronJob
importData(java.io.InputStream input, java.lang.String encoding, boolean codeexecution)
Imports data using a newImpExImportCronJob
instance.ImpExImportCronJob
importData(java.io.InputStream input, java.lang.String encoding, char fieldSeparator, char quoteCharacter, boolean codeexecution)
Imports data using a newImpExImportCronJob
instance.Importer
importDataLight(CSVReader reader, boolean codeexecution)
Imports data without using a cronjob.
Amount of maximal performed passes will be set to infinit (-1).
For getting further informations about passed import process, the usedImporter
instance is returned.
ATTENTION: No logs are available except of those fired to the log4j system.Importer
importDataLight(CSVReader reader, boolean codeexecution, int passes)
Imports data without using a cronjob.
For getting further informations about passed import process, the usedImporter
instance is returned.
ATTENTION: No logs are available except of these fired to the log4j system.Importer
importDataLight(java.io.InputStream input, java.lang.String encoding, boolean codeexecution)
Imports data without using a cronjob.
Amount of maximal performed passes will be set to infinit (-1).
For getting further informations about passed import process, the usedImporter
instance is returned.
ATTENTION: No logs are available except of these fired to the log4j system.java.lang.Boolean
isSystemType(SessionContext ctx, ComposedType item)
This overridden version adds support for inheritance of the "system type" flag, i.e.-
Methods inherited from class de.hybris.platform.impex.jalo.GeneratedImpExManager
createDistributedImportProcess, createDistributedImportProcess, createDistributedImportSplitErrorDump, createDistributedImportSplitErrorDump, createExport, createExport, createExternalImportKey, createExternalImportKey, createHeaderLibrary, createHeaderLibrary, createImpexDocumentId, createImpexDocumentId, createImpExExportCronJob, createImpExExportCronJob, createImpExExportJob, createImpExExportJob, createImpExExportMedia, createImpExExportMedia, createImpExImportCronJob, createImpExImportCronJob, createImpExImportJob, createImpExImportJob, createImpExMedia, createImpExMedia, createImportBatch, createImportBatch, createImportBatchContent, createImportBatchContent, createReport, createReport, getDefaultAttributeModes, getName, isSystemType, isSystemTypeAsPrimitive, isSystemTypeAsPrimitive, setSystemType, setSystemType, setSystemType, setSystemType
-
Methods inherited from class de.hybris.platform.jalo.extension.Extension
checkBeforeItemRemoval, createProjectData, createSampleData, getCreatorDescription, getCreatorName, getCreatorParameterDefault, getCreatorParameterNames, getCreatorParameterPossibleValues, getRemote, isCreatorDisabled, notifyInitializationEnd, notifyInitializationStart, notifyItemRemoval, onFirstSessionCreation, writeReplace
-
Methods inherited from class de.hybris.platform.jalo.Manager
afterItemCreation, beforeItemCreation, destroy, extractNonRequiredRemoteFromItem, extractRequiredRemoteFromItem, getAllValuesSessionContext, getAttribute, getAttributeMap, getFirstItemByAttribute, getFirstItemByAttribute, getRemoteManagerClass, getSession, getSingletonManagerInstance, getTenant, getTransientObject, getTransientObjectMap, init, setAttribute, setTenant, setTransientObject, wrap
-
-
-
-
Method Detail
-
getInstance
public static ImpExManager getInstance()
Gets the singleton instance of this manager.- Returns:
- instance of this manager
-
createDefaultExportCronJob
public ImpExExportCronJob createDefaultExportCronJob(ExportConfiguration config)
Creates an export cronjob with given export configuration.- Parameters:
config
- export configuration- Returns:
- ImpExExportCronJob created instance
-
createDefaultExportCronJob
public ImpExExportCronJob createDefaultExportCronJob()
Creates an export cronjob with default values including theDEST_MEDIA
media andItemPKsMedia
media (all Items of the System).- Returns:
- ImpExExportCronJob created instance
-
createDefaultExportCronJob
public ImpExExportCronJob createDefaultExportCronJob(HeaderLibrary headerlibrary, java.util.Collection<Item> items) throws ImpExException
Creates an export cronjob with default values including theDEST_MEDIA
media andItemPKsMedia
media with the given list (null for all Items of the System).- Parameters:
items
- list of items to export (PK-Strings and/or Items) or null for all.- Returns:
- ImpExExportCronJob created instance
- Throws:
ImpExException
-
createDefaultExportCronJob
public ImpExExportCronJob createDefaultExportCronJob(ImpExExportJob impexExportJob, HeaderLibrary headerlibrary, java.util.Collection<Item> items) throws ImpExException
Creates an export cronjob with default values including theDEST_MEDIA
media andItemPKsMedia
media with the given list (null for all Items of the System).- Parameters:
impexExportJob
- job instance set to cronjobitems
- list of items to export (PK-Strings and/or Items) or null for all.- Returns:
- ImpExExportCronJob created instance
- Throws:
ImpExException
-
getOrCreateImpExExportJob
public ImpExExportJob getOrCreateImpExExportJob()
Gets (or creates) the centralImpExExportJob
instance.- Returns:
- the export job instance
-
createDefaultImpExImportCronJob
public ImpExImportCronJob createDefaultImpExImportCronJob()
Creates a cronjob instance. As job instance the default job will be used.
Flagsingleexecutable
is set to true andchangrecordingenabled
is set to false.
FlagerrorMode
is set toFAIL
.- Returns:
- created cronjob instance
-
createDefaultImpExImportCronJob
public ImpExImportCronJob createDefaultImpExImportCronJob(ImpExImportJob impexImportJob)
Creates a cronjob instance. As job instance the given one is used or ifnull
is given the default job will be used.
Flagsingleexecutable
is set to true andchangrecordingenabled
is set to false.
FlagerrorMode
is set toFAIL
.- Parameters:
impexImportJob
- job instance the cronjob will be initialized with or null if default job will be used- Returns:
- created cronjob instance
-
getOrCreateImpExImportJob
public ImpExImportJob getOrCreateImpExImportJob()
Gets the central import job instance or creates it if not existent already.- Returns:
- import job instance
-
createImpExExportMedia
public ImpExExportMedia createImpExExportMedia(java.lang.String code)
Creates anImpExExportMedia
with given code.- Parameters:
code
- code to use for media- Returns:
- created media
-
createImpExMedia
public ImpExMedia createImpExMedia(java.lang.String code)
Creates anImpExMedia
with given code. (null not allowed here)- Parameters:
code
- code to use for media- Returns:
- created media
-
createImpExMediaForCodeAndExtractionId
public ImpExMedia createImpExMediaForCodeAndExtractionId(java.lang.String code, java.lang.String extractionId)
-
createImpExMedia
public ImpExMedia createImpExMedia(java.lang.String code, EnumerationValue encoding)
Creates anImpExMedia
with given code and default encoding.- Parameters:
code
- code to use for mediaencoding
- encoding set toencoding
attribute of media- Returns:
- created media
-
createImpExMedia
public ImpExMedia createImpExMedia(java.lang.String code, java.lang.String encoding, java.io.InputStream content) throws java.io.UnsupportedEncodingException
Creates anImpExMedia
with given code, default encoding and content as well as CSV as mime type.- Parameters:
code
- code to use for mediaencoding
- encoding set toencoding
attribute of mediacontent
- content to be set to the media- Returns:
- created media
- Throws:
java.io.UnsupportedEncodingException
-
createImpExMedia
public ImpExMedia createImpExMedia(java.lang.String code, java.lang.String encoding, java.lang.String content) throws java.io.UnsupportedEncodingException
Creates anImpExMedia
with given code, default encoding and content as well as CSV as mime type.- Parameters:
code
- code to use for mediaencoding
- encoding set toencoding
attribute of mediacontent
- content to be set to the media- Returns:
- created media
- Throws:
java.io.UnsupportedEncodingException
-
createImpExMedia
public ImpExMedia createImpExMedia(java.lang.String code, java.lang.String encoding) throws java.io.UnsupportedEncodingException
Creates anImpExMedia
with given code and default encoding as well as CSV as mime type.- Parameters:
code
- code to use for mediaencoding
- encoding set toencoding
attribute of media- Returns:
- created media
- Throws:
java.io.UnsupportedEncodingException
- given encoding can not be resolved to a valid encoding instance
-
createItem
public Item createItem(java.lang.String type, java.lang.String attributes, java.lang.String values) throws ImpExException
Creates any item using ImpEx specific syntax. It is a simplification of an import with exactly one value line. It will be always performed an import withINSERT
mode. For usage you have to give the type of the desired type, all attributes in ImpEx style you want to use (like in a header description) as well as the values for specified attributes.
The field separator to use is alwaysCSVConstants.HYBRIS_FIELD_SEPARATOR
.
The quote character to use is alwaysCSVConstants.HYBRIS_QUOTE_CHARACTER
.
Sample usage:Language lang = (Language) ImpExUtils.createItem("Language", "isocode; active", "testLang; false");
The example call will result in an import with following script:
INSERT Language ; isocode ; active ; testLang ; false
- Parameters:
type
- the code of the type of the desired itemattributes
- separated text with specification of all attributes used invalues
in same order (for accepted separator seeCSVConstants.DEFAULT_FIELD_SEPARATOR
values
- separated text with values for all attributes as specified inattributes
in same order (for accepted separator seeCSVConstants.DEFAULT_FIELD_SEPARATOR
- Returns:
- created item
- Throws:
ImpExException
- error while import of item
-
exportData
public ImpExExportCronJob exportData(ImpExExportCronJob cronJob, boolean synchronous)
Exports data using givenImpExExportCronJob
instance.
The used cronjob instance will be returned for further information gathering, so check result of cronjob in error case.- Parameters:
cronJob
- cronjob used for importsynchronous
- start cronjob synchronous or asynchronous?- Returns:
- cronjob instance used for export
-
exportData
public Export exportData(ExportConfiguration config, boolean synchronous)
Exports data using a newImpExExportCronJob
instance.
The used cronjob instance will be created using given configuration. As result the resultingExport
instance is returned if successful.- Parameters:
config
- export configuration to usesynchronous
- start cronjob synchronous or asynchronous?- Returns:
- export instance resulting by used cronjob or null if export has failed
-
exportData
public Export exportData(ExportConfiguration config, HeaderLibrary library, java.util.Collection<Item> items, boolean synchronous) throws ImpExException
Exports data using a newImpExExportCronJob
instance.
The used cronjob instance will be created using given configuration and export script created out of given library and items (seeExportUtils.createExportScript(HeaderLibrary, Collection)
. As result the resultingExport
instance is returned if successful.- Parameters:
config
- export configuration to uselibrary
- header library used for creating of the export scriptitems
- list of items used for creating of the export scriptsynchronous
- start cronjob synchronous or asynchronous?- Returns:
- export instance resulting by used cronjob or null if export has failed
- Throws:
ImpExException
- Error while creating export script of given library and items
-
exportDataLight
public Export exportDataLight(ExportConfiguration config, HeaderLibrary library, java.util.Collection<Item> items) throws ImpExException
Exports data without using a cronjob.
ATTENTION: No logs are available except of these fired to the log4j system.- Parameters:
config
- export configuration to uselibrary
- header library used for creating of the export scriptitems
- list of items used for creating of the export script- Returns:
- export instance resulting by used cronjob or null if export has failed
- Throws:
ImpExException
- Error while creating export script of given library and items
-
exportDataLight
public Export exportDataLight(ExportConfiguration config) throws ImpExException
Exports data without using a cronjob.
ATTENTION: No logs are available except of these fired to the log4j system.- Parameters:
config
- export configuration to use- Returns:
- export instance resulting by used cronjob or null if export has failed
- Throws:
ImpExException
- if no export script is set at config
-
importData
public ImpExImportCronJob importData(ImpExImportCronJob cronJob, boolean synchronous, boolean removeOnSuccess)
Imports data using givenImpExImportCronJob
instance.
If you want to use ImpEx syntax in external files, you have to enable external syntax parsing via bean shell statements in source data.
The used cronjob instance will be returned for further information gathering ( except in removal case), so check result of cronjob in error case.- Parameters:
cronJob
- cronjob used for importsynchronous
- start cronjob synchronous or asynchronous?removeOnSuccess
- removes the used cronjob instance on success- Returns:
- cronjob instance used for import or null if removed on success
-
importData
public ImpExImportCronJob importData(ImpExMedia media, java.util.Collection<ImpExMedia> externalData, boolean codeexecution, boolean synchronous, boolean removeOnSuccess)
Imports data using a newImpExImportCronJob
instance.
If you want to use ImpEx syntax in external files, you have to enable external syntax parsing via bean shell statements in source data.
The used cronjob instance will be returned for further information gathering ( except in removal case), so check result of cronjob in error case.- Parameters:
media
- input mediaexternalData
- medias containing external datacodeexecution
- enable code execution while importsynchronous
- start cronjob synchronous or asynchronous?removeOnSuccess
- removes the used cronjob instance on success- Returns:
- cronjob instance used for import or null if removed on success
-
importData
public ImpExImportCronJob importData(ImpExMedia media, ImpExMedia zipMedia, java.util.Collection<ImpExMedia> externalData, boolean codeexecution, boolean synchronous, boolean removeOnSuccess)
Imports data using a newImpExImportCronJob
instance.
If you want to use ImpEx syntax in external files, you have to enable external syntax parsing via bean shell statements in source data.
The used cronjob instance will be returned for further information gathering ( except in removal case), so check result of cronjob in error case.- Parameters:
media
- input mediazipMedia
- input zip mediaexternalData
- medias containing external datacodeexecution
- enable code execution while importsynchronous
- start cronjob synchronous or asynchronous?removeOnSuccess
- removes the used cronjob instance on success- Returns:
- cronjob instance used for import or null if removed on success
-
importData
public ImpExImportCronJob importData(java.io.InputStream input, java.lang.String encoding, char fieldSeparator, char quoteCharacter, boolean codeexecution)
Imports data using a newImpExImportCronJob
instance.- Parameters:
input
- input stream to source dataencoding
- encoding used by source datafieldSeparator
- separator used for separating CSV-fields within given streamquoteCharacter
- separator used for separating CSV-fields within given streamcodeexecution
- enable code execution while import- Returns:
- cronjob instance used for import or null if removed on success
-
importData
public ImpExImportCronJob importData(java.io.InputStream input, java.lang.String encoding, boolean codeexecution)
Imports data using a newImpExImportCronJob
instance.
The used cronjob will be executed synchronous and removed on success.
If you want to use ImpEx syntax in external files, you have to enable external syntax parsing via bean shell statements in source data.
The used cronjob instance will be returned for further information gathering ( except in removal case), so check result of cronjob in error case.
For further options please useimportData(ImpExMedia, Collection, boolean, boolean, boolean)
orimportData(ImpExImportCronJob, boolean, boolean)
directly.- Parameters:
input
- input stream to source dataencoding
- encoding used by source datacodeexecution
- enable code execution while import- Returns:
- cronjob instance used for import or null if removed on success
-
importData
public ImpExImportCronJob importData(java.io.InputStream dataIs, java.io.InputStream mediaIs, java.lang.String encoding, char fieldSeparator, char quoteCharacter, boolean codeexecution)
Imports data using a newImpExImportCronJob
instance.- Parameters:
dataIs
- input stream to source datamediaIs
- input stream to source mediaencoding
- encoding used by source datafieldSeparator
- separator used for separating CSV-fields within given streamquoteCharacter
- separator used for separating CSV-fields within given streamcodeexecution
- enable code execution while import- Returns:
- cronjob instance used for import or null if removed on success
-
importDataLight
public Importer importDataLight(java.io.InputStream input, java.lang.String encoding, boolean codeexecution) throws ImpExException
Imports data without using a cronjob.
Amount of maximal performed passes will be set to infinit (-1).
For getting further informations about passed import process, the usedImporter
instance is returned.
ATTENTION: No logs are available except of these fired to the log4j system.- Parameters:
input
- input stream to source dataencoding
- encoding used by source datacodeexecution
- enable code execution while import- Returns:
- for import used
Importer
instance - Throws:
ImpExException
- unsupported encoding
-
importDataLight
public Importer importDataLight(CSVReader reader, boolean codeexecution) throws ImpExException
Imports data without using a cronjob.
Amount of maximal performed passes will be set to infinit (-1).
For getting further informations about passed import process, the usedImporter
instance is returned.
ATTENTION: No logs are available except of those fired to the log4j system.- Parameters:
reader
- reader providing source datacodeexecution
- enable code execution while import- Returns:
- for import used
Importer
instance - Throws:
ImpExException
- error while import
-
importDataLight
public Importer importDataLight(CSVReader reader, boolean codeexecution, int passes) throws ImpExException
Imports data without using a cronjob.
For getting further informations about passed import process, the usedImporter
instance is returned.
ATTENTION: No logs are available except of these fired to the log4j system.- Parameters:
reader
- providing source datacodeexecution
- enable code execution while importpasses
- maximal amount of import passes for resolving lines- Returns:
- for import used
Importer
instance - Throws:
ImpExException
- unsupported encoding
-
isSystemType
public java.lang.Boolean isSystemType(SessionContext ctx, ComposedType item)
This overridden version adds support for inheritance of the "system type" flag, i.e. sub types of a "system type" will also be system types unless they're explicitly set not to.- Overrides:
isSystemType
in classGeneratedImpExManager
- Returns:
- the systemType
-
createEssentialData
public void createEssentialData(java.util.Map params, JspContext jspc) throws ConsistencyCheckException
- Overrides:
createEssentialData
in classExtension
- Throws:
ConsistencyCheckException
-
getImpExMediaFolder
public MediaFolder getImpExMediaFolder()
Gets the impex specificMediaFolder
used for storing data of ImpExMedia.- Returns:
- folder for impex specific medias
- Since:
- 3.1-u4
-
getImportStrictMode
public static EnumerationValue getImportStrictMode()
Gathers the enumeration value for the strict import validation mode.- Returns:
- enumeration value for strict import
-
getImportRelaxedMode
public static EnumerationValue getImportRelaxedMode()
Gathers the enumeration value for the relaxed import validation mode.- Returns:
- enumeration value for relaxed import
-
getExportOnlyMode
public static EnumerationValue getExportOnlyMode()
Gathers the enumeration value for the export only validation mode.- Returns:
- enumeration value for export only mode
-
getExportReimportRelaxedMode
public static EnumerationValue getExportReimportRelaxedMode()
Gathers the enumeration value for the relaxed export validation mode.- Returns:
- enumeration value for relaxed export
-
getExportReimportStrictMode
public static EnumerationValue getExportReimportStrictMode()
Gathers the enumeration value for the strict export validation mode.- Returns:
- enumeration value for strict export
-
getValidationMode
public static EnumerationValue getValidationMode(java.lang.String code)
Gathers the enumeration value for given validation mode.- Returns:
- enumeration value for given validation mode
-
-