Enable group management api

revert-70aa11f8
Rasika Perera 8 years ago
parent b5b4f508b0
commit a61be7a7ec

@ -18,85 +18,96 @@
*/ */
package org.wso2.carbon.device.mgt.jaxrs.service.api; package org.wso2.carbon.device.mgt.jaxrs.service.api;
import org.wso2.carbon.apimgt.annotations.api.Scope; import org.wso2.carbon.apimgt.annotations.api.API;
import org.wso2.carbon.apimgt.annotations.api.Permission;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup; import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup;
import javax.ws.rs.*; import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
//@Path("/groups") @API(name = "Group Management", version = "1.0.0", context = "/api/device-mgt/v1.0/groups", tags = {"devicemgt_admin"})
//@Produces(MediaType.APPLICATION_JSON)
//@Consumes(MediaType.APPLICATION_JSON) @Path("/groups")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface GroupManagementService { public interface GroupManagementService {
// @GET @GET
// @Permission(scope = "group-view", permissions = {"/permission/admin/device-mgt/user/groups/list"}) @Permission(name = "View Group", permission = "/permission/admin/device-mgt/user/groups/list")
// Response getGroups(@QueryParam("user") String user, @QueryParam("offset") int offset, Response getGroups(@QueryParam("user") String user, @QueryParam("offset") int offset,
// @QueryParam("limit") int limit); @QueryParam("limit") int limit);
//
// @POST @POST
// @Permission(scope = "group-add", permissions = {"/permission/admin/device-mgt/user/groups/add"}) @Permission(name = "Add Group", permission = "/permission/admin/device-mgt/user/groups/add")
// Response createGroup(DeviceGroup group); Response createGroup(DeviceGroup group);
//
// @Path("/{groupName}") @Path("/{groupName}")
// @GET @GET
// @Permission(scope = "group-view", permissions = {"/permission/admin/device-mgt/user/groups/view"}) @Permission(name = "View Group", permission = "/permission/admin/device-mgt/user/groups/view")
// Response getGroup(@PathParam("groupName") String groupName); Response getGroup(@PathParam("groupName") String groupName);
//
// @Path("/{groupName}") @Path("/{groupName}")
// @PUT @PUT
// @Permission(scope = "group-modify", permissions = {"/permission/admin/device-mgt/user/groups/update"}) @Permission(name = "Update Group", permission = "/permission/admin/device-mgt/user/groups/update")
// Response updateGroup(@PathParam("groupName") String groupName, DeviceGroup deviceGroup); Response updateGroup(@PathParam("groupName") String groupName, DeviceGroup deviceGroup);
//
// @Path("/{groupName}") @Path("/{groupName}")
// @DELETE @DELETE
// @Permission(scope = "group-remove", permissions = {"/permission/admin/device-mgt/user/groups/remove"}) @Permission(name = "Remove Groups", permission = "/permission/admin/device-mgt/user/groups/remove")
// Response deleteGroup(@PathParam("groupName") String groupName); Response deleteGroup(@PathParam("groupName") String groupName);
//
// @Path("/{groupName}/share-with-user") @Path("/{groupName}/share-with-user")
// @POST @POST
// @Permission(scope = "group-share", permissions = {"/permission/admin/device-mgt/user/groups/share"}) @Permission(name = "Share Group to a User", permission = "/permission/admin/device-mgt/user/groups/share")
// Response shareGroupWithUser(@PathParam("groupName") String groupName, String targetUser); Response shareGroupWithUser(@PathParam("groupName") String groupName, String targetUser);
//
// @Path("/{groupName}/share-with-role") @Path("/{groupName}/share-with-role")
// @POST @POST
// @Permission(scope = "group-share", permissions = {"/permission/admin/device-mgt/user/groups/share"}) @Permission(name = "Share Group to a Role", permission = "/permission/admin/device-mgt/user/groups/share")
// Response shareGroupWithRole(@PathParam("groupName") String groupName, String targetRole); Response shareGroupWithRole(@PathParam("groupName") String groupName, String targetRole);
//
// @Path("/{groupName}/remove-share-with-user") @Path("/{groupName}/remove-share-with-user")
// @POST @POST
// @Permission(scope = "group-share", permissions = {"/permission/admin/device-mgt/user/groups/unshare"}) @Permission(name = "Unshare a Group", permission = "/permission/admin/device-mgt/user/groups/unshare")
// Response removeShareWithUser(@PathParam("groupName") String groupName, String targetUser); Response removeShareWithUser(@PathParam("groupName") String groupName, String targetUser);
//
// @Path("/{groupName}/remove-share-with-role") @Path("/{groupName}/remove-share-with-role")
// @POST @POST
// @Permission(scope = "group-share", permissions = {"/permission/admin/device-mgt/user/groups/unshare"}) @Permission(name = "Unshare a Group", permission = "/permission/admin/device-mgt/user/groups/unshare")
// Response removeShareWithRole(@PathParam("groupName") String groupName, String targetUser); Response removeShareWithRole(@PathParam("groupName") String groupName, String targetUser);
//
// @GET @GET
// @Path("/{groupName}/users") @Path("/{groupName}/users")
// @Permission(scope = "group-view", permissions = {"/permission/admin/device-mgt/user/groups/list"}) @Permission(name = "Get Users of Group", permission = "/permission/admin/device-mgt/user/groups/list")
// Response getUsersOfGroup(@PathParam("groupName") String groupName); Response getUsersOfGroup(@PathParam("groupName") String groupName);
//
// @GET @GET
// @Path("/{groupName}/devices") @Path("/{groupName}/devices")
// @Permission(scope = "group-view", permissions = {"/permission/admin/device-mgt/groups/roles"}) @Permission(name = "Get Devices of Group", permission = "/permission/admin/device-mgt/groups/roles")
// Response getDevicesOfGroup(@PathParam("groupName") String groupName, @QueryParam("offset") int offset, Response getDevicesOfGroup(@PathParam("groupName") String groupName, @QueryParam("offset") int offset,
// @QueryParam("limit") int limit); @QueryParam("limit") int limit);
//
// @POST @POST
// @Path("/{groupName}/devices") @Path("/{groupName}/devices")
// @Produces("application/json") @Produces("application/json")
// @Permission(scope = "group-add", permissions = {"/permission/admin/device-mgt/user/groups/devices/add"}) @Permission(name = "Add Device to a Group", permission = "/permission/admin/device-mgt/user/groups/devices/add")
// Response addDeviceToGroup(@PathParam("groupName") String groupName, DeviceIdentifier deviceIdentifier); Response addDeviceToGroup(@PathParam("groupName") String groupName, DeviceIdentifier deviceIdentifier);
//
// @DELETE
// @Path("/{groupName}/devices")
// @Permission(scope = "group-remove", permissions = {"/permission/admin/device-mgt/user/groups/devices/remove"})
// Response removeDeviceFromGroup(@PathParam("groupName") String groupName, @QueryParam("type") String type,
// @QueryParam("id") String id);
@DELETE
@Path("/{groupName}/devices")
@Permission(name = "Remove Devices from Group",
permission = "/permission/admin/device-mgt/user/groups/devices/remove")
Response removeDeviceFromGroup(@PathParam("groupName") String groupName, @QueryParam("type") String type,
@QueryParam("id") String id);
} }

@ -18,82 +18,92 @@
*/ */
package org.wso2.carbon.device.mgt.jaxrs.service.api.admin; package org.wso2.carbon.device.mgt.jaxrs.service.api.admin;
import io.swagger.annotations.*; import io.swagger.annotations.Api;
import org.wso2.carbon.apimgt.annotations.api.Scope; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.ResponseHeader;
import org.wso2.carbon.apimgt.annotations.api.API;
import org.wso2.carbon.apimgt.annotations.api.Permission;
import org.wso2.carbon.policy.mgt.common.DeviceGroupWrapper; import org.wso2.carbon.policy.mgt.common.DeviceGroupWrapper;
import javax.ws.rs.*; import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.Date;
//@Path("/admin/groups") @API(name = "Group Management Admin", version = "1.0.0", context = "/api/device-mgt/v1.0/admin/groups", tags = {"devicemgt_admin"})
//@Produces(MediaType.APPLICATION_JSON)
//@Consumes(MediaType.APPLICATION_JSON)
//@Api(value = "Group Management Administrative Service", description = "This an API intended to be used by " +
// "'internal' components to log in as an admin user and do a selected number of operations. " +
// "Further, this is strictly restricted to admin users only ")
public interface GroupManagementAdminService {
// @GET
// @ApiOperation(
// produces = MediaType.APPLICATION_JSON,
// httpMethod = "GET",
// value = "Get groups by the name.",
// notes = "Get devices the name of device and tenant.",
// response = DeviceGroupWrapper.class,
// responseContainer = "List",
// tags = "Group Management Administrative Service")
// @ApiResponses(value = {
// @ApiResponse(code = 200, message = "OK. \n Successfully fetched the list of groups.",
// response = DeviceGroupWrapper.class,
// responseContainer = "List",
// responseHeaders = {
// @ResponseHeader(
// name = "Content-Type",
// description = "The content type of the body"),
// @ResponseHeader(
// name = "ETag",
// description = "Entity Tag of the response resource.\n" +
// "Used by caches, or in conditional requests."),
// @ResponseHeader(
// name = "Last-Modified",
// description = "Date and time the resource has been modified the last time.\n" +
// "Used by caches, or in conditional requests."),
// }),
// @ApiResponse(
// code = 304,
// message = "Not Modified. \n Empty body because the client has already the latest version of the requested resource."),
// @ApiResponse(
// code = 406,
// message = "Not Acceptable.\n The requested media type is not supported"),
// @ApiResponse(
// code = 500,
// message = "Internal Server ErrorResponse. \n Server error occurred while fetching the group list.")
// })
// @Permission(scope = "group-view", permissions = {"/permission/admin/device-mgt/user/groups/list"})
// Response getGroupsOfUser(
// @ApiParam(
// name = "username",
// value = "Username of the user.",
// required = true)
// @QueryParam("username") String username,
// @ApiParam(
// name = "If-Modified-Since",
// value = "Timestamp of the last modified date",
// required = false)
// @HeaderParam("If-Modified-Since") String timestamp,
// @ApiParam(
// name = "offset",
// value = "Starting point within the complete list of items qualified.",
// required = false)
// @QueryParam("offset") int offset,
// @ApiParam(
// name = "limit",
// value = "Maximum size of resource array to return.",
// required = false)
// @QueryParam("limit") int limit);
//
@Path("/admin/groups")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Api(value = "Group Management Administrative Service", description = "This an API intended to be used by " +
"'internal' components to log in as an admin user and do a selected number of operations. " +
"Further, this is strictly restricted to admin users only ")
public interface GroupManagementAdminService {
@GET
@ApiOperation(
produces = MediaType.APPLICATION_JSON,
httpMethod = "GET",
value = "Get groups by the name.",
notes = "Get devices the name of device and tenant.",
response = DeviceGroupWrapper.class,
responseContainer = "List",
tags = "Group Management Administrative Service")
@ApiResponses(value = {
@ApiResponse(code = 200, message = "OK. \n Successfully fetched the list of groups.",
response = DeviceGroupWrapper.class,
responseContainer = "List",
responseHeaders = {
@ResponseHeader(
name = "Content-Type",
description = "The content type of the body"),
@ResponseHeader(
name = "ETag",
description = "Entity Tag of the response resource.\n" +
"Used by caches, or in conditional requests."),
@ResponseHeader(
name = "Last-Modified",
description = "Date and time the resource has been modified the last time.\n" +
"Used by caches, or in conditional requests."),
}),
@ApiResponse(
code = 304,
message = "Not Modified. \n Empty body because the client has already the latest version of the " +
"requested resource."),
@ApiResponse(
code = 406,
message = "Not Acceptable.\n The requested media type is not supported"),
@ApiResponse(
code = 500,
message = "Internal Server ErrorResponse. \n Server error occurred while fetching the group list.")
})
@Permission(name = "View All Groups", permission = "/permission/admin/device-mgt/user/groups/list")
Response getGroupsOfUser(
@ApiParam(
name = "username",
value = "Username of the user.",
required = true)
@QueryParam("username") String username,
@ApiParam(
name = "If-Modified-Since",
value = "Timestamp of the last modified date",
required = false)
@HeaderParam("If-Modified-Since") String timestamp,
@ApiParam(
name = "offset",
value = "Starting point within the complete list of items qualified.",
required = false)
@QueryParam("offset") int offset,
@ApiParam(
name = "limit",
value = "Maximum size of resource array to return.",
required = false)
@QueryParam("limit") int limit);
} }

@ -18,10 +18,6 @@
*/ */
package org.wso2.carbon.device.mgt.jaxrs.service.impl; package org.wso2.carbon.device.mgt.jaxrs.service.impl;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import org.wso2.carbon.device.mgt.common.group.mgt.DeviceGroup;
import org.wso2.carbon.device.mgt.jaxrs.service.api.GroupManagementService;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.context.PrivilegedCarbonContext;
@ -33,105 +29,108 @@ import org.wso2.carbon.device.mgt.jaxrs.service.api.GroupManagementService;
import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils;
import org.wso2.carbon.policy.mgt.common.DeviceGroupWrapper; import org.wso2.carbon.policy.mgt.common.DeviceGroupWrapper;
import javax.ws.rs.*; import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
//@Path("/groups") @Path("/groups")
//@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
//@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public class GroupManagementServiceImpl implements GroupManagementService { public class GroupManagementServiceImpl implements GroupManagementService {
// private static final Log log = LogFactory.getLog(GroupManagementServiceImpl.class); private static final Log log = LogFactory.getLog(GroupManagementServiceImpl.class);
//
// @Override @Override
// public Response getGroups(@QueryParam("user") String user, @QueryParam("offset") int offset, public Response getGroups(@QueryParam("user") String user, @QueryParam("offset") int offset,
// @QueryParam("limit") int limit) { @QueryParam("limit") int limit) {
// try { try {
// List<DeviceGroupWrapper> groupWrappers = new ArrayList<>(); List<DeviceGroupWrapper> groupWrappers = new ArrayList<>();
// GroupManagementProviderService service = DeviceMgtAPIUtils.getGroupManagementProviderService(); GroupManagementProviderService service = DeviceMgtAPIUtils.getGroupManagementProviderService();
// List<DeviceGroup> deviceGroups = service.getGroups(user); List<DeviceGroup> deviceGroups = service.getGroups(user);
// int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId(); int tenantId = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantId();
// for (DeviceGroup dg : deviceGroups) { for (DeviceGroup dg : deviceGroups) {
// DeviceGroupWrapper gw = new DeviceGroupWrapper(); DeviceGroupWrapper gw = new DeviceGroupWrapper();
// gw.setId(dg.getId()); gw.setId(dg.getId());
// gw.setOwner(dg.getOwner()); gw.setOwner(dg.getOwner());
// gw.setName(dg.getName()); gw.setName(dg.getName());
// gw.setTenantId(tenantId); gw.setTenantId(tenantId);
// groupWrappers.add(gw); groupWrappers.add(gw);
// } }
// return Response.status(Response.Status.OK).entity(groupWrappers).build(); return Response.status(Response.Status.OK).entity(groupWrappers).build();
// } catch (GroupManagementException e) { } catch (GroupManagementException e) {
// String error = "ErrorResponse occurred while getting the groups related to users for policy."; String error = "ErrorResponse occurred while getting the groups related to users for policy.";
// log.error(error, e); log.error(error, e);
// return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build(); return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(error).build();
// } }
// } }
//
// @Override @Override
// public Response createGroup(DeviceGroup group) { public Response createGroup(DeviceGroup group) {
// return null; return null;
// } }
//
// @Override @Override
// public Response getGroup(@PathParam("groupName") String groupName) { public Response getGroup(@PathParam("groupName") String groupName) {
// return null; return null;
// } }
//
// @Override @Override
// public Response updateGroup(@PathParam("groupName") String groupName, DeviceGroup deviceGroup) { public Response updateGroup(@PathParam("groupName") String groupName, DeviceGroup deviceGroup) {
// return null; return null;
// } }
//
// @Override @Override
// public Response deleteGroup(@PathParam("groupName") String groupName) { public Response deleteGroup(@PathParam("groupName") String groupName) {
// return null; return null;
// } }
//
// @Override @Override
// public Response shareGroupWithUser(String groupName, String targetUser) { public Response shareGroupWithUser(String groupName, String targetUser) {
// return null; return null;
// } }
//
// @Override @Override
// public Response shareGroupWithRole(String groupName, String targetRole) { public Response shareGroupWithRole(String groupName, String targetRole) {
// return null; return null;
// } }
//
// @Override @Override
// public Response removeShareWithUser(@PathParam("groupName") String groupName, public Response removeShareWithUser(@PathParam("groupName") String groupName,
// @QueryParam("username") String targetUser) { @QueryParam("username") String targetUser) {
// return null; return null;
// } }
//
// @Override @Override
// public Response removeShareWithRole(@PathParam("groupName") String groupName, public Response removeShareWithRole(@PathParam("groupName") String groupName,
// @QueryParam("roleName") String targetUser) { @QueryParam("roleName") String targetUser) {
// return null; return null;
// } }
//
// @Override @Override
// public Response getUsersOfGroup(@PathParam("groupName") String groupName) { public Response getUsersOfGroup(@PathParam("groupName") String groupName) {
// return null; return null;
// } }
//
// @Override @Override
// public Response getDevicesOfGroup(@PathParam("groupName") String groupName, @QueryParam("offset") int offset, public Response getDevicesOfGroup(@PathParam("groupName") String groupName, @QueryParam("offset") int offset,
// @QueryParam("limit") int limit) { @QueryParam("limit") int limit) {
// return null; return null;
// } }
//
// @Override @Override
// public Response addDeviceToGroup(@PathParam("groupName") String groupName, DeviceIdentifier deviceIdentifier) { public Response addDeviceToGroup(@PathParam("groupName") String groupName, DeviceIdentifier deviceIdentifier) {
// return null; return null;
// } }
//
// @Override @Override
// public Response removeDeviceFromGroup(@PathParam("groupName") String groupName, @QueryParam("type") String type, public Response removeDeviceFromGroup(@PathParam("groupName") String groupName, @QueryParam("type") String type,
// @QueryParam("id") String id) { @QueryParam("id") String id) {
// return null; return null;
// } }
}
}

@ -18,7 +18,6 @@
*/ */
package org.wso2.carbon.device.mgt.jaxrs.service.impl.admin; package org.wso2.carbon.device.mgt.jaxrs.service.impl.admin;
import io.swagger.annotations.ApiParam;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.PaginationResult; import org.wso2.carbon.device.mgt.common.PaginationResult;
@ -26,37 +25,42 @@ import org.wso2.carbon.device.mgt.common.group.mgt.GroupManagementException;
import org.wso2.carbon.device.mgt.jaxrs.service.api.admin.GroupManagementAdminService; import org.wso2.carbon.device.mgt.jaxrs.service.api.admin.GroupManagementAdminService;
import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils; import org.wso2.carbon.device.mgt.jaxrs.util.DeviceMgtAPIUtils;
import javax.ws.rs.*; import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response; import javax.ws.rs.core.Response;
import java.util.Date;
//@Path("/admin/groups") @Path("/admin/groups")
//@Produces(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
//@Consumes(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON)
public class GroupManagementAdminServiceImpl implements GroupManagementAdminService { public class GroupManagementAdminServiceImpl implements GroupManagementAdminService {
//
// private static final Log log = LogFactory.getLog(GroupManagementAdminServiceImpl.class); private static final Log log = LogFactory.getLog(GroupManagementAdminServiceImpl.class);
//
// @Override @GET
// public Response getGroupsOfUser( @Override
// @QueryParam("username") String username, public Response getGroupsOfUser(
// @HeaderParam("If-Modified-Since") String timestamp, @QueryParam("username") String username,
// @QueryParam("offset") int offset, @HeaderParam("If-Modified-Since") String timestamp,
// @QueryParam("limit") int limit) { @QueryParam("offset") int offset,
// try { @QueryParam("limit") int limit) {
// PaginationResult result = try {
// DeviceMgtAPIUtils.getGroupManagementProviderService().getGroups(username, offset, limit); PaginationResult result =
// if (result != null && result.getRecordsTotal() > 0) { DeviceMgtAPIUtils.getGroupManagementProviderService().getGroups(username, offset, limit);
// return Response.status(Response.Status.OK).entity(result).build(); if (result != null && result.getRecordsTotal() > 0) {
// } else { return Response.status(Response.Status.OK).entity(result).build();
// return Response.status(Response.Status.NOT_FOUND).build(); } else {
// } return Response.status(Response.Status.NOT_FOUND).build();
// } catch (GroupManagementException e) { }
// String msg = "ErrorResponse occurred while retrieving the groups of user '" + username + "'"; } catch (GroupManagementException e) {
// log.error(msg, e); String msg = "ErrorResponse occurred while retrieving the groups of user '" + username + "'";
// return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build(); log.error(msg, e);
// } return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(msg).build();
// } }
}
} }

@ -73,7 +73,7 @@
<bean id="policyManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.PolicyManagementServiceImpl"/> <bean id="policyManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.PolicyManagementServiceImpl"/>
<bean id="roleManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.RoleManagementServiceImpl"/> <bean id="roleManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.RoleManagementServiceImpl"/>
<bean id="userManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.UserManagementServiceImpl"/> <bean id="userManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.UserManagementServiceImpl"/>
<!--<bean id="groupManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.GroupManagementServiceImpl"/>--> <bean id="groupManagementService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.GroupManagementServiceImpl"/>
<bean id="deviceManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.DeviceManagementAdminServiceImpl"/> <bean id="deviceManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.DeviceManagementAdminServiceImpl"/>
<bean id="applicationManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.ApplicationManagementAdminServiceImpl"/> <bean id="applicationManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.ApplicationManagementAdminServiceImpl"/>
<bean id="groupManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.GroupManagementAdminServiceImpl"/> <bean id="groupManagementAdminService" class="org.wso2.carbon.device.mgt.jaxrs.service.impl.admin.GroupManagementAdminServiceImpl"/>

Loading…
Cancel
Save