@Singleton public class FederatedSearch extends RestService
Modifier and Type | Class and Description |
---|---|
static class |
FederatedSearch.ConfigParameter
Configuration parameter used by this JAX-RS resource.
|
Modifier and Type | Field and Description |
---|---|
static String |
MULTIVALUE_SEPARATOR |
Constructor and Description |
---|
FederatedSearch() |
Modifier and Type | Method and Description |
---|---|
String |
get(String template,
javax.ws.rs.core.UriInfo info)
Returns an open search descriptor describing the federated search / open search services.
|
protected Properties |
getTemplateProperties(String template)
Returns the Properties according to the given template.
|
javax.ws.rs.core.Response |
searchAtom(javax.ws.rs.core.UriInfo info,
javax.servlet.http.HttpServletRequest request,
String template,
String query,
int page,
int count)
Performs the federated search as specified by the request.
|
javax.ws.rs.core.Response |
searchRSS(javax.ws.rs.core.UriInfo info,
javax.servlet.http.HttpServletRequest request,
String template,
String query,
int page,
int count)
Performs the federated search as specified by the request.
|
protected String |
valueToString(com.saperion.intf.SaPropertyValue values)
Returns the value of the given SaPropertyValue as String.
|
checkConnection, getConnection
public static final String MULTIVALUE_SEPARATOR
public String get(String template, @Context javax.ws.rs.core.UriInfo info)
template
- The open search template to be used by this request.info
- The injected UriInfo.public javax.ws.rs.core.Response searchRSS(@Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest request, String template, String query, int page, int count) throws com.sun.syndication.io.FeedException
info
- injected UriInfo.request
- injected HttpServletRequest.template
- the federated search template to use.query
- the user entered query term.page
- the expected query result page numbercount
- the expected maximum query resultscom.sun.syndication.io.FeedException
- if an error occurs.public javax.ws.rs.core.Response searchAtom(@Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest request, String template, String query, int page, int count) throws com.sun.syndication.io.FeedException
info
- injected UriInfo.request
- injected HttpServletRequest.template
- the federated search template to use.query
- the user entered query term.page
- the expected query result page numbercount
- the expected maximum query resultscom.sun.syndication.io.FeedException
- if an error occurs.protected String valueToString(com.saperion.intf.SaPropertyValue values)
values
- The SaPropertyValue to get the string value form.protected Properties getTemplateProperties(String template)
template
- The template name.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.