Interface SearchRestrictionDao
-
- All Known Implementing Classes:
DefaultSearchRestrictionDao
public interface SearchRestrictionDao
Class used to do all query operations for Search Restrictions.- Spring Bean ID:
- searchRestrictionDao
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
findSearchRestrictionsByPrincipalAndType
java.util.List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Finds allSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
. IfincludePrincipalGroups
istrue
then also all user groups forPrincipalModel
will be used in the search.- 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
java.util.List<SearchRestrictionModel> findSearchRestrictionsByType(ComposedTypeModel type)
Finds allSearchRestrictionModel
objects forComposedTypeModel
- 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.
-
findActiveSearchRestrictionsByPrincipalAndType
java.util.List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Finds activeSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
. IfincludePrincipalGroups
istrue
then also all user groups forPrincipalModel
will be used in the search.- 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
java.util.List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.Collection<ComposedTypeModel> types)
Finds allSearchRestrictionModel
objects forPrincipalModel
andComposedTypeModel
. IfincludePrincipalGroups
istrue
then also all user groups forPrincipalModel
will be used in the search.- 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.
-
-