com.atlassian.confluence.search.lucene.filter
Class ContentPermissionsFilter

java.lang.Object
  extended byorg.apache.lucene.search.Filter
      extended bycom.atlassian.confluence.search.lucene.filter.ContentPermissionsFilter
All Implemented Interfaces:
Serializable

public class ContentPermissionsFilter
extends Filter

Lucene Filter that filters out indexed documents the user is not permitted to search on or to see as a search result.

See Also:
Serialized Form

Field Summary
static org.apache.log4j.Category log
           
 
Constructor Summary
ContentPermissionsFilter(User user, Pager groups)
          Create a Lucene Filter that includes only pages that the user has permissions to see.
 
Method Summary
 BitSet bits(IndexReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final org.apache.log4j.Category log
Constructor Detail

ContentPermissionsFilter

public ContentPermissionsFilter(User user,
                                Pager groups)
Create a Lucene Filter that includes only pages that the user has permissions to see. This should be equivalent to the pages that have no ContentPermissions or whose ContentPermissions are fulfilled by this user.

Parameters:
user - the user performing the search
groups - list of Groups the user belongs to.
Method Detail

bits

public BitSet bits(IndexReader reader)
            throws IOException
Throws:
IOException


Confluence is developed by Atlassian.