mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
License Manaproduct/modules/mobileservices/agents/android/jax-rs/src/main/java/org/wso2/cdmserver/mobileservices/android/util/AndroidAPIUtils.javagement
This commit is contained in:
parent
5e3ebc141c
commit
b96d561ef0
@ -137,6 +137,7 @@ public class Device {
|
||||
@Produces("text/plain")
|
||||
public String getLicense() {
|
||||
//TODO: need to implement fetch license from core
|
||||
// AndroidAPIUtils.getDeviceManagementService().updateDeviceInfo(device);
|
||||
return "License Agreement";
|
||||
}
|
||||
}
|
||||
|
||||
@ -79,6 +79,8 @@ public class Operation {
|
||||
Message responseMsg = new Message();
|
||||
try {
|
||||
dmService = AndroidAPIUtils.getDeviceManagementService();
|
||||
|
||||
//TODO: need to complete getOperation logic
|
||||
boolean result = dmService.getOperationManager("").addOperation(null, null);
|
||||
if (result) {
|
||||
Response.status(HttpStatus.SC_OK);
|
||||
|
||||
@ -20,6 +20,7 @@ import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.wso2.carbon.context.PrivilegedCarbonContext;
|
||||
import org.wso2.carbon.device.mgt.common.*;
|
||||
import org.wso2.carbon.device.mgt.core.LicenseManager;
|
||||
import org.wso2.carbon.device.mgt.core.service.DeviceManagementService;
|
||||
import org.wso2.carbon.utils.multitenancy.MultitenantConstants;
|
||||
|
||||
@ -56,4 +57,5 @@ public class AndroidAPIUtils {
|
||||
PrivilegedCarbonContext.endTenantFlow();
|
||||
return dmService;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user