public interface SavedQueryService
| Modifier and Type | Method and Description |
|---|---|
void |
delete(LensSessionHandle handle,
long id)
Deletes the saved query specified.
|
SavedQuery |
get(LensSessionHandle handle,
long id)
Returns the saved query pointed out by the id.
|
void |
grant(LensSessionHandle handle,
long id,
String sharingUser,
String targetUserPath,
String[] privileges)
Grant permissions for users to do actions on the saved query.
|
ListResponse |
list(LensSessionHandle handle,
javax.ws.rs.core.MultivaluedMap<String,String> criteria,
long start,
long count)
List the saved query from {start} to {count} matching filter denoted by criteria.
|
void |
revoke(LensSessionHandle handle,
long id,
String sharingUser,
String targetUserPath,
String[] privileges)
Revoke permissions from users to do actions on the saved query.
|
long |
save(LensSessionHandle handle,
SavedQuery query)
Saves a query
|
void |
update(LensSessionHandle handle,
long id,
SavedQuery query)
Updates the specified saved query with the new object.
|
static final String NAME
long save(LensSessionHandle handle, SavedQuery query) throws LensException
query - Saved query object.LensExceptionvoid update(LensSessionHandle handle, long id, SavedQuery query) throws LensException
handle - session handle of the queryid - id of the saved query.query - Saved query object.LensExceptionvoid delete(LensSessionHandle handle, long id) throws LensException
handle - session handle of the queryid - id of the saved query.LensExceptionSavedQuery get(LensSessionHandle handle, long id) throws LensException
handle - session handle of the queryid - id of the saved query.LensExceptionListResponse list(LensSessionHandle handle, javax.ws.rs.core.MultivaluedMap<String,String> criteria, long start, long count) throws LensException
handle - session handle of the querycriteria - Multivalued map representing the criteria.start - Displacement from the first matching record.count - Number of records to fetch.LensExceptionvoid grant(LensSessionHandle handle, long id, String sharingUser, String targetUserPath, String[] privileges) throws LensException
handle - session handle of the queryid - id of the query.sharingUser - User invoking this action.targetUserPath - Target users who have to get affected.privileges - Privileges to be granted.LensExceptionvoid revoke(LensSessionHandle handle, long id, String sharingUser, String targetUserPath, String[] privileges) throws LensException
handle - session handle of the queryid - id of the query.sharingUser - User invoking this action.targetUserPath - Target users who have to get affected.privileges - Privileges to be granted.LensExceptionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.