Class ContentPermissionsFilter
- java.lang.Object
-
- org.apache.lucene.search.Filter
-
- com.atlassian.confluence.impl.search.v2.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.
-
-
Constructor Summary
Constructors Constructor Description ContentPermissionsFilter()
ContentPermissionsFilter(com.atlassian.sal.api.user.UserKey userKey, Iterable<String> groupNames)
ContentPermissionsFilter(com.atlassian.user.User user, Iterable<String> groupNames)
Deprecated.since 7.16 useContentPermissionsFilter(UserKey, Iterable)
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
org.apache.lucene.search.DocIdSet
getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs)
Set<String>
getUserCredentials()
int
hashCode()
-
-
-
Constructor Detail
-
ContentPermissionsFilter
@Deprecated public ContentPermissionsFilter(com.atlassian.user.User user, Iterable<String> groupNames)
Deprecated.since 7.16 useContentPermissionsFilter(UserKey, Iterable)
.Create a Lucene Filter that includes only pages that the user has permissions to see. This should be equivalent to the pages that have noContentPermission
s or whoseContentPermission
s are fulfilled by this user.- Parameters:
user
- the user performing the searchgroupNames
- list ofstrings
representing the groups the user belongs to.
-
ContentPermissionsFilter
public ContentPermissionsFilter()
- Since:
- 7.16
-
-
Method Detail
-
getDocIdSet
public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs) throws IOException
- Specified by:
getDocIdSet
in classorg.apache.lucene.search.Filter
- Throws:
IOException
-
-