mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Merge pull request #871 from rasika/fix-1611
Changing Geo Location Enabling Configuration
This commit is contained in:
commit
0adfde9056
@ -39,7 +39,7 @@ function onRequest(context) {
|
||||
viewObject.anchor = encodeURI(JSON.stringify(anchor));
|
||||
viewObject.locationHistory = stringify(device.content.locationHistory);
|
||||
viewObject.locationEnabled = (device.content.locationHistory.length !== 0);
|
||||
viewObject.geoServicesEnabled = devicemgtProps.serverConfig.operationAnalyticsConfiguration.isEnabled;
|
||||
viewObject.geoServicesEnabled = devicemgtProps.serverConfig.geoLocationConfiguration.enabled;
|
||||
return viewObject;
|
||||
} else {
|
||||
response.sendError(404, "Device Id " + deviceId + " of type " + deviceType + " cannot be found!");
|
||||
|
||||
@ -70,7 +70,7 @@ public class EventReceiverServiceImpl implements EventReceiverService {
|
||||
log.debug("Invoking Android device event logging.");
|
||||
}
|
||||
try {
|
||||
if (!DeviceManagerUtil.isOperationAnalyticsEnabled()) {
|
||||
if (!DeviceManagerUtil.isPublishLocationResponseEnabled()) {
|
||||
return Response.status(Response.Status.ACCEPTED).entity("Event is publishing has not enabled.").build();
|
||||
}
|
||||
DeviceIdentifier deviceIdentifier = new DeviceIdentifier(eventBeanWrapper.getDeviceIdentifier(),
|
||||
|
||||
@ -70,7 +70,7 @@ public class EventReceiverServiceImpl implements EventReceiverService {
|
||||
log.debug("Invoking Android device event logging.");
|
||||
}
|
||||
try {
|
||||
if (!DeviceManagerUtil.isOperationAnalyticsEnabled()) {
|
||||
if (!DeviceManagerUtil.isPublishLocationResponseEnabled()) {
|
||||
return Response.status(Response.Status.ACCEPTED).entity("Event is publishing has not enabled.").build();
|
||||
}
|
||||
DeviceIdentifier deviceIdentifier = new DeviceIdentifier(eventBeanWrapper.getDeviceIdentifier(),
|
||||
|
||||
2
pom.xml
2
pom.xml
@ -1215,7 +1215,7 @@
|
||||
<javax.ws.rs.version>1.1.1</javax.ws.rs.version>
|
||||
|
||||
<!-- Carbon Device Management -->
|
||||
<carbon.devicemgt.version>3.0.207</carbon.devicemgt.version>
|
||||
<carbon.devicemgt.version>3.0.208</carbon.devicemgt.version>
|
||||
<carbon.devicemgt.version.range>[3.0.0, 4.0.0)</carbon.devicemgt.version.range>
|
||||
|
||||
<!-- Carbon App Management -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user