com.ibm.commerce.location.facade.server.commands

Class FetchPointOfInterestCmdImplExtended

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void performExecute()
      This method intercepts the usual performExecute() processing to handle proximity based queries.
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute, isReadyToCallExecute, reset
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Constructor Detail

      • FetchPointOfInterestCmdImplExtended

        public FetchPointOfInterestCmdImplExtended()
        This method is the default constructor. It delegates to the parent class to fetch the Location activities.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method intercepts the usual performExecute() processing to handle proximity based queries. The queries are signalled by the presence of an Xpath parameter of form "operation=getByProximity". If such a parameter is found the query is answered by direct inspection of a cache maintained by the PointOfInterestDataObjectCacheManager. The particular cache that is examined is the one matching the given storeID (the PointOfInterestDataObjectCacheManager can maintain multiple caches in the event that the server is operating over multiple storeID's).

        Additional parameters are:

        • storeId Identifier of the store across which all points of interest are searched.
        • latitude Latitude of the reference point, expressed in degrees.
        • longitude Longitude of the reference point, expressed in degrees.
        • poiType Type of the POI to constain the results to, e.g. "store" -- if this value is null, points of interest of any type are considered.
        • dataLanguageIds Comma seperated list of language IDs indicating the language(s) for which the PointOfInterestDescriptionType children of the Description member are to be populated.
        • accessProfile Access profile, which determines the level of detail included in the returned point of interest data object.

        If the "operation" parameter is not present or is set to a value other than "getByProximity" then the processing of the Fetch command proceeds normally, by invocation of the performExecute() method on the base class.

        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractFetchNounUsingBusinessObjectMediatorCmdImpl
        Throws:
        java.lang.Exception - An exception was thrown while invoking the business object manager to execute the request.