Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Class SavedSearchCriteria

java.lang.Object
  extended by com.esri.gpt.catalog.search.SavedSearchCriteria

public class SavedSearchCriteria
extends Object

The Class SearchSaveBean. Bean representing a saved search criteria.


Constructor Summary
SavedSearchCriteria(String name, SearchCriteria criteria, User user)
          Initiated by the class saving the criteria into the db.
SavedSearchCriteria(String id, String name, ISearchSaveRepository repository)
          Initiated by a a method that know the repository object so that the searchCriteria can be fetched later on from the repository if (Lazy loading of search criteria from repository).
 
Method Summary
 String getCriteria()
          Gets the criteria.
 String getId()
          Gets the id.
 String getName()
          Gets the name.
 SearchCriteria getSearchCriteria()
          Gets the search criteria.
 User getUser()
          Gets the user.
 void setCriteria(String criteria)
          Sets the criteria.
 void setUser(User user)
          Sets the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SavedSearchCriteria

public SavedSearchCriteria(String name,
                           SearchCriteria criteria,
                           User user)
Initiated by the class saving the criteria into the db.

Parameters:
name - the name
criteria - the criteria

SavedSearchCriteria

public SavedSearchCriteria(String id,
                           String name,
                           ISearchSaveRepository repository)
Initiated by a a method that know the repository object so that the searchCriteria can be fetched later on from the repository if (Lazy loading of search criteria from repository).

Parameters:
id - The id that will be used to get the document from the repository
name - The name associated with the record
repository - to use for fetching the the criteria when getSearchCriteria is called
Method Detail

getCriteria

public String getCriteria()
Gets the criteria. May be xml criteria or rest url criteria

Returns:
the criteria (trimmed, never null)

setCriteria

public void setCriteria(String criteria)
Sets the criteria.

Parameters:
criteria - the new criteria

getUser

public User getUser()
Gets the user.

Returns:
the user

setUser

public void setUser(User user)
Sets the user.

Parameters:
user - the new user

getId

public String getId()
Gets the id.

Returns:
the id (never null)

getName

public String getName()
Gets the name.

Returns:
the name (never null)

getSearchCriteria

public SearchCriteria getSearchCriteria()
                                 throws SearchException
Gets the search criteria.

Returns:
the search criteria
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.