com.atlassian.jira.sharing.index
Class DefaultSharedEntitySearcher<S extends SharedEntity>
java.lang.Object
com.atlassian.jira.sharing.index.DefaultSharedEntitySearcher<S>
- All Implemented Interfaces:
- SharedEntitySearcher<S>
public class DefaultSharedEntitySearcher<S extends SharedEntity>
- extends Object
- implements SharedEntitySearcher<S>
Default implementation of SharedEntitySearcher
.
- Since:
- v3.13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSharedEntitySearcher
public DefaultSharedEntitySearcher(com.atlassian.jira.sharing.index.IndexSearcherFactory searcherFactory,
SharedEntityAccessor<S> accessor,
QueryFactory queryFactory)
search
public SharedEntitySearchResult<S> search(SharedEntitySearchParameters searchParameters,
com.atlassian.crowd.embedded.api.User user,
int pageOffset,
int pageWidth)
- Description copied from interface:
SharedEntitySearcher
- Search for
SharedEntity
instances that match the passed in searchParameters.
- Specified by:
search
in interface SharedEntitySearcher<S extends SharedEntity>
- Parameters:
searchParameters
- the search searchParameters for the search.user
- the user to perform the search as.pageOffset
- the page that should be returned by the search. Must be >=0.pageWidth
- the width of the page that should be returned by the search. Can be set to Integer.MAX_VALUE if you want to return all results
at one. In this case it is compulsory to set pageOffest to 0.
- Returns:
- the search results.
search
public SharedEntitySearchResult<S> search(SharedEntitySearchParameters searchParameters)
- Description copied from interface:
SharedEntitySearcher
- Search for
SharedEntity
instances that match the passed in searchParameters. Used for system searches. Unpaged and no permissions query
performed.
- Specified by:
search
in interface SharedEntitySearcher<S extends SharedEntity>
- Parameters:
searchParameters
- the search searchParameters for the search.
- Returns:
- the search results.
Copyright © 2002-2011 Atlassian. All Rights Reserved.