public class SearchClientImpl<ItemType> extends Object implements SearchClient<ItemType>
SearchClient
.Constructor and Description |
---|
SearchClientImpl(com.lexmark.saperion.search.SearchExecutionService<ItemType> searchService) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(com.lexmark.saperion.search.expression.Expression filter)
This convenience method checks whether an element matching the filter actually exists.
|
Iterable<ItemType> |
list()
This method returns an iterable over the complete result of the search using the default paging.
|
Iterable<ItemType> |
list(com.lexmark.saperion.search.expression.Expression filter)
This method returns an iterable over the filtered result of the search using the default paging.
|
Iterable<ItemType> |
list(com.lexmark.saperion.search.expression.Expression filter,
List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(com.lexmark.saperion.search.expression.Expression filter,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(List<String> fields,
com.lexmark.saperion.search.expression.Expression filter,
List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(List<String> fields,
com.lexmark.saperion.search.expression.Expression filter,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
Iterable<ItemType> |
list(com.lexmark.saperion.search.query.Statement statement,
com.lexmark.saperion.search.PageDefinition paging)
This method returns an iterable over the filtered result of the search paging as defined.
|
com.lexmark.saperion.search.SearchResultPage<ItemType> |
page(int offset,
int pageSize)
This method retrieves the given page of the result of the search.
|
com.lexmark.saperion.search.SearchResultPage<ItemType> |
page(com.lexmark.saperion.search.PageDefinition paging)
This method retrieves the given page of the result of the search.
|
com.lexmark.saperion.search.SearchResultPage<ItemType> |
search(com.lexmark.saperion.search.query.Statement statement,
com.lexmark.saperion.search.PageDefinition pageDefinition) |
ItemType |
uniqueResult(com.lexmark.saperion.search.expression.Expression filter)
This convenience method expects the filter to return at most one result.
|
public SearchClientImpl(com.lexmark.saperion.search.SearchExecutionService<ItemType> searchService)
public com.lexmark.saperion.search.SearchResultPage<ItemType> search(com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition pageDefinition) throws com.lexmark.saperion.exceptions.EcmException
search
in interface com.lexmark.saperion.search.SearchExecutionService<ItemType>
com.lexmark.saperion.exceptions.EcmException
public Iterable<ItemType> list(com.lexmark.saperion.search.query.Statement statement, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
list
in interface SearchClient<ItemType>
statement
- a statement filtering the resultpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
public Iterable<ItemType> list(List<String> fields, com.lexmark.saperion.search.expression.Expression filter, List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
list
in interface SearchClient<ItemType>
fields
- the fields of the result to deliverfilter
- a filter for the resultorder
- the order of the result listpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
public Iterable<ItemType> list(List<String> fields, com.lexmark.saperion.search.expression.Expression filter, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
list
in interface SearchClient<ItemType>
fields
- the fields of the result to deliverfilter
- a filter for the resultpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
public Iterable<ItemType> list(com.lexmark.saperion.search.expression.Expression filter, List<com.lexmark.saperion.search.query.FieldOrderDescriptor> order, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
list
in interface SearchClient<ItemType>
filter
- a filter for the resultorder
- the order of the result listpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
public Iterable<ItemType> list(com.lexmark.saperion.search.expression.Expression filter, com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
list
in interface SearchClient<ItemType>
filter
- a filter for the resultpaging
- the paging the returned iterator should usecom.lexmark.saperion.exceptions.EcmException
public Iterable<ItemType> list(com.lexmark.saperion.search.expression.Expression filter) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
list
in interface SearchClient<ItemType>
filter
- a filter for the resultcom.lexmark.saperion.exceptions.EcmException
public Iterable<ItemType> list() throws com.lexmark.saperion.exceptions.EcmException
SearchClient
list
in interface SearchClient<ItemType>
com.lexmark.saperion.exceptions.EcmException
public ItemType uniqueResult(com.lexmark.saperion.search.expression.Expression filter) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
null
is returned. If one such element exists it is returned. Otherwise an IllegalRequestException
is thrown.uniqueResult
in interface SearchClient<ItemType>
filter
- a filter yielding true for at most one elementcom.lexmark.saperion.exceptions.EcmException
public boolean exists(com.lexmark.saperion.search.expression.Expression filter) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
exists
in interface SearchClient<ItemType>
filter
- the filter to checkcom.lexmark.saperion.exceptions.EcmException
public com.lexmark.saperion.search.SearchResultPage<ItemType> page(com.lexmark.saperion.search.PageDefinition paging) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
page
in interface SearchClient<ItemType>
paging
- the page to retrievecom.lexmark.saperion.exceptions.EcmException
public com.lexmark.saperion.search.SearchResultPage<ItemType> page(int offset, int pageSize) throws com.lexmark.saperion.exceptions.EcmException
SearchClient
page
in interface SearchClient<ItemType>
offset
- the offset of the pagepageSize
- the size of the pagecom.lexmark.saperion.exceptions.EcmException
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.