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 Details

    • findSearchRestrictionsByPrincipalAndType

      List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types)
      Finds all SearchRestrictionModel objects for PrincipalModel and ComposedTypeModel. If includePrincipalGroups is true then also all user groups for PrincipalModel 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 of ComposedTypeModel objects for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.
    • findSearchRestrictionsByType

      List<SearchRestrictionModel> findSearchRestrictionsByType(ComposedTypeModel type)
      Finds all SearchRestrictionModel objects for ComposedTypeModel
      Parameters:
      type - the ComposedTypeModel object for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.
    • findActiveSearchRestrictionsByPrincipalAndType

      List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types)
      Finds active SearchRestrictionModel objects for PrincipalModel and ComposedTypeModel. If includePrincipalGroups is true then also all user groups for PrincipalModel 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 of ComposedTypeModel objects for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.
    • findInactiveSearchRestrictionsByPrincipalAndType

      List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType(PrincipalModel principal, boolean includePrincipalGroups, Collection<ComposedTypeModel> types)
      Finds all SearchRestrictionModel objects for PrincipalModel and ComposedTypeModel. If includePrincipalGroups is true then also all user groups for PrincipalModel 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 of ComposedTypeModel objects for which restriction will be obtained.
      Returns:
      the list of found SearchRestrictionModel objects or empty list when no result has been found.