Class DefaultMappingModel

  • All Implemented Interfaces:
    MappingModel

    public class DefaultMappingModel
    extends java.lang.Object
    implements MappingModel
    • Constructor Detail

      • DefaultMappingModel

        public DefaultMappingModel()
    • Method Detail

      • isManualUniqueOption

        public boolean isManualUniqueOption()
        Description copied from interface: MappingModel
        Returns the manual unique attribute handling option value.
        Specified by:
        isManualUniqueOption in interface MappingModel
        Returns:
        true if unique attribute should be managed manually
      • setManualUniqueOption

        public void setManualUniqueOption​(boolean manualUniqueOption)
        Description copied from interface: MappingModel
        Sets the manual unique attribute handling option.
        Specified by:
        setManualUniqueOption in interface MappingModel
        Parameters:
        manualUniqueOption - true if unique attribute should be managed manually
      • getImpexImportMode

        public ImpexImportMode getImpexImportMode()
        Description copied from interface: MappingModel
        Returns the import impexImportMode that is used for this mapping. Example: INSERT or UPDATE
        Specified by:
        getImpexImportMode in interface MappingModel
        Returns:
        impexImportMode ImpexImportMode
      • setImpexImportMode

        public void setImpexImportMode​(ImpexImportMode impexImportMode)
        Description copied from interface: MappingModel
        Returns the import impexImportMode that is used for this mapping. Example: INSERT or UPDATE
        Specified by:
        setImpexImportMode in interface MappingModel
        Parameters:
        impexImportMode - ImpexImportMode
      • getEntries

        public java.util.List<MappingLineModel> getEntries()
        Description copied from interface: MappingModel
        Returns a list of MappingLineModel entries, which represent single hybris attributes and their assignments to source values.
        Specified by:
        getEntries in interface MappingModel
        Returns:
        list of mapping lines
      • setEntries

        public void setEntries​(java.util.List<MappingLineModel> entries)
        Description copied from interface: MappingModel
        Sets a list of MappingLineModel entries, which represent single hybris attributes and their assignments to source values.
        Specified by:
        setEntries in interface MappingModel
        Parameters:
        entries - list of mapping lines
      • addEntry

        public boolean addEntry​(MappingLineModel line)
        Description copied from interface: MappingModel
        Adds a mapping mappingLineModel entry to the list of mapping lines if not already in the list.
        Specified by:
        addEntry in interface MappingModel
        Parameters:
        line - the new mappingLineModel
        Returns:
        true if a new entry was added, false if the mapping mappingLineModel was already in the list
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getBaseTypeModel

        public ComposedTypeModel getBaseTypeModel()
        Description copied from interface: MappingModel
        Returns the base type for this mapping. This will be the base for the import. Example: Product.
        Specified by:
        getBaseTypeModel in interface MappingModel
        Returns:
        base type
      • setBaseTypeModel

        public void setBaseTypeModel​(ComposedTypeModel baseTypeModel)
        Description copied from interface: MappingModel
        Sets the base type for this mapping. This will be the base for the import. Example: Product.
        Specified by:
        setBaseTypeModel in interface MappingModel
      • deepCopy

        public MappingModel deepCopy()
        Description copied from interface: MappingModel
        Makes a deep copy of the mapping. Used for the mapping load function.
        Specified by:
        deepCopy in interface MappingModel
        Returns:
        a deep copy of the mapping: also a MappingModel object
      • isCatalogVersionOption

        public boolean isCatalogVersionOption()
        Description copied from interface: MappingModel
        Return if a user want to set the catalog version manually or not for each subtype
        Specified by:
        isCatalogVersionOption in interface MappingModel
      • setCatalogVersionOption

        public void setCatalogVersionOption​(boolean isCVOptionSelected)
        Description copied from interface: MappingModel
        Set the option for the catalog version
        Specified by:
        setCatalogVersionOption in interface MappingModel