Class DefaultSearchRestrictionDao

    • Constructor Detail

      • DefaultSearchRestrictionDao

        public DefaultSearchRestrictionDao()
    • Method Detail

      • findActiveSearchRestrictionsByPrincipalAndType

        public java.util.List<SearchRestrictionModel> findActiveSearchRestrictionsByPrincipalAndType​(PrincipalModel principal,
                                                                                                     boolean includePrincipalGroups,
                                                                                                     java.util.Collection<ComposedTypeModel> types)
        Description copied from interface: SearchRestrictionDao
        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.
        Specified by:
        findActiveSearchRestrictionsByPrincipalAndType in interface SearchRestrictionDao
        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

        public java.util.List<SearchRestrictionModel> findInactiveSearchRestrictionsByPrincipalAndType​(PrincipalModel principal,
                                                                                                       boolean includePrincipalGroups,
                                                                                                       java.util.Collection<ComposedTypeModel> types)
        Description copied from interface: SearchRestrictionDao
        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.
        Specified by:
        findInactiveSearchRestrictionsByPrincipalAndType in interface SearchRestrictionDao
        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.
      • findSearchRestrictionsByPrincipalAndType

        public java.util.List<SearchRestrictionModel> findSearchRestrictionsByPrincipalAndType​(PrincipalModel principal,
                                                                                               boolean includePrincipalGroups,
                                                                                               java.util.Collection<ComposedTypeModel> types)
        Description copied from interface: SearchRestrictionDao
        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.
        Specified by:
        findSearchRestrictionsByPrincipalAndType in interface SearchRestrictionDao
        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

        public java.util.List<SearchRestrictionModel> findSearchRestrictionsByType​(ComposedTypeModel type)
        Finds all SearchRestrictionModel objects for ComposedTypeModel
        Specified by:
        findSearchRestrictionsByType in interface SearchRestrictionDao
        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.