Interface CMSRestrictionDao

All Superinterfaces:
Dao
All Known Implementing Classes:
DefaultCMSRestrictionDao

public interface CMSRestrictionDao extends Dao
The Interface CMSRestrictionDao for finding restrictions.
Spring Bean ID:
cmsRestrictionDao
  • Method Details

    • findRestrictionsForPage

      List<AbstractRestrictionModel> findRestrictionsForPage(ComposedTypeModel composedType, AbstractPageModel page, CatalogVersionModel catalogVersion)
      Find restrictions for page by composed type, page and catalog version.
      Parameters:
      composedType - the composed type
      page - the page
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findRestrictionsById

      List<AbstractRestrictionModel> findRestrictionsById(String id, CatalogVersionModel catalogVersion)
      Find restrictions by id and catalog version.
      Parameters:
      id - the id
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findRestrictionsByName

      List<AbstractRestrictionModel> findRestrictionsByName(String name, CatalogVersionModel catalogVersion)
      Find restrictions by name and catalog version.
      Parameters:
      name - the name
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findRestrictionsByType

      List<AbstractRestrictionModel> findRestrictionsByType(ComposedTypeModel composedType, CatalogVersionModel catalogVersion)
      Find restrictions by composed type and catalog version.
      Parameters:
      composedType - the composed type
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findRestrictions

      List<AbstractRestrictionModel> findRestrictions(CatalogVersionModel catalogVersion)
      Find all restrictions by catalog version.
      Parameters:
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findRestrictionsByTypeNotLinkedToPage

      List<AbstractRestrictionModel> findRestrictionsByTypeNotLinkedToPage(AbstractPageModel page, ComposedTypeModel composedType, CatalogVersionModel catalogVersion)
      Find restrictions by type not linked to page.
      Parameters:
      page - the page
      composedType - the composed type
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findCategoriesByRestriction

      List<CategoryModel> findCategoriesByRestriction(CMSCategoryRestrictionModel restriction)
      Find categories by restriction.
      Parameters:
      restriction - the restriction
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findProductsByRestriction

      List<ProductModel> findProductsByRestriction(CMSProductRestrictionModel restriction)
      Find products by restriction.
      Parameters:
      restriction - the restriction
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • findRestrictionsForPage

      default List<AbstractRestrictionModel> findRestrictionsForPage(AbstractPageModel page, CatalogVersionModel catalogVersion)
      Find restrictions for page by page and catalog version.
      Parameters:
      page - the page
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.
    • getNumPageRestrictions

      default int getNumPageRestrictions(AbstractPageModel page, CatalogVersionModel catalogVersion)
      Finds the number of restrictions associated to a given page and catalog version
      Parameters:
      page - the page
      catalogVersion - the catalog version
      Returns:
      the number of restrictions associated to a given page; returns ZERO when none found.
    • findRestrictionsForComponents

      default List<AbstractRestrictionModel> findRestrictionsForComponents(Collection<AbstractCMSComponentModel> components, CatalogVersionModel catalogVersion)
      Find restrictions for components by list of components and catalog version.
      Parameters:
      components - the components
      catalogVersion - the catalog version
      Returns:
      the list of found AbstractRestrictionModel objects or empty list when not found.