Interface CMSRestrictionDao
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCMSRestrictionDao
The Interface CMSRestrictionDao for finding restrictions.
- Spring Bean ID:
- cmsRestrictionDao
-
Method Summary
Modifier and TypeMethodDescriptionfindCategoriesByRestriction(CMSCategoryRestrictionModel restriction) Find categories by restriction.findProductsByRestriction(CMSProductRestrictionModel restriction) Find products by restriction.findRestrictions(CatalogVersionModel catalogVersion) Find all restrictions by catalog version.findRestrictionsById(String id, CatalogVersionModel catalogVersion) Find restrictions by id and catalog version.findRestrictionsByName(String name, CatalogVersionModel catalogVersion) Find restrictions by name and catalog version.findRestrictionsByType(ComposedTypeModel composedType, CatalogVersionModel catalogVersion) Find restrictions by composed type and catalog version.findRestrictionsByTypeNotLinkedToPage(AbstractPageModel page, ComposedTypeModel composedType, CatalogVersionModel catalogVersion) Find restrictions by type not linked to page.default List<AbstractRestrictionModel>findRestrictionsForComponents(Collection<AbstractCMSComponentModel> components, CatalogVersionModel catalogVersion) Find restrictions for components by list of components and catalog version.default List<AbstractRestrictionModel>findRestrictionsForPage(AbstractPageModel page, CatalogVersionModel catalogVersion) Find restrictions for page by page and catalog version.findRestrictionsForPage(ComposedTypeModel composedType, AbstractPageModel page, CatalogVersionModel catalogVersion) Find restrictions for page by composed type, page and catalog version.default intgetNumPageRestrictions(AbstractPageModel page, CatalogVersionModel catalogVersion) Finds the number of restrictions associated to a given page and catalog version
-
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 typepage- the pagecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictionsById
Find restrictions by id and catalog version.- Parameters:
id- the idcatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictionsByName
List<AbstractRestrictionModel> findRestrictionsByName(String name, CatalogVersionModel catalogVersion) Find restrictions by name and catalog version.- Parameters:
name- the namecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects 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 typecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictions
Find all restrictions by catalog version.- Parameters:
catalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects 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 pagecomposedType- the composed typecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findCategoriesByRestriction
Find categories by restriction.- Parameters:
restriction- the restriction- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findProductsByRestriction
Find products by restriction.- Parameters:
restriction- the restriction- Returns:
- the list of found
AbstractRestrictionModelobjects 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 pagecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
getNumPageRestrictions
Finds the number of restrictions associated to a given page and catalog version- Parameters:
page- the pagecatalogVersion- the catalog version- Returns:
- the number of restrictions associated to a given page; returns
ZEROwhen 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 componentscatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-