|
|
@ -188,7 +188,7 @@ public class DeviceTypeManagementAdminServiceImpl implements DeviceTypeManagemen
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@POST
|
|
|
|
@POST
|
|
|
|
@Path("{deviceTypeName}/versions")
|
|
|
|
@Path("/{deviceTypeName}/versions")
|
|
|
|
public Response addDeviceTypeVersion(@PathParam("deviceTypeName") String deviceTypeName,
|
|
|
|
public Response addDeviceTypeVersion(@PathParam("deviceTypeName") String deviceTypeName,
|
|
|
|
DeviceTypeVersionWrapper versionWrapper) {
|
|
|
|
DeviceTypeVersionWrapper versionWrapper) {
|
|
|
|
if (versionWrapper != null && deviceTypeName != null && !deviceTypeName.isEmpty()
|
|
|
|
if (versionWrapper != null && deviceTypeName != null && !deviceTypeName.isEmpty()
|
|
|
@ -245,7 +245,7 @@ public class DeviceTypeManagementAdminServiceImpl implements DeviceTypeManagemen
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@PUT
|
|
|
|
@PUT
|
|
|
|
@Path("{deviceTypeName}/versions")
|
|
|
|
@Path("/{deviceTypeName}/versions")
|
|
|
|
public Response updateDeviceTypeVersion(@PathParam("deviceTypeName") String deviceTypeName,
|
|
|
|
public Response updateDeviceTypeVersion(@PathParam("deviceTypeName") String deviceTypeName,
|
|
|
|
DeviceTypeVersionWrapper deviceTypeVersion) {
|
|
|
|
DeviceTypeVersionWrapper deviceTypeVersion) {
|
|
|
|
if (deviceTypeVersion != null && deviceTypeVersion.getVersionName() == null || deviceTypeVersion
|
|
|
|
if (deviceTypeVersion != null && deviceTypeVersion.getVersionName() == null || deviceTypeVersion
|
|
|
@ -285,7 +285,7 @@ public class DeviceTypeManagementAdminServiceImpl implements DeviceTypeManagemen
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@DELETE
|
|
|
|
@DELETE
|
|
|
|
@Path("{deviceTypeName}/versions/{version}")
|
|
|
|
@Path("/{deviceTypeName}/versions/{version}")
|
|
|
|
public Response deleteDeviceTypeVersion(@PathParam("deviceTypeName") String deviceTypeName,
|
|
|
|
public Response deleteDeviceTypeVersion(@PathParam("deviceTypeName") String deviceTypeName,
|
|
|
|
@PathParam("version") String version) {
|
|
|
|
@PathParam("version") String version) {
|
|
|
|
if (version == null || version.isEmpty()) {
|
|
|
|
if (version == null || version.isEmpty()) {
|
|
|
@ -320,7 +320,7 @@ public class DeviceTypeManagementAdminServiceImpl implements DeviceTypeManagemen
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@DELETE
|
|
|
|
@DELETE
|
|
|
|
@Path("{deviceTypeName}/delete")
|
|
|
|
@Path("/{deviceTypeName}/delete")
|
|
|
|
public Response deleteDeviceType(@PathParam("deviceTypeName") String deviceTypeName) {
|
|
|
|
public Response deleteDeviceType(@PathParam("deviceTypeName") String deviceTypeName) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
DeviceManagementProviderService deviceManagementProviderService =
|
|
|
|
DeviceManagementProviderService deviceManagementProviderService =
|
|
|
|