From 6e8559545df2f3484c3856752bfa1c75209ca222 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Thu, 4 Dec 2014 10:06:41 +0530 Subject: [PATCH] Cleaning up SPIs --- .../mgt/common/DeviceManagementConstants.java | 1 + .../mgt/common/spi/DeviceManagerService.java | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/DeviceManagementConstants.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/DeviceManagementConstants.java index 2493dd3cca..4af0069f6c 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/DeviceManagementConstants.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/DeviceManagementConstants.java @@ -16,4 +16,5 @@ package org.wso2.carbon.device.mgt.common; public final class DeviceManagementConstants { + } diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java index 18b819706e..c8690f8208 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/spi/DeviceManagerService.java @@ -28,22 +28,22 @@ public interface DeviceManagerService { /* Method corresponding to enrolling a particular device of type mobile, IoT, etc within CDM */ - void enrolDevice(); + void enrolDevice(Device device); - void modifyEnrolment(); + void modifyEnrolment(Device device); - void disEnrollDevice(); + void disEnrollDevice(String type, String deviceId); boolean isRegistered(); boolean isActive(); - boolean setActive(); + void setActive(boolean status); - List getAllDeviceInfo(); + List getAllDeviceInfo(String type); - Device getDeviceInfo(); + Device getDeviceInfo(String type, String deviceId); - void setOwnership(); + void setOwnership(String ownershipType); }