|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SavedSearchManagerRemote
The remote interface to the SavedSearchManager.
Method Summary | |
---|---|
int |
createSavedSearch(Subject subject,
SavedSearch savedSearch)
Persisted a new SavedSearch with the given primary key |
void |
deleteSavedSearch(Subject subject,
int savedSearchId)
Deletes the SavedSearch with the given primary key |
PageList<SavedSearch> |
findSavedSearchesByCriteria(Subject subject,
SavedSearchCriteria criteria)
Returns the PageList of SavedSearch entities that match the criteria filters that are visible
to the user |
SavedSearch |
getSavedSearchById(Subject subject,
int savedSearchId)
Returns the SavedSearch with the given primary key |
boolean |
updateSavedSearch(Subject subject,
SavedSearch savedSearch)
Saves all changes to the passed SavedSearch database, correlating it to the record already
persisted with the same primary key |
Method Detail |
---|
int createSavedSearch(Subject subject, SavedSearch savedSearch)
SavedSearch
with the given primary key
subject
- the logged in user requesting the SavedSearch
deletionsavedSearch
- the primary key of the SavedSearch
to be deleted
org.rhq.enterprise.server.authz.PermissionException
- if the user is not authorized to create the SavedSearch
. Only inventory
managers can create global saved searches. Regular users can only create SavedSearch
es against
their own accounts.boolean updateSavedSearch(Subject subject, SavedSearch savedSearch)
SavedSearch
database, correlating it to the record already
persisted with the same primary key
subject
- the logged in user requesting the SavedSearch
persisted modificationsavedSearch
- the SavedSearch
which will have its modifications persisted
.
SavedSearch
had any edits that needed to be persisted
org.rhq.enterprise.server.authz.PermissionException
- if the user is not authorized to modify the SavedSearch
. Only inventory
managers can update global saved searches. Regular users can only update SavedSearch
es from
their own accounts.void deleteSavedSearch(Subject subject, int savedSearchId)
SavedSearch
with the given primary key
subject
- the logged in user requesting the SavedSearch
deletionsavedSearchId
- the primary key of the SavedSearch
to be deleted
org.rhq.enterprise.server.authz.PermissionException
- if the user is not authorized to delete the SavedSearch
. Only inventory
managers can delete global saved searches. Regular users can only delete SavedSearch
es from
their own accounts.SavedSearch getSavedSearchById(Subject subject, int savedSearchId)
SavedSearch
with the given primary key
subject
- the logged in user requesting the SavedSearch
to be loadedsavedSearchId
- the primary key of the SavedSearch
to be loaded
SavedSearch
or null
if it wasn't found
org.rhq.enterprise.server.authz.PermissionException
- if the user is not authorized to view the SavedSearch
. Regular users can
only view SavedSearch
es from their own accounts.PageList<SavedSearch> findSavedSearchesByCriteria(Subject subject, SavedSearchCriteria criteria)
PageList
of SavedSearch
entities that match the criteria filters that are visible
to the user
subject
- the logged in user requesting the PageList
of SavedSearch
to be returnedcriteria
- the SavedSearchCriteria
object that will filter the returned results
PageList
of SavedSearch
entities that match the criteria filters, an empty list
will be returned if no results were found or none matches the given filters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |