Esri Geoportal Server
1.0

com.esri.gpt.catalog.search
Interface IMapViewer

All Known Implementing Classes:
MapViewerFlex

public interface IMapViewer

The Interface IMapViewer. Inherit this class to put a new map viewer. Class will be manipulated by MapViewerFactory.


Method Summary
 boolean canHandleResource()
          Can handle resource.
 String readAddToMapUrl()
          Read add to map url.
 String readOpenDefaultMapViewerUrl()
          Returns string that opens default mapviewer (possibly null).
 String readTarget()
          Reads the link target for html e.g.
 void setMapViewerConfigs(MapViewerConfigs mapViewerConfigs)
          Sets the map viewer configs.
 void setRequestContext(RequestContext context)
          Sets the request context.
 void setResourceUri(String resourceUri, String hintServiceType)
          Sets the resource uri.
 void setSearchResultRecord(SearchResultRecord searchResultRecord)
          Sets the search result record.
 

Method Detail

setMapViewerConfigs

void setMapViewerConfigs(MapViewerConfigs mapViewerConfigs)
Sets the map viewer configs. Will be set by factory.

Parameters:
mapViewerConfigs - the new map viewer configs

setResourceUri

void setResourceUri(String resourceUri,
                    String hintServiceType)
Sets the resource uri. Will be set by factory.

Parameters:
resourceUri - the resource uri
hintServiceType - the hint service type (could be null, could be one of ResourceLinkbuilder.)

setSearchResultRecord

void setSearchResultRecord(SearchResultRecord searchResultRecord)
Sets the search result record. Will be set by factory.

Parameters:
searchResultRecord - the new search result record

setRequestContext

void setRequestContext(RequestContext context)
Sets the request context.

Parameters:
context - the new request context

canHandleResource

boolean canHandleResource()
Can handle resource. Parses the resoureuri or uses the hintServiceType to wee if url can be supported

Returns:
the boolean

readAddToMapUrl

String readAddToMapUrl()
Read add to map url. Generates the add to map url.

Returns:
the string (could be null or empty)

readTarget

String readTarget()
Reads the link target for html e.g. _blank.

Returns:
the string

readOpenDefaultMapViewerUrl

String readOpenDefaultMapViewerUrl()
Returns string that opens default mapviewer (possibly null). Currently GUI assumes this will be jscript and puts the value in onclick.

Returns:
the string

Esri Geoportal Server
1.0

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