com.atlassian.confluence.search.scope
Class SpaceScope
java.lang.Object
com.atlassian.confluence.search.scope.SpaceScope
- All Implemented Interfaces:
- ConfluenceSearchScope
public class SpaceScope
- extends Object
- implements ConfluenceSearchScope
Searcher that limits a search by space. If you provide an empty list of spaces, the search
will be performed across All spaces.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCOPE_PREFIX
public static final String SCOPE_PREFIX
- See Also:
- Constant Field Values
ALL
public static final String ALL
- See Also:
- Constant Field Values
FAVOURITES
public static final String FAVOURITES
- See Also:
- Constant Field Values
GLOBAL
public static final String GLOBAL
- See Also:
- Constant Field Values
PERSONAL
public static final String PERSONAL
- See Also:
- Constant Field Values
AVAILABLE_SCOPES
public static final List AVAILABLE_SCOPES
- A definitive list off all existing space scope strings.
SpaceScope
public SpaceScope(String spaceKey,
LabelManager labelManager)
SpaceScope
public SpaceScope(List spaceKeys,
LabelManager labelManager)
fromSpaceList
public static SpaceScope fromSpaceList(List spaces,
List spaceScopes,
LabelManager labelManager)
restrictQuery
public void restrictQuery(com.atlassian.user.User user,
org.apache.lucene.search.BooleanQuery query)
- Specified by:
restrictQuery
in interface ConfluenceSearchScope
getLabelManager
public LabelManager getLabelManager()
setLabelManager
public void setLabelManager(LabelManager labelManager)