public class SavedQueryResource extends Object
| Constructor and Description |
|---|
SavedQueryResource() |
| Modifier and Type | Method and Description |
|---|---|
ResourceModifiedResponse |
create(LensSessionHandle sessionid,
SavedQuery savedQuery,
org.glassfish.grizzly.http.server.Response response)
Creates a new saved query.
|
ResourceModifiedResponse |
deleteById(LensSessionHandle sessionid,
long id)
Deletes the saved query with the given id.
|
SavedQuery |
getByID(LensSessionHandle sessionid,
long id)
Gets the saved query with the given id.
|
ListResponse |
getList(LensSessionHandle sessionid,
javax.ws.rs.core.UriInfo info,
int start,
String count)
Gets a list of saved queries matching the criteria (url parameters)
windowed by count and start.
|
String |
getMessage() |
ParameterParserResponse |
getParameters(LensSessionHandle sessionid,
String query)
Parses the query and returns parameters that are found in the query.
|
LensAPIResult<? extends QuerySubmitResult> |
run(long id,
javax.ws.rs.core.UriInfo info,
LensSessionHandle sessionid,
LensConf conf)
Runs the saved query with the given id and returns a query handle.
|
ResourceModifiedResponse |
update(LensSessionHandle sessionid,
long id,
SavedQuery savedQuery,
org.glassfish.grizzly.http.server.Response response)
Updates the saved query {id} with the new payload.
|
public String getMessage()
public ListResponse getList(LensSessionHandle sessionid, @Context javax.ws.rs.core.UriInfo info, int start, String count) throws LensException
sessionid - The sessionid in which user is workinginfo - URI context injected for query parametersstart - Offset to start from the search resultcount - Number of records to fetch from startListResponse ListResponse objectLensExceptionpublic SavedQuery getByID(LensSessionHandle sessionid, long id) throws LensException
sessionid - The sessionid in which user is workingid - id of the saved querySavedQuery SavedQuery objectLensExceptionpublic ResourceModifiedResponse deleteById(LensSessionHandle sessionid, long id) throws LensException
sessionid - The sessionid in which user is workingid - id of the saved queryResourceModifiedResponse ResourceModifiedResponse objectLensExceptionpublic ResourceModifiedResponse create(LensSessionHandle sessionid, SavedQuery savedQuery, @Context org.glassfish.grizzly.http.server.Response response) throws LensException, IOException
sessionid - The sessionid in which user is workingsavedQuery - Saved query objectresponse - Injected response context objectResourceModifiedResponse ResourceModifiedResponse objectLensExceptionIOExceptionpublic ResourceModifiedResponse update(LensSessionHandle sessionid, long id, SavedQuery savedQuery, @Context org.glassfish.grizzly.http.server.Response response) throws LensException, IOException
sessionid - The sessionid in which user is workingsavedQuery - Saved query objectresponse - Injected response context objectResourceModifiedResponse ResourceModifiedResponse objectLensExceptionIOExceptionpublic ParameterParserResponse getParameters(LensSessionHandle sessionid, String query)
sessionid - The sessionid in which user is workingquery - The HQL queryParameterParserResponse ParameterParserResponse objectpublic LensAPIResult<? extends QuerySubmitResult> run(long id, @Context javax.ws.rs.core.UriInfo info, LensSessionHandle sessionid, LensConf conf) throws LensException
id - id of the saved queryinfo - Injected UriInfo context objectsessionid - The sessionid in which user is workingconf - Lens configuration overrides for the queryLensExceptionCopyright © 2014–2015 Apache Software Foundation. All rights reserved.