com.atlassian.confluence.search.v2.lucene.mapper
Class FavouriteSpaceQueryMapper

java.lang.Object
  extended by com.atlassian.confluence.search.v2.lucene.mapper.FavouriteSpaceQueryMapper
All Implemented Interfaces:
LuceneQueryMapper

public class FavouriteSpaceQueryMapper
extends java.lang.Object
implements LuceneQueryMapper

Currently, only checks the current user's favourite spaces. You could add an optional username parameter that checked the favourites of other users, but you'd have to ensure it was only used in safe circumstances, since people shouldn't be allowed to see other peoples favourites.


Constructor Summary
FavouriteSpaceQueryMapper(LabelManager labelManager)
           
 
Method Summary
 org.apache.lucene.search.Query convertToLuceneQuery(SearchQuery smartListQuery)
          Convert a SearchQuery into a lucene query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavouriteSpaceQueryMapper

public FavouriteSpaceQueryMapper(LabelManager labelManager)
Method Detail

convertToLuceneQuery

public org.apache.lucene.search.Query convertToLuceneQuery(SearchQuery smartListQuery)
Description copied from interface: LuceneQueryMapper
Convert a SearchQuery into a lucene query

Specified by:
convertToLuceneQuery in interface LuceneQueryMapper
Parameters:
smartListQuery - the query to convert
Returns:
the lucene query corresponding to the search query


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.