|
|
@ -69,14 +69,14 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/restart-browser")
|
|
|
|
@Path("/restart-browser")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_BROWSERRESTART", name = "Restart Browser", type = "operation",
|
|
|
|
@Feature(code = "restart-browser", name = "Restart Browser", type="operation",
|
|
|
|
description = "Restart Browser in Digital Display")
|
|
|
|
description = "Restart Browser in Digital Display")
|
|
|
|
public void restartBrowser(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void restartBrowser(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("sessionId") String sessionId,
|
|
|
|
@HeaderParam("sessionId") String sessionId,
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
|
|
|
|
|
|
|
|
|
log.info("Restrat Browser : " + deviceId);
|
|
|
|
log.info("Restart Browser : " + deviceId);
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
sendCommandViaMQTT(owner, deviceId, sessionId + "::" + DigitalDisplayConstants.RESTART_BROWSER_CONSTANT + ":", "");
|
|
|
|
sendCommandViaMQTT(owner, deviceId, sessionId + "::" + DigitalDisplayConstants.RESTART_BROWSER_CONSTANT + ":", "");
|
|
|
@ -102,7 +102,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/close-browser")
|
|
|
|
@Path("/close-browser")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_BROWSERCLOSE", name = "Close Browser", type = "operation",
|
|
|
|
@Feature(code = "close-browser", name = "Close Browser", type="operation",
|
|
|
|
description = "Close Browser in Digital Display")
|
|
|
|
description = "Close Browser in Digital Display")
|
|
|
|
public void closeBrowser(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void closeBrowser(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
@ -134,8 +134,8 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/terminate-display")
|
|
|
|
@Path("/terminate-display")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_TERMINATE", name = "Terminate Display", type = "operation",
|
|
|
|
@Feature(code = "terminate-display", name = "Terminate Display", type="operation",
|
|
|
|
description = "Terminate all running processe in Digital Display")
|
|
|
|
description = "Terminate all running process in Digital Display")
|
|
|
|
public void terminateDisplay(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void terminateDisplay(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("sessionId") String sessionId,
|
|
|
|
@HeaderParam("sessionId") String sessionId,
|
|
|
@ -166,14 +166,14 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/restart-display")
|
|
|
|
@Path("/restart-display")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_RESTART", name = "Restart Display", type = "operation",
|
|
|
|
@Feature(code = "restart-display", name = "Restart Display", type="operation",
|
|
|
|
description = "Restart Digital Display")
|
|
|
|
description = "Restart Digital Display")
|
|
|
|
public void restartDisplay(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void restartDisplay(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("sessionId") String sessionId,
|
|
|
|
@HeaderParam("sessionId") String sessionId,
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
|
@Context HttpServletResponse response) {
|
|
|
|
|
|
|
|
|
|
|
|
log.info("Restrat Display : " + deviceId);
|
|
|
|
log.info("Restart Display : " + deviceId);
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
sendCommandViaMQTT(owner, deviceId, sessionId + "::" + DigitalDisplayConstants.RESTART_DISPLAY_CONSTANT + ":", "");
|
|
|
|
sendCommandViaMQTT(owner, deviceId, sessionId + "::" + DigitalDisplayConstants.RESTART_DISPLAY_CONSTANT + ":", "");
|
|
|
@ -201,7 +201,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/edit-content")
|
|
|
|
@Path("/edit-content")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_EDITCONTENT", name = "Edit Content", type = "operation",
|
|
|
|
@Feature(code = "edit-content", name = "Edit Content", type="operation",
|
|
|
|
description = "Search through the sequence and edit requested resource in Digital Display")
|
|
|
|
description = "Search through the sequence and edit requested resource in Digital Display")
|
|
|
|
public void editContent(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void editContent(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
@ -240,7 +240,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/add-resource")
|
|
|
|
@Path("/add-resource")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_ADDRESOURCE", name = "Add Resource", type = "operation",
|
|
|
|
@Feature(code = "add-resource", name = "Add Resource", type="operation",
|
|
|
|
description = "Add new resource end to the existing sequence in Digital Display")
|
|
|
|
description = "Add new resource end to the existing sequence in Digital Display")
|
|
|
|
public void addNewResource(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void addNewResource(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
@ -280,7 +280,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/add-resource-before")
|
|
|
|
@Path("/add-resource-before")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_ADDRESOURCE_BEFORE", name = "Add Resource Before", type = "operation",
|
|
|
|
@Feature(code = "add-resource-before", name = "Add Resource Before", type="operation",
|
|
|
|
description = "Add new resource to sequence before given page no. in Digital Display")
|
|
|
|
description = "Add new resource to sequence before given page no. in Digital Display")
|
|
|
|
public void addNewResourceBefore(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void addNewResourceBefore(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
@ -323,7 +323,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/add-resource-next")
|
|
|
|
@Path("/add-resource-next")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_ADDRESOURCE_NEXT", name = "Add Resource Next", type = "operation",
|
|
|
|
@Feature(code = "add-resource-next", name = "Add Resource Next", type="operation",
|
|
|
|
description = "Add new resource to sequence after given page in Digital Display")
|
|
|
|
description = "Add new resource to sequence after given page in Digital Display")
|
|
|
|
public void addNewResourceAfter(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void addNewResourceAfter(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
@ -362,7 +362,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/remove-resource")
|
|
|
|
@Path("/remove-resource")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_REMOVE_RESOURCE", name = "Remove Resource", type = "operation",
|
|
|
|
@Feature(code = "remove-resource", name = "Remove Resource", type="operation",
|
|
|
|
description = "Delete a resource from sequence in Digital Display")
|
|
|
|
description = "Delete a resource from sequence in Digital Display")
|
|
|
|
public void removeResource(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void removeResource(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
@ -397,7 +397,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/remove-directory")
|
|
|
|
@Path("/remove-directory")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_REMOVE_DIR", name = "Remove Directory", type = "operation",
|
|
|
|
@Feature(code = "remove-directory", name = "Remove Directory", type="operation",
|
|
|
|
description = "Remove directory and whole content in Digital Display")
|
|
|
|
description = "Remove directory and whole content in Digital Display")
|
|
|
|
public void removeDirectory(@FormParam("directory-name") String directoryName,
|
|
|
|
public void removeDirectory(@FormParam("directory-name") String directoryName,
|
|
|
|
@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("deviceId") String deviceId,
|
|
|
@ -432,7 +432,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/remove-content")
|
|
|
|
@Path("/remove-content")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_REMOVE_CONTENT", name = "Remove Content", type = "operation",
|
|
|
|
@Feature(code = "remove-content", name = "Remove Content", type="operation",
|
|
|
|
description = "Remove content from www folder in Digital Display")
|
|
|
|
description = "Remove content from www folder in Digital Display")
|
|
|
|
public void removeContent(@FormParam("directory-name") String directoryName,
|
|
|
|
public void removeContent(@FormParam("directory-name") String directoryName,
|
|
|
|
@FormParam("content") String content,
|
|
|
|
@FormParam("content") String content,
|
|
|
@ -466,7 +466,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/shutdown-display")
|
|
|
|
@Path("/shutdown-display")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_SHUTDOWN", name = "Shut Down", type = "operation",
|
|
|
|
@Feature(code = "shutdown-display", name = "Shut Down", type="operation",
|
|
|
|
description = "Stop specific display in Digital Display")
|
|
|
|
description = "Stop specific display in Digital Display")
|
|
|
|
public void shutDownDisplay(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void shutDownDisplay(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
@ -498,7 +498,7 @@ public class DigitalDisplayControllerService {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@Path("/get-status")
|
|
|
|
@Path("/get-status")
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Feature(code = "DISPLAY_GET_STATUS", name = "Get Status", type = "operation",
|
|
|
|
@Feature(code = "get-status", name = "Get Status", type="operation",
|
|
|
|
description = "Check specific digital display power ON of OFF")
|
|
|
|
description = "Check specific digital display power ON of OFF")
|
|
|
|
public void getStatus(@HeaderParam("deviceId") String deviceId,
|
|
|
|
public void getStatus(@HeaderParam("deviceId") String deviceId,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|
@HeaderParam("owner") String owner,
|
|
|
|