Interface SearchRestrictionDao
-
- All Known Implementing Classes:
DefaultSearchRestrictionDao
public interface SearchRestrictionDaoClass 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 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
-
-
-
Method Detail
-
findSearchRestrictionsByPrincipalAndType
java.util.List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.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
java.util.List<SearchRestrictionModel> findSearchRestrictionsByType(ComposedTypeModel type)
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
java.util.List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.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
java.util.List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, java.util.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.
-
-