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
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 forComposedTypeModel
-
Method Details
-
findSearchRestrictionsByPrincipalAndType
List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types) Finds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel. IfincludePrincipalGroupsistruethen also all user groups forPrincipalModelwill 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 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- Parameters:
type- theComposedTypeModelobject for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModelobjects or empty list when no result has been found.
-
findActiveSearchRestrictionsByPrincipalAndType
List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types) Finds activeSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel. IfincludePrincipalGroupsistruethen also all user groups forPrincipalModelwill 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 ofComposedTypeModelobjects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModelobjects or empty list when no result has been found.
-
findInactiveSearchRestrictionsByPrincipalAndType
List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types) Finds allSearchRestrictionModelobjects forPrincipalModelandComposedTypeModel. IfincludePrincipalGroupsistruethen also all user groups forPrincipalModelwill 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 ofComposedTypeModelobjects for which restriction will be obtained.- Returns:
- the list of found
SearchRestrictionModelobjects or empty list when no result has been found.
-