Class PermittedSpacesQueryMapper

  extended by
All Implemented Interfaces:

public class PermittedSpacesQueryMapper
extends Object
implements LuceneQueryMapper

Maps a 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.

Field Summary
static String SPACEKEY_FIELD
Constructor Summary
Method Summary convertToLuceneQuery(SearchQuery searchQuery)
          Convert a SearchQuery into a lucene query.
 void setSpaceManager(SpaceManager spaceManager)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public static final String SPACEKEY_FIELD
See Also:
Constant Field Values
Constructor Detail


public PermittedSpacesQueryMapper()
Method Detail


public convertToLuceneQuery(SearchQuery searchQuery)
Description copied from interface: LuceneQueryMapper
Convert a SearchQuery into a lucene query. So a query that represents a search for any value in a particular index field should map to null.

Specified by:
convertToLuceneQuery in interface LuceneQueryMapper
searchQuery - the query to convert
the lucene query corresponding to the search query. null can be returned and signifies that no mapped query is necessary for the mapped query.


public void setSpaceManager(SpaceManager spaceManager)

Copyright © 2003-2011 Atlassian. All Rights Reserved.