Class DefaultCMSRestrictionDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.cms2.servicelayer.daos.impl.DefaultCMSRestrictionDao
- All Implemented Interfaces:
CMSRestrictionDao,Dao
Default implementation of
CMSRestrictionDao interface.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
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.findRestrictionsForComponents(Collection<AbstractCMSComponentModel> components, CatalogVersionModel catalogVersion) Find restrictions for components by list of components and catalog version.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.protected SearchResult<AbstractRestrictionModel>findRestrictionsForPageInternal(AbstractPageModel page, CatalogVersionModel catalogVersion) intgetNumPageRestrictions(AbstractPageModel page, CatalogVersionModel catalogVersion) Finds the number of restrictions associated to a given page and catalog versionMethods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultCMSRestrictionDao
public DefaultCMSRestrictionDao()
-
-
Method Details
-
findRestrictionsForPage
public List<AbstractRestrictionModel> findRestrictionsForPage(ComposedTypeModel composedType, AbstractPageModel page, CatalogVersionModel catalogVersion) Find restrictions for page by composed type, page and catalog version.- Specified by:
findRestrictionsForPagein interfaceCMSRestrictionDao- Parameters:
composedType- the composed typepage- the pagecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictionsForPage
public List<AbstractRestrictionModel> findRestrictionsForPage(AbstractPageModel page, CatalogVersionModel catalogVersion) Find restrictions for page by page and catalog version.- Specified by:
findRestrictionsForPagein interfaceCMSRestrictionDao- 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- Specified by:
getNumPageRestrictionsin interfaceCMSRestrictionDao- Parameters:
page- the pagecatalogVersion- the catalog version- Returns:
- the number of restrictions associated to a given page; returns
ZEROwhen none found.
-
findRestrictionsForPageInternal
protected SearchResult<AbstractRestrictionModel> findRestrictionsForPageInternal(AbstractPageModel page, CatalogVersionModel catalogVersion) -
findRestrictionsById
public List<AbstractRestrictionModel> findRestrictionsById(String id, CatalogVersionModel catalogVersion) Find restrictions by id and catalog version.- Specified by:
findRestrictionsByIdin interfaceCMSRestrictionDao- Parameters:
id- the idcatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictionsByName
public List<AbstractRestrictionModel> findRestrictionsByName(String name, CatalogVersionModel catalogVersion) Find restrictions by name and catalog version.- Specified by:
findRestrictionsByNamein interfaceCMSRestrictionDao- Parameters:
name- the namecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictionsByType
public List<AbstractRestrictionModel> findRestrictionsByType(ComposedTypeModel composedType, CatalogVersionModel catalogVersion) Find restrictions by composed type and catalog version.- Specified by:
findRestrictionsByTypein interfaceCMSRestrictionDao- Parameters:
composedType- the composed typecatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictions
Description copied from interface:CMSRestrictionDaoFind all restrictions by catalog version.- Specified by:
findRestrictionsin interfaceCMSRestrictionDao- Parameters:
catalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictionsByTypeNotLinkedToPage
public List<AbstractRestrictionModel> findRestrictionsByTypeNotLinkedToPage(AbstractPageModel page, ComposedTypeModel composedType, CatalogVersionModel catalogVersion) Find restrictions by type not linked to page.- Specified by:
findRestrictionsByTypeNotLinkedToPagein interfaceCMSRestrictionDao- 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.- Specified by:
findCategoriesByRestrictionin interfaceCMSRestrictionDao- Parameters:
restriction- the restriction- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findProductsByRestriction
Find products by restriction.- Specified by:
findProductsByRestrictionin interfaceCMSRestrictionDao- Parameters:
restriction- the restriction- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-
findRestrictionsForComponents
public List<AbstractRestrictionModel> findRestrictionsForComponents(Collection<AbstractCMSComponentModel> components, CatalogVersionModel catalogVersion) Find restrictions for components by list of components and catalog version.- Specified by:
findRestrictionsForComponentsin interfaceCMSRestrictionDao- Parameters:
components- the componentscatalogVersion- the catalog version- Returns:
- the list of found
AbstractRestrictionModelobjects or empty list when not found.
-