|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.gpt.framework.jsf.BaseActionListener com.esri.gpt.control.search.SearchController
public class SearchController
The Class SearchController. Controller for search operations. To be used in JSF scope.
Constructor Summary | |
---|---|
SearchController()
Default constructor. |
Method Summary | |
---|---|
protected void |
doSearch(int page,
boolean doPrefetch)
Do search. |
HtmlPanelGroup |
getDetailsPanelGroup()
Gets the bound HtmlPanelGroup for the details page panel. |
String |
getDisplayResultsStyle()
Gets the style attribute for the display results page. |
protected String |
getEventType(ActionEvent event)
Gets the event type. |
String |
getExpandResultCheckboxStyle()
Gets the style attribute for the expand result check-box. |
String |
getExpandResultContentStyle()
Gets the style attribute for the content panel of a result record. |
String |
getMetadataText(String uuid)
Gets the metadata text. |
String |
getMetadataText(String uuid,
String catalogUri)
Gets the metadata text. |
String |
getResourceUrl()
Gets resource URL. |
protected String |
getRestSearchRequestUrl(String format)
Gets the rest search request url. |
String |
getRestSearchRequestUrlAtom()
Gets the rest search request url atom. |
String |
getRestSearchRequestUrlGeorss()
Gets the rest search request url georss. |
String |
getRestSearchRequestUrlHtml()
Gets the rest search request url html. |
String |
getRestSearchRequestUrlHtmlFragment()
Gets the rest search request url html fragment. |
String |
getRestSearchRequestUrlHtmlResultsJsf()
Gets the rest search request url html results jsf. |
String |
getRestSearchRequestUrlJson()
Gets the rest search request url json. |
String |
getRestSearchRequestUrlKml()
Gets the rest search request url kml. |
List<SelectItem> |
getSavedSearches()
Gets the collection of saved searches for this user. |
String |
getSavedSearchesPanelStyle()
Deprecated. since version 1 |
String |
getSaveSearchStyle()
Gets the style attribute for the save search control. |
SearchCriteria |
getSearchCriteria()
Gets the search criteria. |
protected ASearchEngine |
getSearchDao()
Gets the search dao. |
SearchEvents |
getSearchEvent()
Gets the search event. |
SearchResult |
getSearchResult()
Gets the search result. |
boolean |
getWasSearched()
Gets the flag indicating whether or not a search was performed. |
void |
prepareView()
Fired at the start of the view phase for the search page. |
String |
processRequestParams()
Does process request parameters. |
protected void |
processSearchActions(ActionEvent event,
RequestContext context)
ActionListener method |
void |
processSubAction(ActionEvent event,
RequestContext context)
Main actionListener method for this class. |
void |
setDetailsPanelGroup(HtmlPanelGroup htmlPanelGroup)
Sets the bound HtmlPanelGroup for the details page panel. |
void |
setResourceUrl(String resourceUrl)
Sets resource URL. |
void |
setSavedSearchesPanelStyle(String style)
Deprecated. since version 1 |
void |
setSearchCriteria(SearchCriteria searchCriteria)
Sets the search criteria. |
void |
setSearchResult(SearchResult searchResult)
Sets the search result. |
void |
setWasSearched(boolean wasSearched)
Sets the flag indicating whether or not a search was performed. |
Methods inherited from class com.esri.gpt.framework.jsf.BaseActionListener |
---|
assertLoggedIn, authorizeAction, extractMessageBroker, extractRequestContext, getContextBroker, getKey, getLogger, getNavigationOutcome, getPrepareView, getSecurityRoles, getSecurityRoleSet, handleException, onExecutionPhaseCompleted, onExecutionPhaseStarted, onPrepareView, onPrepareViewCompleted, onPrepareViewStarted, processAction, setKey, setNavigationOutcome, setPrepareView, setSecurityRoles |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SearchController()
Method Detail |
---|
public HtmlPanelGroup getDetailsPanelGroup()
public void setDetailsPanelGroup(HtmlPanelGroup htmlPanelGroup)
htmlPanelGroup
- the bound HtmlPanelGrouppublic String getResourceUrl()
public void setResourceUrl(String resourceUrl)
resourceUrl
- resource URLpublic String getDisplayResultsStyle()
public String getExpandResultCheckboxStyle()
public String getExpandResultContentStyle()
public List<SelectItem> getSavedSearches()
public String getSavedSearchesPanelStyle()
public void setSavedSearchesPanelStyle(String style)
style
- the stylepublic String getSaveSearchStyle()
public SearchCriteria getSearchCriteria()
public void setSearchCriteria(SearchCriteria searchCriteria)
searchCriteria
- the new search criteriapublic SearchEvents getSearchEvent()
public SearchResult getSearchResult()
public void setSearchResult(SearchResult searchResult)
searchResult
- the new search resultpublic boolean getWasSearched()
public void setWasSearched(boolean wasSearched)
wasSearched
- true if a search was performedpublic void prepareView()
public void processSubAction(ActionEvent event, RequestContext context) throws AbortProcessingException, Exception
processSubAction
in class BaseActionListener
event
- The event informationcontext
- Request Context Information
AbortProcessingException
- Exception on error
Exception
- Exception on errorpublic String processRequestParams()
protected void processSearchActions(ActionEvent event, RequestContext context) throws AbortProcessingException, Exception
event
- The event informationcontext
- Request Context Information
AbortProcessingException
- Exception on error
Exception
- Exception on errorprotected String getEventType(ActionEvent event)
event
- the event
protected void doSearch(int page, boolean doPrefetch) throws SearchException
page
- the page number (if page <= 0, last page in session will be used)doPrefetch
- the do prefetch
SearchException
- the search exceptionpublic String getMetadataText(String uuid) throws SearchException
uuid
- the uuid
SearchException
- rethrows getMetadataText(uuid, null)public String getMetadataText(String uuid, String catalogUri) throws SearchException
uuid
- the uuidcatalogUri
- the catalog uri
SearchException
- the search exceptionprotected ASearchEngine getSearchDao() throws SearchException
SearchException
- the search exceptionpublic String getRestSearchRequestUrlAtom()
public String getRestSearchRequestUrlGeorss()
public String getRestSearchRequestUrlJson()
public String getRestSearchRequestUrlHtml()
public String getRestSearchRequestUrlHtmlFragment()
public String getRestSearchRequestUrlHtmlResultsJsf()
public String getRestSearchRequestUrlKml()
protected String getRestSearchRequestUrl(String format)
format
- the format
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |