|
|
|
@ -67,6 +67,7 @@ import org.wso2.carbon.policy.mgt.common.PolicyManagementException;
|
|
|
|
|
|
|
|
|
|
import javax.ws.rs.DefaultValue;
|
|
|
|
|
import javax.ws.rs.GET;
|
|
|
|
|
import javax.ws.rs.POST;
|
|
|
|
|
import javax.ws.rs.Path;
|
|
|
|
|
import javax.ws.rs.QueryParam;
|
|
|
|
|
import javax.ws.rs.core.Response;
|
|
|
|
@ -430,12 +431,10 @@ public class GroupManagementServiceImpl implements GroupManagementService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GET
|
|
|
|
|
@POST
|
|
|
|
|
@Path("/device-types")
|
|
|
|
|
@Override
|
|
|
|
|
public Response getGroupHasDeviceTypes(@QueryParam("identifiers") List<String> identifiers) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Response getGroupHasDeviceTypes(List<String> identifiers) {
|
|
|
|
|
try {
|
|
|
|
|
DeviceTypesOfGroups deviceTypesOfGroups = DeviceMgtAPIUtils.getGroupManagementProviderService()
|
|
|
|
|
.getDeviceTypesOfGroups(identifiers);
|
|
|
|
@ -446,8 +445,6 @@ public class GroupManagementServiceImpl implements GroupManagementService {
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|
return Response.status(Response.Status.BAD_REQUEST).entity(msg).build();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|