Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Interface ISearchSaveRepository

All Known Implementing Classes:
GptRepository

public interface ISearchSaveRepository

The Interface ISearchHibernation. Represents a repository where the search criteria will be kept for each user who wants to save a search for a later time.


Method Summary
 void delete(Object id, User user)
          Delete.
 SavedSearchCriterias getSavedList(User user)
          Gets the saved list.
 SearchCriteria getSearchCriteria(Object id, User user)
          Returns the original search criteria from the repository.
 void save(SavedSearchCriteria savedCriteria)
          Saves the criteria onto the repository.
 void save(String name, String restCriteria, User user)
          Save.
 

Method Detail

save

void save(SavedSearchCriteria savedCriteria)
          throws SearchException
Saves the criteria onto the repository.

Parameters:
savedCriteria - the criteria
Throws:
SearchException - the search exception

getSearchCriteria

SearchCriteria getSearchCriteria(Object id,
                                 User user)
                                 throws SearchException
Returns the original search criteria from the repository.

Parameters:
id - id of the search
user - user
Returns:
search criteria
Throws:
SearchException - the search exception

delete

void delete(Object id,
            User user)
            throws SearchException
Delete.

Parameters:
id - the id of the search to be deleted
user - the user user associated with action
Throws:
SearchException - the search exception

getSavedList

SavedSearchCriterias getSavedList(User user)
                                  throws SearchException
Gets the saved list.

Parameters:
user - the user
Returns:
the saved list
Throws:
SearchException - the search exception

save

void save(String name,
          String restCriteria,
          User user)
          throws SearchException
Save.

Parameters:
name - the name
restCriteria - the rest criteria
user - the user
Throws:
SearchException - the search exception

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.