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 Detail

      • findSearchRestrictionsByPrincipalAndType

        java.util.List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType​(PrincipalModel principal,
                                                                                        boolean includePrincipalGroups,
                                                                                        java.util.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

        java.util.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

        java.util.List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType​(PrincipalModel principal,
                                                                                              boolean includePrincipalGroups,
                                                                                              java.util.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

        java.util.List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType​(PrincipalModel principal,
                                                                                                boolean includePrincipalGroups,
                                                                                                java.util.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.