com.atlassian.confluence.search.lucene.filter
Class ContentPermissionsFilter
java.lang.Object
org.apache.lucene.search.Filter
com.atlassian.confluence.search.lucene.filter.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.
Field Summary |
static org.apache.log4j.Category |
log
Deprecated. since 5.5, use private logger. |
Constructor Summary |
ContentPermissionsFilter(com.atlassian.user.User user,
java.lang.Iterable<java.lang.String> groupNames)
Create a Lucene Filter that includes only pages that the user has permissions to see. |
ContentPermissionsFilter(com.atlassian.user.User user,
com.atlassian.user.search.page.Pager<com.atlassian.user.Group> groups)
Deprecated. since 3.5 |
Method Summary |
boolean |
equals(java.lang.Object o)
|
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
org.apache.lucene.util.Bits acceptDocs)
|
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
log
@Deprecated
public static final org.apache.log4j.Category log
- Deprecated. since 5.5, use private logger.
ContentPermissionsFilter
@Deprecated
public ContentPermissionsFilter(com.atlassian.user.User user,
com.atlassian.user.search.page.Pager<com.atlassian.user.Group> groups)
- Deprecated. since 3.5
- 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.
ContentPermissionsFilter
public ContentPermissionsFilter(com.atlassian.user.User user,
java.lang.Iterable<java.lang.String> groupNames)
- 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 searchgroupNames
- list of strings
representing the groups the user belongs to.
getDocIdSet
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
org.apache.lucene.util.Bits acceptDocs)
throws java.io.IOException
- Specified by:
getDocIdSet
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-2014 Atlassian. All Rights Reserved.