public class PermittedSpacesQueryMapper extends Object implements LuceneQueryMapper
PermittedSpacesQuery
to an appropriate lucene query for the
currently logged in user. This mapper should construct a query that searches only the spaces that the current logged
in user can see.Modifier and Type | Field and Description |
---|---|
static String |
SPACEKEY_FIELD
Deprecated.
Use
DocumentFieldName.SPACE_KEY instead |
Constructor and Description |
---|
PermittedSpacesQueryMapper() |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
convertToLuceneQuery(SearchQuery searchQuery)
Convert a SearchQuery into a lucene query.
|
void |
setSpaceManager(SpaceManager spaceManager) |
@Deprecated public static final String SPACEKEY_FIELD
DocumentFieldName.SPACE_KEY
insteadpublic org.apache.lucene.search.Query convertToLuceneQuery(SearchQuery searchQuery)
LuceneQueryMapper
convertToLuceneQuery
in interface LuceneQueryMapper
searchQuery
- the query to convertpublic void setSpaceManager(SpaceManager spaceManager)
Copyright © 2003–2017 Atlassian. All rights reserved.