These methods discussed in this section implement the shopper help functionality that connects IUA and ASA. ASA listens to the events from these methods to update the repository that is tracks the shopper’s help requests. Alternately, ASA can use the Mobile.DCS-CSR module to extend BeaconManager and these methods can record the information directly.

BeaconManager:requestHelp

URL

/atg/commerce/locations/BeaconManagerActor/requestHelp

Method

/atg/projects/store/mobile/ibeacon/BeaconManager:requestHelp

Inputs

deviceUID: String, uuid:String, major:String, minor:String, Map:params

Output

None

Description

Notifies the system that the given device has initiated a help request and the given beacon UUID/major/minor is the one last seen at the time of the request. A Map of form parameters such as profileId and shopper name can also be included in the params parameter.

BeaconManager:cancelHelp

URL

/atg/commerce/locations/BeaconManagerActor/cancelHelp

Method

/atg/projects/store/mobile/ibeacon/BeaconManager:cancelHelp

Inputs

deviceUID: String

Output

None

Description

Notifies the systems the given device has cancelled the help request, either user or time-out initiated.

DeviceManager:createOrUpdateDevice

URL

/atg/commerce/device/DeviceManagerActor/createOrUpdateDevice

Method

/atg/projects/store/mobile/device/DeviceManager:createOrUpdateDevice

Inputs

uniqueId:String, pushToken:String, os:String, osVersion:String, app:String, appVersion:String

Output

RepositoryItem (device)

Description

This method records information about the device in the device repository. If the device for the given uniqueId does not exist it is created. If it exists, any parameters update the existing record.

DeviceManager:setDevicePushToken

URL

/atg/commerce/device/DeviceManagerActor/setDevicePushToken

Method

/atg/projects/store/mobile/device/DeviceManager:setDevicePushToken

Inputs

uniqueId:String, pushToken:String,

Output

RepositoryItem (device)

Description

This method sets the device push token for the given device. The push token is the token needed by services that want to send a push notification to a given device.


Copyright © 1997, 2018 Oracle and/or its affiliates. All rights reserved. Legal Notices