public class ContentPermissionsFilter
extends org.apache.lucene.search.Filter
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Category |
log
Deprecated.
since 5.5, use private logger.
|
Constructor and Description |
---|
ContentPermissionsFilter(com.atlassian.user.User user,
Iterable<String> groupNames)
Create a Lucene Filter that includes only pages that the user has permissions to see.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
org.apache.lucene.search.DocIdSet |
getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
org.apache.lucene.util.Bits acceptDocs) |
int |
hashCode() |
@Deprecated public static final org.apache.log4j.Category log
public ContentPermissionsFilter(com.atlassian.user.User user, Iterable<String> groupNames)
ContentPermission
s or whose
ContentPermission
s are fulfilled by this user.user
- the user performing the searchgroupNames
- list of strings
representing the groups the user belongs to.public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs) throws IOException
getDocIdSet
in class org.apache.lucene.search.Filter
IOException
Copyright © 2003–2021 Atlassian. All rights reserved.