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
public class DefaultCMSRestrictionDao extends AbstractItemDao implements CMSRestrictionDao
Default implementation ofCMSRestrictionDao
interface.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSRestrictionDao()
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findRestrictionsForPage
public java.util.List<AbstractRestrictionModel> findRestrictionsForPage(ComposedTypeModel composedType, AbstractPageModel page, CatalogVersionModel catalogVersion)
Find restrictions for page by composed type, page and catalog version.- Specified by:
findRestrictionsForPage
in interfaceCMSRestrictionDao
- Parameters:
composedType
- the composed typepage
- the pagecatalogVersion
- the catalog version- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
findRestrictionsById
public java.util.List<AbstractRestrictionModel> findRestrictionsById(java.lang.String id, CatalogVersionModel catalogVersion)
Find restrictions by id and catalog version.- Specified by:
findRestrictionsById
in interfaceCMSRestrictionDao
- Parameters:
id
- the idcatalogVersion
- the catalog version- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
findRestrictionsByName
public java.util.List<AbstractRestrictionModel> findRestrictionsByName(java.lang.String name, CatalogVersionModel catalogVersion)
Find restrictions by name and catalog version.- Specified by:
findRestrictionsByName
in interfaceCMSRestrictionDao
- Parameters:
name
- the namecatalogVersion
- the catalog version- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
findRestrictionsByType
public java.util.List<AbstractRestrictionModel> findRestrictionsByType(ComposedTypeModel composedType, CatalogVersionModel catalogVersion)
Find restrictions by composed type and catalog version.- Specified by:
findRestrictionsByType
in interfaceCMSRestrictionDao
- Parameters:
composedType
- the composed typecatalogVersion
- the catalog version- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
findRestrictions
public java.util.List<AbstractRestrictionModel> findRestrictions(CatalogVersionModel catalogVersion)
Description copied from interface:CMSRestrictionDao
Find all restrictions by catalog version.- Specified by:
findRestrictions
in interfaceCMSRestrictionDao
- Parameters:
catalogVersion
- the catalog version- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
findRestrictionsByTypeNotLinkedToPage
public java.util.List<AbstractRestrictionModel> findRestrictionsByTypeNotLinkedToPage(AbstractPageModel page, ComposedTypeModel composedType, CatalogVersionModel catalogVersion)
Find restrictions by type not linked to page.- Specified by:
findRestrictionsByTypeNotLinkedToPage
in interfaceCMSRestrictionDao
- Parameters:
page
- the pagecomposedType
- the composed typecatalogVersion
- the catalog version- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
findCategoriesByRestriction
public java.util.List<CategoryModel> findCategoriesByRestriction(CMSCategoryRestrictionModel restriction)
Find categories by restriction.- Specified by:
findCategoriesByRestriction
in interfaceCMSRestrictionDao
- Parameters:
restriction
- the restriction- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
findProductsByRestriction
public java.util.List<ProductModel> findProductsByRestriction(CMSProductRestrictionModel restriction)
Find products by restriction.- Specified by:
findProductsByRestriction
in interfaceCMSRestrictionDao
- Parameters:
restriction
- the restriction- Returns:
- the list of found
AbstractRestrictionModel
objects or empty list when not found.
-
-