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:
- java.io.Serializable
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.
- See Also:
- Serialized Form
|
Field Summary |
static org.apache.log4j.Category |
log
|
|
Constructor Summary |
ContentPermissionsFilter(com.atlassian.user.User user,
com.atlassian.user.search.page.Pager groups)
Create a Lucene Filter that includes only pages that the user has permissions to see. |
|
Method Summary |
java.util.BitSet |
bits(org.apache.lucene.index.IndexReader reader)
|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Category log
ContentPermissionsFilter
public ContentPermissionsFilter(com.atlassian.user.User user,
com.atlassian.user.search.page.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 searchgroups - list of Groups the user belongs to.
bits
public java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
throws java.io.IOException
- Specified by:
bits in class org.apache.lucene.search.Filter
- Throws:
java.io.IOException
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.