Class DefaultMappingLineService

    • Constructor Detail

      • DefaultMappingLineService

        public DefaultMappingLineService()
    • Method Detail

      • setTypeService

        public void setTypeService​(TypeService typeService)
      • getTypeService

        protected TypeService getTypeService()
      • getCockpitTypeService

        protected TypeService getCockpitTypeService()
      • setMappingLineTypeService

        public void setMappingLineTypeService​(MappingLineTypeService mappingLineTypeService)
      • setMappingLineConfigService

        public void setMappingLineConfigService​(MappingLineConfigService mappingLineConfigService)
      • generateVirtualMappingLine

        public MappingLineModel generateVirtualMappingLine​(SourceColumnModel sourceColumn)
        Description copied from interface: MappingLineService
        Generates a so called "virtual" mapping line model after a source column has been dropped into the mapping view without a target attribute specified. In this case it is still not clear what type of mapping line model (localized, composed, basic etc.) will be used until the tartet attribute is chosen and dropped into the mapping view. Once a target attribute is dropped, the virtual mapping model is replaced by the related mapping line model.
        Specified by:
        generateVirtualMappingLine in interface MappingLineService
        Returns:
        virtual mapping mappingLineModel
      • generateMappedSubMappingLines

        public boolean generateMappedSubMappingLines​(MappingLineModel mappingLineModel,
                                                     java.util.Collection<ItemModel> items)
        Description copied from interface: MappingLineService
        Generates new sub mapping lines for the items given. This method is used by the UI editors for collection and composed mapping lines: The referenced object in the editor provides the items that specify the object, and the sub lines are created for these items.
        Specified by:
        generateMappedSubMappingLines in interface MappingLineService
        Returns:
        true if any new sub lines were added
      • generateTranslatorMappingLine

        public MappingLineModel generateTranslatorMappingLine​(java.lang.String translatorQualifier,
                                                              java.lang.String translator)
        Description copied from interface: MappingLineService
        Generate a translator mapping mappingLineModel
        Specified by:
        generateTranslatorMappingLine in interface MappingLineService
        Parameters:
        translatorQualifier - for example '@media'
        translator - for @media it is "de.hybris.platform.impex.jalo.media.MediaDataTranslator"
        Returns:
        a translator mapping mappingLineModel
      • generateProductAttributeMappingLine

        public MappingLineModel generateProductAttributeMappingLine​(java.lang.String translator,
                                                                    java.lang.String translatorQualifier)
        Description copied from interface: MappingLineService
        Generate a specific translator for type Product (@ClassificationAttributeTranslator)
        Specified by:
        generateProductAttributeMappingLine in interface MappingLineService
        Parameters:
        translator - translator
        translatorQualifier - translator qualifier
        Returns:
        translator mappingLine
      • isLineOfNumberType

        public boolean isLineOfNumberType​(MappingLineModel mappingLineModel)
        Description copied from interface: MappingLineService
        Checks if the mapping mappingLineModel refers to an attribute of a number type (like integer, double etc.).
        Specified by:
        isLineOfNumberType in interface MappingLineService
        Parameters:
        mappingLineModel - MappingLineModel
        Returns:
        true if the mapping mappingLineModel represents an attribute of a number type
      • isLineOfDateType

        public boolean isLineOfDateType​(MappingLineModel mappingLineModel)
        Description copied from interface: MappingLineService
        Checks if the mapping mappingLineModel refers to an attribute of a date type (like Product.onlineDate, Product.offlineDate etc.)
        Specified by:
        isLineOfDateType in interface MappingLineService
        Parameters:
        mappingLineModel - MappingLineModel
        Returns:
        true if the mapping mappingLineModel represents an attribute of a date type