com.atlassian.confluence.search.lucene.filter
Class ContentPermissionsFilter
java.lang.Object
org.apache.lucene.search.Filter
com.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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Category log
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
ContentPermission
s or whose
ContentPermission
s are fulfilled by this user.
- Parameters:
user
- the user performing the searchgroups
- list of Group
s the user belongs to.
bits
public BitSet bits(IndexReader reader)
throws IOException
- Throws:
IOException