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 ofSearchRestrictionDao
interface.
-
-
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 activeSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
.java.util.List<SearchRestrictionModel>
findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Finds allSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
.java.util.List<SearchRestrictionModel>
findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Finds allSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
.java.util.List<SearchRestrictionModel>
findSearchRestrictionsByType(ComposedTypeModel type)
Finds allSearchRestrictionModel
objects 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:SearchRestrictionDao
Finds activeSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
. IfincludePrincipalGroups
istrue
then also all user groups forPrincipalModel
will be used in the search.- Specified by:
findActiveSearchRestrictionsByPrincipalAndType
in interfaceSearchRestrictionDao
- Parameters:
principal
- the principal for which restrictions will be searched.includePrincipalGroups
- determines whether include principal groups in search.types
- the collection ofComposedTypeModel
objects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModel
objects 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:SearchRestrictionDao
Finds allSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
. IfincludePrincipalGroups
istrue
then also all user groups forPrincipalModel
will be used in the search.- Specified by:
findInactiveSearchRestrictionsByPrincipalAndType
in interfaceSearchRestrictionDao
- Parameters:
principal
- the principal for which restrictions will be searched.includePrincipalGroups
- determines whether include principal groups in search.types
- the collection ofComposedTypeModel
objects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModel
objects 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:SearchRestrictionDao
Finds allSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
. IfincludePrincipalGroups
istrue
then also all user groups forPrincipalModel
will be used in the search.- Specified by:
findSearchRestrictionsByPrincipalAndType
in interfaceSearchRestrictionDao
- Parameters:
principal
- the principal for which restrictions will be searched.includePrincipalGroups
- determines whether include principal groups in search.types
- the collection ofComposedTypeModel
objects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModel
objects or empty list when no result has been found.
-
findSearchRestrictionsByType
public java.util.List<SearchRestrictionModel> findSearchRestrictionsByType(ComposedTypeModel type)
Finds allSearchRestrictionModel
objects forComposedTypeModel
- Specified by:
findSearchRestrictionsByType
in interfaceSearchRestrictionDao
- Parameters:
type
- theComposedTypeModel
object for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModel
objects or empty list when no result has been found.
-
-