Class DefaultMappingLineConfiguration
- java.lang.Object
-
- de.hybris.platform.importcockpit.services.config.mapping.impl.DefaultMappingLineConfiguration
-
- All Implemented Interfaces:
UIComponentConfiguration,MappingLineConfiguration
public class DefaultMappingLineConfiguration extends java.lang.Object implements MappingLineConfiguration
-
-
Constructor Summary
Constructors Constructor Description DefaultMappingLineConfiguration(java.util.List<Property> importProps)DefaultMappingLineConfiguration(java.util.Map<java.lang.String,java.lang.String> editorMap, java.util.Map<java.lang.String,java.lang.Boolean> visibilityMap, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> params, java.util.List<Property> importProps, java.util.List<SpecialTranslator> specialTranslators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEditorCode(java.lang.String propertyQualifier)Returns the code of the editor that should be used for the mapping mappingLineModel display in the mapping area.java.util.List<Property>getImportProperties()Returns the import properties as configured in the XML config file.java.util.List<java.lang.String>getImportPropertiesQualifiers()Returns a list if property descriptors configured in the "import properties" section in the mapping mappingLineModel XML config files.protected PropertygetImportProperty(java.lang.String propertyQualifier)Find a named property from the import propertiesjava.util.Map<java.lang.String,java.lang.String>getParameterMap(java.lang.String propertyQualifier)Returns a map of parameter qualifiers and their values as configured in the XML config file.java.util.List<SpecialTranslator>getSpecialTranslators()java.lang.StringgetTranslator(java.lang.String propertyQualifier)Returns the value of the "translator" parameter of the specified property qualifier config.booleanisAllowNull(java.lang.String propertyQualifier)Returns true if there is allownull=true parameter configured for the given property qualifier.booleanisEditorVisible(java.lang.String propertyQualifier)Returns true if the editor is set to be visible in the xml config file
-
-
-
Constructor Detail
-
DefaultMappingLineConfiguration
public DefaultMappingLineConfiguration(java.util.List<Property> importProps)
-
DefaultMappingLineConfiguration
public DefaultMappingLineConfiguration(java.util.Map<java.lang.String,java.lang.String> editorMap, java.util.Map<java.lang.String,java.lang.Boolean> visibilityMap, java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> params, java.util.List<Property> importProps, java.util.List<SpecialTranslator> specialTranslators)
-
-
Method Detail
-
getEditorCode
public java.lang.String getEditorCode(java.lang.String propertyQualifier)
Description copied from interface:MappingLineConfigurationReturns the code of the editor that should be used for the mapping mappingLineModel display in the mapping area.- Specified by:
getEditorCodein interfaceMappingLineConfiguration- Returns:
- editor code
-
isEditorVisible
public boolean isEditorVisible(java.lang.String propertyQualifier)
Description copied from interface:MappingLineConfigurationReturns true if the editor is set to be visible in the xml config file- Specified by:
isEditorVisiblein interfaceMappingLineConfiguration- Returns:
- true if the editor is configured to be visible in the xml config file
-
getParameterMap
public java.util.Map<java.lang.String,java.lang.String> getParameterMap(java.lang.String propertyQualifier)
Description copied from interface:MappingLineConfigurationReturns a map of parameter qualifiers and their values as configured in the XML config file.- Specified by:
getParameterMapin interfaceMappingLineConfiguration- Returns:
- map of parameter qualifiers and values
-
getImportProperties
public java.util.List<Property> getImportProperties()
Description copied from interface:MappingLineConfigurationReturns the import properties as configured in the XML config file.- Specified by:
getImportPropertiesin interfaceMappingLineConfiguration- Returns:
- list of import properties as Property objects (can contain translator or allowNull specifications)
-
getSpecialTranslators
public java.util.List<SpecialTranslator> getSpecialTranslators()
- Specified by:
getSpecialTranslatorsin interfaceMappingLineConfiguration- Returns:
- all translators of a type (Media have the translator @media)
-
getTranslator
public java.lang.String getTranslator(java.lang.String propertyQualifier)
Description copied from interface:MappingLineConfigurationReturns the value of the "translator" parameter of the specified property qualifier config. If there is no "translator" parameter defined, null is returned.- Specified by:
getTranslatorin interfaceMappingLineConfiguration- Returns:
- qualified class name of the translator
-
isAllowNull
public boolean isAllowNull(java.lang.String propertyQualifier)
Description copied from interface:MappingLineConfigurationReturns true if there is allownull=true parameter configured for the given property qualifier.- Specified by:
isAllowNullin interfaceMappingLineConfiguration- Returns:
- true if the parameter allownull is existent and set to "true", false otherwise
-
getImportProperty
protected Property getImportProperty(java.lang.String propertyQualifier)
Find a named property from the import properties- Parameters:
propertyQualifier- The qualifier of the property to lookup- Returns:
- The property as specified by @propertyQualifier, null if not found.
-
getImportPropertiesQualifiers
public java.util.List<java.lang.String> getImportPropertiesQualifiers()
Description copied from interface:MappingLineConfigurationReturns a list if property descriptors configured in the "import properties" section in the mapping mappingLineModel XML config files. These properties will be handled by the Import cockpit as mandatory mapping lines.- Specified by:
getImportPropertiesQualifiersin interfaceMappingLineConfiguration- Returns:
- list of property descriptor qualifiers as specified in the XML config file
-
-