Class LeavesOrClosestAncestorsCatalogLookupStrategy

    • Constructor Detail

      • LeavesOrClosestAncestorsCatalogLookupStrategy

        public LeavesOrClosestAncestorsCatalogLookupStrategy()
    • Method Detail

      • getSessionCatalogs

        protected java.util.List<CatalogModel> getSessionCatalogs()
      • getPersonalizationCvsFromLeaves

        protected java.util.List<CatalogVersionModel> getPersonalizationCvsFromLeaves​(java.util.Collection<CatalogModel> sessionCatalogs,
                                                                                      int recursionLevel)
      • getLeafCatalogs

        protected java.util.Set<CatalogModel> getLeafCatalogs​(java.util.Collection<CatalogModel> sessionCatalogs)
      • isLeafCatalog

        protected boolean isLeafCatalog​(CatalogModel catalog,
                                        java.util.Collection<CatalogModel> sessionCatalogs)
        In this context, a "leaf" catalog is a catalog that doesn't have any child present in the session.
        Parameters:
        catalog - catalog version to check for children
        sessionCatalogs - the current catalogs in the session
        Returns:
        true if catalog is a leaf for this session
      • setCxCatalogService

        public void setCxCatalogService​(CxCatalogService cxCatalogService)
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      • getMaxRecursions

        protected int getMaxRecursions()
      • setMaxRecursions

        public void setMaxRecursions​(int maxRecursions)