|
|
|
@ -235,13 +235,13 @@ public class OperationImpl implements org.wso2.carbon.device.mgt.jaxrs.api.Opera
|
|
|
|
|
@Override
|
|
|
|
|
@GET
|
|
|
|
|
@Path("activity/{id}")
|
|
|
|
|
public Response getActivity(@PathParam("type") String type, @PathParam("id") String id)
|
|
|
|
|
public Response getActivity(@PathParam("id") String id)
|
|
|
|
|
throws MDMAPIException {
|
|
|
|
|
org.wso2.carbon.device.mgt.common.operation.mgt.Operation operation;
|
|
|
|
|
DeviceManagementProviderService dmService;
|
|
|
|
|
try {
|
|
|
|
|
dmService = DeviceMgtAPIUtils.getDeviceManagementService();
|
|
|
|
|
operation = dmService.getOperationByActivityId(type, id);
|
|
|
|
|
operation = dmService.getOperationByActivityId(id);
|
|
|
|
|
} catch (OperationManagementException e) {
|
|
|
|
|
String msg = "Error occurred while fetching the activity for the supplied id.";
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|