From ee250d25c596693a672830fa7b8fc19ed8c03813 Mon Sep 17 00:00:00 2001 From: NuwanSameera Date: Fri, 11 Mar 2016 19:16:09 +0530 Subject: [PATCH 1/3] Add permissions.xml to connected-cup device type. --- .../component/agent/src/main/webapp/index.jsp | 18 ++-- .../ConnectedCupControllerService.java | 93 ++++++++----------- .../controller/service/dto/DeviceJSON.java | 20 ++-- .../exception/ConnectedCupException.java | 2 + .../transport/ConnectedCupMQTTConnector.java | 77 ++++----------- .../util/ConnectedCupServiceUtils.java | 57 ++++-------- .../src/main/webapp/META-INF/permissions.xml | 52 +++++++++++ .../service/ConnectedCupManagerService.java | 92 ++++++------------ .../manager/service/util/APIUtil.java | 36 +++++++ .../src/main/webapp/META-INF/permissions.xml | 59 ++++++++++++ .../src/main/webapp/WEB-INF/cxf-servlet.xml | 2 +- .../public/js/download.js | 71 +++++++------- .../api/CurrentSensorControllerService.java | 12 +-- .../type-view.hbs | 2 +- .../main/resources/configs/currentsensor.json | 6 +- .../controller/api/ControllerService.java | 41 +++++--- 16 files changed, 340 insertions(+), 300 deletions(-) create mode 100644 modules/samples/connectedcup/component/controller/src/main/webapp/META-INF/permissions.xml create mode 100644 modules/samples/connectedcup/component/manager/src/main/java/org/coffeeking/manager/service/util/APIUtil.java create mode 100644 modules/samples/connectedcup/component/manager/src/main/webapp/META-INF/permissions.xml diff --git a/modules/samples/connectedcup/component/agent/src/main/webapp/index.jsp b/modules/samples/connectedcup/component/agent/src/main/webapp/index.jsp index 531adece..fac96fd3 100644 --- a/modules/samples/connectedcup/component/agent/src/main/webapp/index.jsp +++ b/modules/samples/connectedcup/component/agent/src/main/webapp/index.jsp @@ -95,35 +95,33 @@