com.ibm.commerce.contract.catalogfilter

Class CatalogGroupSelectionChainEntry

  • java.lang.Object
    • com.ibm.commerce.contract.catalogfilter.CatalogGroupSelectionChainEntry


  • public class CatalogGroupSelectionChainEntry
    extends java.lang.Object
    Each CatalogGroupSelectionChainEntry is a wrapper for CatalogGroupSelection with some additional information such as direct ancestor chain entry and direct descendant chain entry list.
    • Constructor Detail

      • CatalogGroupSelectionChainEntry

        public CatalogGroupSelectionChainEntry(CatalogGroupSelectionChain chain,
                                               CatalogGroupSelection catGroupSelection)
        The constructor of CatalogGroupSelectionChainEntry.
        Parameters:
        chain - The catalog group selection chain.
        catGroupSelection - The catalog group selection.
    • Method Detail

      • getCatalogGroupSelection

        public CatalogGroupSelection getCatalogGroupSelection()
        Get catalog group of the chain entry.
        Returns:
        The catalog group of the chain entry.
      • getDirectAncestorChainEntry

        public CatalogGroupSelectionChainEntry getDirectAncestorChainEntry()
        Get direct ancestor chain entry
        Returns:
        The direct ancestor chain entry.
      • setDirectAncestorChainEntry

        public void setDirectAncestorChainEntry(CatalogGroupSelectionChainEntry directAncestorChainEntry)
        Set direct ancestor chain entry
        Parameters:
        directAncestorChainEntry - The direct ancestor chain entry.
      • setDirectDescendantChainEntryList

        public void setDirectDescendantChainEntryList(java.util.List<CatalogGroupSelectionChainEntry> directDescendantChainEntryList)
        Set the direct descendant chain entry list.
        Parameters:
        directDescendantChainEntryList - The direct descendant chain entry list.
      • getDirectDescendantChainEntryList

        public java.util.List<CatalogGroupSelectionChainEntry> getDirectDescendantChainEntryList()
        Get the direct descendant chain entry list.
        Returns:
        The direct descendant chain entry list.
      • addDirectDescendantChainEntry

        public void addDirectDescendantChainEntry(CatalogGroupSelectionChainEntry chainEntry)
        Add a direct descendant chain entry into list.
        Parameters:
        chainEntry - A chain entry
      • getChain

        public CatalogGroupSelectionChain getChain()
        Get catalog group selection chain.
        Returns:
        The catalog group selection chain.
      • getRelativeCatalogNavigationPath

        public java.util.List<java.lang.Long> getRelativeCatalogNavigationPath()
        Get the relative catalog navigation path.

        The relative catalog navigation path begins from ancestor, the absolute catalog navigation path should recursively combine the absolute catalog navigation paths of ancestors and its relative one.

        Returns:
        The relative catalog navigation path.
      • setRelativeCatalogNavigationPath

        public void setRelativeCatalogNavigationPath(java.util.List<java.lang.Long> relativeCatalogNavigationPath)
        Set the relative catalog navigation path.

        Parameters:
        relativeCatalogNavigationPath - The relative catalog navigation path.