|
|
@ -18,20 +18,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
package org.wso2.carbon.device.mgt.mobile.windows.api.services;
|
|
|
|
package org.wso2.carbon.device.mgt.mobile.windows.api.services;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
|
|
|
import org.wso2.carbon.apimgt.annotations.api.API;
|
|
|
|
import org.wso2.carbon.device.mgt.common.Device;
|
|
|
|
import org.wso2.carbon.device.mgt.common.Device;
|
|
|
|
import org.wso2.carbon.device.mgt.common.license.mgt.License;
|
|
|
|
import org.wso2.carbon.device.mgt.common.license.mgt.License;
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsConfigurationException;
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsConfigurationException;
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.util.Message;
|
|
|
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.util.Message;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.jws.WebService;
|
|
|
|
import javax.jws.WebService;
|
|
|
|
import javax.ws.rs.*;
|
|
|
|
import javax.ws.rs.Consumes;
|
|
|
|
|
|
|
|
import javax.ws.rs.GET;
|
|
|
|
|
|
|
|
import javax.ws.rs.PUT;
|
|
|
|
|
|
|
|
import javax.ws.rs.Path;
|
|
|
|
|
|
|
|
import javax.ws.rs.PathParam;
|
|
|
|
|
|
|
|
import javax.ws.rs.Produces;
|
|
|
|
import javax.ws.rs.core.MediaType;
|
|
|
|
import javax.ws.rs.core.MediaType;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Windows Device Management REST-API implementation.
|
|
|
|
* Windows Device Management REST-API implementation. All end points supports JSON, XMl with content negotiation.
|
|
|
|
* All end points supports JSON, XMl with content negotiation.
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Api(value = "Windows Device Management",
|
|
|
|
|
|
|
|
description = "This carries all the resources related to Windows device management functionalities")
|
|
|
|
|
|
|
|
@API(name = "Windows Device Management", version = "1.0.0",
|
|
|
|
|
|
|
|
context = "api/device-mgt/windows/v1.0/devices",
|
|
|
|
|
|
|
|
tags = {"devicemgt_windows"})
|
|
|
|
@WebService
|
|
|
|
@WebService
|
|
|
|
@Path("/devices")
|
|
|
|
@Path("/devices")
|
|
|
|
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
|
|
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
|
|
|
@ -61,14 +72,15 @@ public interface DeviceManagementService {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Update Windows device details of given device id.
|
|
|
|
* Update Windows device details of given device id.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param deviceId Device Id.
|
|
|
|
* @param deviceId Device Id.
|
|
|
|
* @param device Device details to be updated.
|
|
|
|
* @param device Device details to be updated.
|
|
|
|
* @return Returns the message whether device update or not.
|
|
|
|
* @return Returns the message whether device update or not.
|
|
|
|
* @throws WindowsConfigurationException occurred while updating the Device Info.
|
|
|
|
* @throws WindowsConfigurationException occurred while updating the Device Info.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@PUT
|
|
|
|
@PUT
|
|
|
|
@Path("{id}")
|
|
|
|
@Path("{id}")
|
|
|
|
Message updateDevice(@PathParam("id") String deviceId, Device device) throws WindowsConfigurationException;
|
|
|
|
Message updateDevice(@PathParam("id") String deviceId, Device device) throws WindowsConfigurationException;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Fetch the Licence agreement for specific windows platform.
|
|
|
|
* Fetch the Licence agreement for specific windows platform.
|
|
|
|
*
|
|
|
|
*
|
|
|
|