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 Detail

      • findRestrictionsForPage

        java.util.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

        java.util.List<AbstractRestrictionModel> findRestrictionsById​(java.lang.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

        java.util.List<AbstractRestrictionModel> findRestrictionsByName​(java.lang.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

        java.util.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

        java.util.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

        java.util.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

        java.util.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

        java.util.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.