com.atlassian.user.search.query
Interface QueryContext


public interface QueryContext

Indicates the context in which a query should run.


Field Summary
static java.lang.String ALL_REPOSITORIES
          Deprecated. since 2.1 should not be on the interface, use AllRepositoriesQueryContext to model this behaviour
 
Method Summary
 void addRepositoryKey(java.lang.String key)
          Deprecated. since 2.1 should not be on the interface, use DefaultQueryContext#DefaultQueryContext(RepositoryIdentifier...)
 boolean contains(RepositoryIdentifier repositoryIdentifier)
          Returns true if the specified repository is in this query context, otherwise false.
 java.util.List<java.lang.String> getRepositoryKeys()
          Deprecated. since 2.1 use contains(RepositoryIdentifier) instead
 

Field Detail

ALL_REPOSITORIES

static final java.lang.String ALL_REPOSITORIES
Deprecated. since 2.1 should not be on the interface, use AllRepositoriesQueryContext to model this behaviour
indicates that the Query Context should search in all delegated repositories.

See Also:
Constant Field Values
Method Detail

addRepositoryKey

void addRepositoryKey(java.lang.String key)
Deprecated. since 2.1 should not be on the interface, use DefaultQueryContext#DefaultQueryContext(RepositoryIdentifier...)


getRepositoryKeys

java.util.List<java.lang.String> getRepositoryKeys()
Deprecated. since 2.1 use contains(RepositoryIdentifier) instead


contains

boolean contains(RepositoryIdentifier repositoryIdentifier)
Returns true if the specified repository is in this query context, otherwise false.

Since:
2.1


Copyright © 2005-2015 Atlassian. All Rights Reserved.