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 of
SearchRestrictionDao interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types) Finds activeSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel.findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types) Finds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel.findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types) Finds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel.Finds allSearchRestrictionModelobjects forComposedTypeModelMethods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultSearchRestrictionDao
public DefaultSearchRestrictionDao()
-
-
Method Details
-
findActiveSearchRestrictionsByPrincipalAndType
public List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, 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 List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, 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 List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, 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
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.
-