Class ContentPermissionsFilter


  • public class ContentPermissionsFilter
    extends org.apache.lucene.search.Filter
    Lucene Filter that filters out indexed documents the user is not permitted to search on or to see as a search result.
    • Constructor Detail

      • ContentPermissionsFilter

        public ContentPermissionsFilter()
        Since:
        7.16
      • ContentPermissionsFilter

        public ContentPermissionsFilter​(com.atlassian.sal.api.user.UserKey userKey,
                                        Iterable<String> groupNames)
        Since:
        7.16
    • Method Detail

      • getUserCredentials

        public Set<String> getUserCredentials()
      • getDocIdSet

        public org.apache.lucene.search.DocIdSet getDocIdSet​(org.apache.lucene.index.AtomicReaderContext context,
                                                             org.apache.lucene.util.Bits acceptDocs)
                                                      throws IOException
        Specified by:
        getDocIdSet in class org.apache.lucene.search.Filter
        Throws:
        IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object