public class GeoLocatorDroplet extends DynamoServlet
 
 <DROPLET bean="/atg/commerce/locations/GeoLocatorDroplet">
  <PARAM NAME="latitude" VALUE="param:latitude">
  <PARAM NAME="longitude" VALUE="param:longitde">
  <PARAM NAME="distance" VALUE="param:distance"/>
  <param name="elementName" value="items">
  <OPARAM NAME="output">
    <valueof param="items"/>
  </OPARAM>
  <OPARAM NAME="error"/>
    Error
  </OPARAM>
 </DROPLET>
 
 | Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION  | 
mAllowCleanupRequest, mParametersSERVLET_INFO_KEYSERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
GeoLocatorDroplet()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.util.Collection<java.lang.String> | 
filterSiteList(java.util.Collection<java.lang.String> pSites)
Filters the site array used in generateSiteFilter(). 
 | 
protected java.util.Collection<java.lang.String> | 
generateSiteFilter(java.lang.String pScope)
Generates the ContextFilteringRules to filter the query based on the sites. 
 | 
CoordinateManager | 
getCoordinateManager()  | 
java.lang.String | 
getDefaultItemType()  | 
java.util.Locale | 
getDefaultLocale()
Returns property DefaultLocale. 
 | 
double | 
getDistance()  | 
GeoLocatorService | 
getGeoLocatorService()  | 
protected RepositoryItem[] | 
getItems(DynamoHttpServletRequest pRequest,
        Coordinate pCoordinate,
        double pDistance,
        java.util.Collection<java.lang.String> pSiteIds)
Gets the items for this droplet to return based on input location. 
 | 
protected RepositoryItem[] | 
getItems(DynamoHttpServletRequest pRequest,
        RepositoryItem pItem,
        double pDistance,
        java.util.Collection<java.lang.String> pSiteIds)
Gets the items for this droplet to return based on input location. 
 | 
protected java.lang.String | 
getItemType(DynamoHttpServletRequest pRequest)
Gets the item type to search for. 
 | 
protected java.util.Locale | 
getLocale(DynamoHttpServletRequest pRequest)
Gets the locale to use. 
 | 
protected Coordinate | 
getLocation(DynamoHttpServletRequest pRequest)
Gets the location to search from. 
 | 
double | 
getMaximumDistance()  | 
SiteGroupManager | 
getSiteGroupManager()
Returns the SiteGroupManager component 
 | 
SiteManager | 
getSiteManager()
Gets the SiteManager 
 | 
java.lang.String | 
getSiteScope()
gets the property siteScope 
 | 
atg.commerce.units.UnitOfMeasureTools | 
getUnitOfMeasureTools()
Gets the unit of measure tools used for UOM conversions 
 | 
boolean | 
isIncludeDisabledSites()
Returns theiIncludeDisabledSites property. 
 | 
boolean | 
isIncludeInactiveSites()
Whether or not the site filter should include inactive sites. 
 | 
void | 
service(DynamoHttpServletRequest pRequest,
       DynamoHttpServletResponse pResponse)
This method provides the default implementation of service,
 by dispatching to conventionally named methods which begin
 with "do". 
 | 
void | 
setCoordinateManager(CoordinateManager pCoordinateManager)  | 
void | 
setDefaultItemType(java.lang.String pDefaultItemType)  | 
void | 
setDefaultLocale(java.util.Locale pDefaultLocale)
Sets property DefaultLocale 
 | 
void | 
setDistance(double pDistance)  | 
void | 
setGeoLocatorService(GeoLocatorService pGeoLocatorService)  | 
void | 
setIncludeDisabledSites(boolean pIncludeDisabledSites)
Sets the includeDisabledSites property. 
 | 
void | 
setIncludeInactiveSites(boolean pIncludeInactiveSites)
Sets whether or not the site filter should include inactive sites. 
 | 
void | 
setMaximumDistance(double pMaximumDistance)  | 
void | 
setSiteGroupManager(SiteGroupManager pSiteGroupManager)
Sets the SiteGroupManager component 
 | 
void | 
setSiteManager(SiteManager pSiteManager)  | 
void | 
setSiteScope(java.lang.String pSiteScope)
sets the property siteScope. 
 | 
void | 
setUnitOfMeasureTools(atg.commerce.units.UnitOfMeasureTools pUnitOfMeasureTools)
Sets the unit of measure tools used for UOM conversions 
 | 
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameterdestroy, getServletConfig, getServletInfo, setServletInfogetAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setDefaultLocale(java.util.Locale pDefaultLocale)
public java.util.Locale getDefaultLocale()
public void setGeoLocatorService(GeoLocatorService pGeoLocatorService)
pGeoLocatorService - the geoLocatorService to setpublic GeoLocatorService getGeoLocatorService()
public double getMaximumDistance()
public void setMaximumDistance(double pMaximumDistance)
pMaximumDistance - sets the maximum distancepublic double getDistance()
public void setDistance(double pDistance)
distance - the mDistance to setpublic CoordinateManager getCoordinateManager()
public void setCoordinateManager(CoordinateManager pCoordinateManager)
pCoordinateManager - the coordinateManager to setpublic void setUnitOfMeasureTools(atg.commerce.units.UnitOfMeasureTools pUnitOfMeasureTools)
pUnitOfMeasureTools - public atg.commerce.units.UnitOfMeasureTools getUnitOfMeasureTools()
public java.lang.String getDefaultItemType()
public void setDefaultItemType(java.lang.String pDefaultItemType)
pDefaultItemType - the item type to setpublic void setSiteScope(java.lang.String pSiteScope)
public java.lang.String getSiteScope()
public void setSiteGroupManager(SiteGroupManager pSiteGroupManager)
pSiteGroupManager - the SiteGroupManager component. Usually /atg/multisite/SiteGroupManagerpublic SiteGroupManager getSiteGroupManager()
public SiteManager getSiteManager()
public void setSiteManager(SiteManager pSiteManager)
pSiteManager - the siteManager to setpublic boolean isIncludeInactiveSites()
public void setIncludeInactiveSites(boolean pIncludeInactiveSites)
pIncludeInactiveSites - the includeInactiveSites to setpublic boolean isIncludeDisabledSites()
public void setIncludeDisabledSites(boolean pIncludeDisabledSites)
pIncludeDisabledSites - whether or not to include disabled sites in
          the matching processpublic void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
DynamoServletservice in class DynamoServletpRequest - a DynamoHttpServletRequest valuepResponse - a DynamoHttpServletResponse valuejavax.servlet.ServletException - if an error occursjava.io.IOException - if an error occursprotected Coordinate getLocation(DynamoHttpServletRequest pRequest)
pRequest - the requestprotected RepositoryItem[] getItems(DynamoHttpServletRequest pRequest, Coordinate pCoordinate, double pDistance, java.util.Collection<java.lang.String> pSiteIds) throws RepositoryException
pRequest - The requestpLatitude - the latitude of the central locationpLongitude - the longitude of the central locationpDistance - the distance radius (in meters) to searchRepositoryExceptionprotected RepositoryItem[] getItems(DynamoHttpServletRequest pRequest, RepositoryItem pItem, double pDistance, java.util.Collection<java.lang.String> pSiteIds) throws RepositoryException
pRequest - The requestpItem - The coordinate item to search frompDistance - the distance radius (in meters) to searchRepositoryExceptionprotected java.lang.String getItemType(DynamoHttpServletRequest pRequest)
pRequest - The requestprotected java.util.Locale getLocale(DynamoHttpServletRequest pRequest)
pRequest - The requestprotected java.util.Collection<java.lang.String> generateSiteFilter(java.lang.String pScope)
protected java.util.Collection<java.lang.String> filterSiteList(java.util.Collection<java.lang.String> pSites)
pSites - The array of site ids