public abstract class LocationFacadeClientExtended extends AbstractLocationFacadeClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CREATE_ACTION_CODE
The create action code.
|
protected static java.lang.String | EXPRESSION_LANGUAGE
The expression language
|
Constructor and Description |
---|
LocationFacadeClientExtended()
Creates an instance of the client to communicate with the Location facade.
|
LocationFacadeClientExtended(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
Creates an instance of the client to communicate with the Location facade.
|
Modifier and Type | Method and Description |
---|---|
protected ClientLocationType | buildClientLocation(java.util.Map inpurtParameters)
Builds the ClientLocationType object based on the information found in the specified parameters.
|
protected ClientLocationType | buildClientLocationBase(java.util.Map parameters)
Builds the ClientLocationType object based on the information found in the specified parameters.
|
protected ClientLocationType | buildClientLocationUserData(ClientLocationType clientLocation, java.util.Map parameters)
Builds the UserData of ClientLocationType object based on the information found in the specified parameters.
|
ExpressionType | buildExpressionWithGeolocation(java.util.Map parameters)
This method creates a SelectionCriteriaHelper object with the provided XPath expression and access profile.
|
protected ExpressionType | buildExpressionWithGeolocation(java.lang.String dataLanguageIds, java.lang.String accessProfile, java.lang.String storeId, java.lang.String poiType, java.lang.String latitude, java.lang.String longitude, java.lang.String radius)
This method creates a SelectionCriteriaHelper object with the provided XPath expression and access profile.
|
java.util.Map | createClientLocation(java.util.Map parameters)
Creates a client location based on the input parameters
|
java.util.List | getPointsOfInterestByProximity(java.util.Map<java.lang.String,java.lang.String[]> parameters)
Convenience method for retrieving PointOfInterest nouns given a parameter map.
|
ShowPointOfInterestDataAreaType | getPointsOfInterestByProximity(java.lang.String storeId, java.lang.String poiType, double latitude, double longitude, double radius, java.lang.String dataLanguageIds, java.lang.String accessProfile)
This method returns a list of all PointOfInterestType data objects which are associated with a given store ID and have a give type ("poiType"), which are within a given radius of a given reference point, expressed as (latitude,longitude) pair.
|
protected void | populateClientLocationResponse(java.util.Map response, ClientLocationType clientLocation)
Puts the following information in the response Map if they are available in the input ClientLocationType: clientLocationId: /ClientLocation/clientLocationID
|
protected ClientLocationType | processClientLocation(java.lang.String actionCode, ClientLocationType clientLocation)
Processes a client location.
|
protected java.lang.String[] | resolveParameter(java.util.Map parameters, java.lang.String key)
This method resolves parameters from the input Map.
|
public static final java.lang.String CREATE_ACTION_CODE
protected static final java.lang.String EXPRESSION_LANGUAGE
public LocationFacadeClientExtended()
public LocationFacadeClientExtended(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
public ShowPointOfInterestDataAreaType getPointsOfInterestByProximity(java.lang.String storeId, java.lang.String poiType, double latitude, double longitude, double radius, java.lang.String dataLanguageIds, java.lang.String accessProfile) throws PointOfInterestException
public java.util.List getPointsOfInterestByProximity(java.util.Map<java.lang.String,java.lang.String[]> parameters) throws PointOfInterestException
protected ExpressionType buildExpressionWithGeolocation(java.lang.String dataLanguageIds, java.lang.String accessProfile, java.lang.String storeId, java.lang.String poiType, java.lang.String latitude, java.lang.String longitude, java.lang.String radius)
public ExpressionType buildExpressionWithGeolocation(java.util.Map parameters)
Map parameters = new HashMap(); parameters.put("storeId", new String[] { "10101" }); parameters.put("poiType", new String[] { "Store" }); parameters.put("latitude", new String[] { "43.67300"}); parameters.put("longitude", new String[] { "-79.55400"}); parameters.put("radius", new String[] { "8000"});
public java.util.Map createClientLocation(java.util.Map parameters) throws ClientLocationException
Map parameters = new HashMap(); parameters.put("programId", new String[] { "test" }); parameters.put("status", new String[] { "shopping"); parameters.put("clientType", new String[] { "user" }); parameters.put("clientId", new String[] { "10001" }); parameters.put("personalizationId", new String[] { "1234567890-1" }); parameters.put("sourceType", new String[] { "RFID_sensor"); parameters.put("regionId", new String[] { "Canada" }); parameters.put("zoneId", new String[] { "Safeway.1951" }); parameters.put("latitude", new String[] { "43.67300"}); parameters.put("longitude", new String[] { "-79.55400"}); Map response = client.createClientLocation(parameters); String[] clientLocationId = (String[]) response.get("clientLocationId");
protected void populateClientLocationResponse(java.util.Map response, ClientLocationType clientLocation)
protected ClientLocationType buildClientLocation(java.util.Map inpurtParameters) throws ClientLocationException
protected ClientLocationType buildClientLocationUserData(ClientLocationType clientLocation, java.util.Map parameters) throws ClientLocationException
wc-business-object-mediator.xml
for ClientLocationType.protected ClientLocationType buildClientLocationBase(java.util.Map parameters) throws ClientLocationException
protected ClientLocationType processClientLocation(java.lang.String actionCode, ClientLocationType clientLocation) throws ClientLocationException
protected java.lang.String[] resolveParameter(java.util.Map parameters, java.lang.String key) throws ClientLocationException