Class DefaultSearchRestrictionDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<SearchRestrictionModel>
-
- de.hybris.platform.search.restriction.dao.impl.DefaultSearchRestrictionDao
-
- All Implemented Interfaces:
SearchRestrictionDao,GenericDao<SearchRestrictionModel>
public class DefaultSearchRestrictionDao extends DefaultGenericDao<SearchRestrictionModel> implements SearchRestrictionDao
Default implementation ofSearchRestrictionDaointerface.
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchRestrictionDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<SearchRestrictionModel>findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)Finds activeSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel.java.util.List<SearchRestrictionModel>findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)Finds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel.java.util.List<SearchRestrictionModel>findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)Finds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel.java.util.List<SearchRestrictionModel>findSearchRestrictionsByType(ComposedTypeModel type)Finds allSearchRestrictionModelobjects forComposedTypeModel-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
findActiveSearchRestrictionsByPrincipalAndType
public java.util.List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Description copied from interface:SearchRestrictionDaoFinds activeSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel. IfincludePrincipalGroupsistruethen also all user groups forPrincipalModelwill be used in the search.- Specified by:
findActiveSearchRestrictionsByPrincipalAndTypein interfaceSearchRestrictionDao- Parameters:
principal- the principal for which restrictions will be searched.includePrincipalGroups- determines whether include principal groups in search.types- the collection ofComposedTypeModelobjects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModelobjects or empty list when no result has been found.
-
findInactiveSearchRestrictionsByPrincipalAndType
public java.util.List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Description copied from interface:SearchRestrictionDaoFinds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel. IfincludePrincipalGroupsistruethen also all user groups forPrincipalModelwill be used in the search.- Specified by:
findInactiveSearchRestrictionsByPrincipalAndTypein interfaceSearchRestrictionDao- Parameters:
principal- the principal for which restrictions will be searched.includePrincipalGroups- determines whether include principal groups in search.types- the collection ofComposedTypeModelobjects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModelobjects or empty list when no result has been found.
-
findSearchRestrictionsByPrincipalAndType
public java.util.List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Description copied from interface:SearchRestrictionDaoFinds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel. IfincludePrincipalGroupsistruethen also all user groups forPrincipalModelwill be used in the search.- Specified by:
findSearchRestrictionsByPrincipalAndTypein interfaceSearchRestrictionDao- Parameters:
principal- the principal for which restrictions will be searched.includePrincipalGroups- determines whether include principal groups in search.types- the collection ofComposedTypeModelobjects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModelobjects or empty list when no result has been found.
-
findSearchRestrictionsByType
public java.util.List<SearchRestrictionModel> findSearchRestrictionsByType(ComposedTypeModel type)
Finds allSearchRestrictionModelobjects forComposedTypeModel- Specified by:
findSearchRestrictionsByTypein interfaceSearchRestrictionDao- Parameters:
type- theComposedTypeModelobject for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModelobjects or empty list when no result has been found.
-
-