Making all the implementations of DeviceManagerService interface compatible with the changes introduced into the same

revert-dabc3590
prabathabey 10 years ago
parent 983ca1562f
commit ef95ac4621

@ -17,6 +17,7 @@
package org.wso2.carbon.device.mgt.mobile.impl.android; package org.wso2.carbon.device.mgt.mobile.impl.android;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.DeviceManagementException; import org.wso2.carbon.device.mgt.common.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService; import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService;
@ -44,42 +45,39 @@ public class AndroidDeviceManagerService implements DeviceManagerService {
} }
@Override @Override
public void disEnrollDevice(String type, String deviceId) public void disenrollDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException {
} }
@Override @Override
public boolean isRegistered(String type, String deviceId) public boolean isRegistered(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return false;
return false; }
}
@Override @Override
public boolean isActive(String type, String deviceId) public boolean isActive(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return false;
return false; }
}
@Override @Override
public void setActive(boolean status) throws DeviceManagementException { public void setActive(boolean status) throws DeviceManagementException {
} }
@Override @Override
public List<Device> getAllDeviceInfo(String type) throws DeviceManagementException { public List<Device> getAllDevices(String type) throws DeviceManagementException {
return null; return null;
} }
@Override @Override
public Device getDeviceInfo(String type, String deviceId) public Device getDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return null;
return null; }
}
@Override @Override
public void setOwnership(String ownershipType) throws DeviceManagementException { public void setOwnership(DeviceIdentifier deviceId, String ownershipType) throws DeviceManagementException {
}
}
} }

@ -17,6 +17,7 @@
package org.wso2.carbon.device.mgt.mobile.impl.ios; package org.wso2.carbon.device.mgt.mobile.impl.ios;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.DeviceManagementException; import org.wso2.carbon.device.mgt.common.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService; import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService;
@ -44,42 +45,39 @@ public class IOSDeviceManagerService implements DeviceManagerService {
} }
@Override @Override
public void disEnrollDevice(String type, String deviceId) public void disenrollDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException {
} }
@Override @Override
public boolean isRegistered(String type, String deviceId) public boolean isRegistered(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return false;
return false; }
}
@Override @Override
public boolean isActive(String type, String deviceId) public boolean isActive(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return false;
return false; }
}
@Override @Override
public void setActive(boolean status) throws DeviceManagementException { public void setActive(boolean status) throws DeviceManagementException {
} }
@Override @Override
public List<Device> getAllDeviceInfo(String type) throws DeviceManagementException { public List<Device> getAllDevices(String type) throws DeviceManagementException {
return null; return null;
} }
@Override @Override
public Device getDeviceInfo(String type, String deviceId) public Device getDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return null;
return null; }
}
@Override @Override
public void setOwnership(String ownershipType) throws DeviceManagementException { public void setOwnership(DeviceIdentifier deviceId, String ownershipType) throws DeviceManagementException {
}
}
} }

@ -17,6 +17,7 @@
package org.wso2.carbon.device.mgt.mobile.impl.windows; package org.wso2.carbon.device.mgt.mobile.impl.windows;
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.Device;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.DeviceManagementException; import org.wso2.carbon.device.mgt.common.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService; import org.wso2.carbon.device.mgt.common.spi.DeviceManagerService;
@ -44,42 +45,39 @@ public class WindowsDeviceManagerService implements DeviceManagerService {
} }
@Override @Override
public void disEnrollDevice(String type, String deviceId) public void disenrollDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException {
} }
@Override @Override
public boolean isRegistered(String type, String deviceId) public boolean isRegistered(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return false;
return false; }
}
@Override @Override
public boolean isActive(String type, String deviceId) public boolean isActive(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return false;
return false; }
}
@Override @Override
public void setActive(boolean status) throws DeviceManagementException { public void setActive(boolean status) throws DeviceManagementException {
} }
@Override @Override
public List<Device> getAllDeviceInfo(String type) throws DeviceManagementException { public List<Device> getAllDevices(String type) throws DeviceManagementException {
return null; return null;
} }
@Override @Override
public Device getDeviceInfo(String type, String deviceId) public Device getDevice(DeviceIdentifier deviceId) throws DeviceManagementException {
throws DeviceManagementException { return null;
return null; }
}
@Override @Override
public void setOwnership(String ownershipType) throws DeviceManagementException { public void setOwnership(DeviceIdentifier deviceId, String ownershipType) throws DeviceManagementException {
}
}
} }

Loading…
Cancel
Save