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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<CategoryModel>findCategoriesByRestriction(CMSCategoryRestrictionModel restriction)Find categories by restriction.java.util.List<ProductModel>findProductsByRestriction(CMSProductRestrictionModel restriction)Find products by restriction.java.util.List<AbstractRestrictionModel>findRestrictions(CatalogVersionModel catalogVersion)Find all restrictions by catalog version.java.util.List<AbstractRestrictionModel>findRestrictionsById(java.lang.String id, CatalogVersionModel catalogVersion)Find restrictions by id and catalog version.java.util.List<AbstractRestrictionModel>findRestrictionsByName(java.lang.String name, CatalogVersionModel catalogVersion)Find restrictions by name and catalog version.java.util.List<AbstractRestrictionModel>findRestrictionsByType(ComposedTypeModel composedType, CatalogVersionModel catalogVersion)Find restrictions by composed type and catalog version.java.util.List<AbstractRestrictionModel>findRestrictionsByTypeNotLinkedToPage(AbstractPageModel page, ComposedTypeModel composedType, CatalogVersionModel catalogVersion)Find restrictions by type not linked to page.java.util.List<AbstractRestrictionModel>findRestrictionsForPage(ComposedTypeModel composedType, AbstractPageModel page, CatalogVersionModel catalogVersion)Find restrictions for page by composed type, page and catalog version.
-
-
-
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 typepage- the pagecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects 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 idcatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects 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 namecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects 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 typecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects 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
AbstractRestrictionModelobjects 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 pagecomposedType- the composed typecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects 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
AbstractRestrictionModelobjects 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
AbstractRestrictionModelobjects or empty list when not found.
-
-