Class DefaultMappingLineTypeService
- java.lang.Object
-
- de.hybris.platform.importcockpit.services.mapping.impl.DefaultMappingLineTypeService
-
- All Implemented Interfaces:
MappingLineTypeService
public class DefaultMappingLineTypeService extends java.lang.Object implements MappingLineTypeService
-
-
Constructor Summary
Constructors Constructor Description DefaultMappingLineTypeService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComposedTypeModelgetComposedTypeModel(java.lang.String code)Return a composed type model for an item type code.protected MappingLineConfigServicegetMappingLineConfigService()TypeModelgetTypeModel(ItemAttributePropertyDescriptor propertyDescriptor)Returns the type model for the attribute type of the supplied property descriptor.protected TypeServicegetTypeService()booleanisAtomicType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisAtomicType(TypeModel model)booleanisCollectionType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisCollectionType(TypeModel model)booleanisComposedType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisComposedType(TypeModel model)booleanisEnumerationType(ItemAttributePropertyDescriptor propertyDescriptor)booleanisEnumerationType(TypeModel model)booleanisLocalizedType(ItemAttributePropertyDescriptor propertyDescriptor)Checks if the specified property descriptor refers to a property of a localized type (i.e.booleanisLocalizedType(TypeModel model)booleanisUnique(ItemAttributePropertyDescriptor propertyDescriptor, ObjectType type, boolean includeConfigFile)Use for selecting.voidsetMappingLineConfigService(MappingLineConfigService mappingLineConfigService)voidsetTypeService(TypeService typeService)voidupdateCreationType(ComposedTypeMappingLine mappingLineModel, ObjectType type)Sets the type (ObjectType) as a creation type for the composed mapping mappingLineModel.
-
-
-
Method Detail
-
setTypeService
public void setTypeService(TypeService typeService)
-
getTypeService
protected TypeService getTypeService()
-
setMappingLineConfigService
public void setMappingLineConfigService(MappingLineConfigService mappingLineConfigService)
-
getMappingLineConfigService
protected MappingLineConfigService getMappingLineConfigService()
-
updateCreationType
public void updateCreationType(ComposedTypeMappingLine mappingLineModel, ObjectType type)
Description copied from interface:MappingLineTypeServiceSets the type (ObjectType) as a creation type for the composed mapping mappingLineModel.- Specified by:
updateCreationTypein interfaceMappingLineTypeService- Parameters:
mappingLineModel- mapping linetype- type
-
isAtomicType
public boolean isAtomicType(ItemAttributePropertyDescriptor propertyDescriptor)
- Specified by:
isAtomicTypein interfaceMappingLineTypeService- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the type is atomic
-
isAtomicType
public boolean isAtomicType(TypeModel model)
- Specified by:
isAtomicTypein interfaceMappingLineTypeService- Parameters:
model- a model- Returns:
- true if the type is atomic
-
isComposedType
public boolean isComposedType(ItemAttributePropertyDescriptor propertyDescriptor)
- Specified by:
isComposedTypein interfaceMappingLineTypeService- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the type is a composed type
-
isComposedType
public boolean isComposedType(TypeModel model)
- Specified by:
isComposedTypein interfaceMappingLineTypeService- Parameters:
model- a model- Returns:
- true if the type is a composed type
-
isCollectionType
public boolean isCollectionType(ItemAttributePropertyDescriptor propertyDescriptor)
- Specified by:
isCollectionTypein interfaceMappingLineTypeService- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the type is of collection type
-
isCollectionType
public boolean isCollectionType(TypeModel model)
- Specified by:
isCollectionTypein interfaceMappingLineTypeService- Parameters:
model- a model- Returns:
- true if the type is of collection type
-
isEnumerationType
public boolean isEnumerationType(ItemAttributePropertyDescriptor propertyDescriptor)
- Specified by:
isEnumerationTypein interfaceMappingLineTypeService- Returns:
-
isEnumerationType
public boolean isEnumerationType(TypeModel model)
- Specified by:
isEnumerationTypein interfaceMappingLineTypeService- Parameters:
model- a model- Returns:
- true if the type is an enumeration type
-
isLocalizedType
public boolean isLocalizedType(ItemAttributePropertyDescriptor propertyDescriptor)
Description copied from interface:MappingLineTypeServiceChecks if the specified property descriptor refers to a property of a localized type (i.e. Product.name, description etc.)- Specified by:
isLocalizedTypein interfaceMappingLineTypeService- Parameters:
propertyDescriptor- property descriptor- Returns:
- true if the property descriptor refers to a property of a localized type
-
isLocalizedType
public boolean isLocalizedType(TypeModel model)
- Specified by:
isLocalizedTypein interfaceMappingLineTypeService- Parameters:
model- a model- Returns:
- true if the model is of localized type
-
getTypeModel
public TypeModel getTypeModel(ItemAttributePropertyDescriptor propertyDescriptor)
Description copied from interface:MappingLineTypeServiceReturns the type model for the attribute type of the supplied property descriptor.- Specified by:
getTypeModelin interfaceMappingLineTypeService- Parameters:
propertyDescriptor- property descriptor- Returns:
- type model
-
getComposedTypeModel
public ComposedTypeModel getComposedTypeModel(java.lang.String code)
Description copied from interface:MappingLineTypeServiceReturn a composed type model for an item type code.- Specified by:
getComposedTypeModelin interfaceMappingLineTypeService- Parameters:
code- item type code- Returns:
- composed type model
-
isUnique
public boolean isUnique(ItemAttributePropertyDescriptor propertyDescriptor, ObjectType type, boolean includeConfigFile)
Description copied from interface:MappingLineTypeServiceUse for selecting. All unique attribute and this from the MappingLineModel.config be display and selected- Specified by:
isUniquein interfaceMappingLineTypeService- Parameters:
propertyDescriptor- property descriptortype- typeincludeConfigFile- include the attributes from the mapping config file or not- Returns:
- boolean
-
-