mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixing windows config issues
This commit is contained in:
parent
3dc1418290
commit
fb28a4042f
@ -209,9 +209,9 @@ public interface ConfigurationMgtService {
|
|||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("license")
|
@Path("license")
|
||||||
@Produces(MediaType.TEXT_PLAIN)
|
@Produces(MediaType.APPLICATION_JSON)
|
||||||
@ApiOperation(
|
@ApiOperation(
|
||||||
produces = MediaType.TEXT_PLAIN,
|
produces = MediaType.APPLICATION_JSON,
|
||||||
httpMethod = "GET",
|
httpMethod = "GET",
|
||||||
value = "Getting the License Agreement to Register a Windows Device",
|
value = "Getting the License Agreement to Register a Windows Device",
|
||||||
notes = "Use this REST API to retrieve the license agreement that is used for the Windows device " +
|
notes = "Use this REST API to retrieve the license agreement that is used for the Windows device " +
|
||||||
|
|||||||
@ -41,7 +41,6 @@ import javax.xml.ws.soap.SOAPBinding;
|
|||||||
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
|
||||||
public interface DiscoveryService {
|
public interface DiscoveryService {
|
||||||
@POST
|
@POST
|
||||||
|
|
||||||
@RequestWrapper(localName = "Discover", targetNamespace = PluginConstants.DISCOVERY_SERVICE_TARGET_NAMESPACE)
|
@RequestWrapper(localName = "Discover", targetNamespace = PluginConstants.DISCOVERY_SERVICE_TARGET_NAMESPACE)
|
||||||
@WebMethod(operationName = "Discover")
|
@WebMethod(operationName = "Discover")
|
||||||
@ResponseWrapper(localName = "DiscoverResponse", targetNamespace = PluginConstants.DISCOVERY_SERVICE_TARGET_NAMESPACE)
|
@ResponseWrapper(localName = "DiscoverResponse", targetNamespace = PluginConstants.DISCOVERY_SERVICE_TARGET_NAMESPACE)
|
||||||
|
|||||||
@ -98,10 +98,9 @@ public class ConfigurationMgtServiceImpl implements ConfigurationMgtService {
|
|||||||
* @throws WindowsConfigurationException
|
* @throws WindowsConfigurationException
|
||||||
*/
|
*/
|
||||||
@PUT
|
@PUT
|
||||||
public Response updateConfiguration(PlatformConfiguration windowsPlatformConfiguration) throws WindowsConfigurationException {
|
public Response updateConfiguration(PlatformConfiguration configuration) throws WindowsConfigurationException {
|
||||||
String message;
|
String message;
|
||||||
ConfigurationEntry licenseEntry = null;
|
ConfigurationEntry licenseEntry = null;
|
||||||
PlatformConfiguration configuration = new PlatformConfiguration();
|
|
||||||
try {
|
try {
|
||||||
configuration.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS);
|
configuration.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_WINDOWS);
|
||||||
List<ConfigurationEntry> configs = configuration.getConfiguration();
|
List<ConfigurationEntry> configs = configuration.getConfiguration();
|
||||||
|
|||||||
@ -17,10 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
package org.wso2.carbon.device.mgt.mobile.windows.api.services.syncml;
|
package org.wso2.carbon.device.mgt.mobile.windows.api.services.syncml;
|
||||||
|
|
||||||
import org.w3c.dom.Document;
|
import org.w3c.dom.Document;
|
||||||
import org.wso2.carbon.apimgt.annotations.api.Scope;
|
|
||||||
import org.wso2.carbon.apimgt.annotations.api.Scopes;
|
|
||||||
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException;
|
import org.wso2.carbon.device.mgt.common.notification.mgt.NotificationManagementException;
|
||||||
import org.wso2.carbon.device.mgt.mobile.windows.api.common.PluginConstants;
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.PluginConstants;
|
||||||
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsConfigurationException;
|
import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsConfigurationException;
|
||||||
@ -39,16 +36,6 @@ import javax.ws.rs.core.Response;
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Path("/devicemanagement")
|
@Path("/devicemanagement")
|
||||||
@Scopes(
|
|
||||||
scopes = {
|
|
||||||
@Scope(
|
|
||||||
name = "Pending operations",
|
|
||||||
description = "Register an Windows device",
|
|
||||||
key = "perm:windows:enroll",
|
|
||||||
permissions = {"/device-mgt/devices/enroll/windows"}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
public interface SyncmlService {
|
public interface SyncmlService {
|
||||||
|
|
||||||
@Path("/request")
|
@Path("/request")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user