|
|
@ -64,10 +64,10 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
@Path("/{id}/applications")
|
|
|
|
@Path("/{id}/applications")
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Response updateApplicationList(@PathParam("id")
|
|
|
|
public Response updateApplicationList(@PathParam("id")
|
|
|
|
@NotNull
|
|
|
|
@NotNull
|
|
|
|
@Size(min = 2 , max = 45)
|
|
|
|
@Size(min = 2, max = 45)
|
|
|
|
@Pattern(regexp = "^[A-Za-z0-9]*$")
|
|
|
|
@Pattern(regexp = "^[A-Za-z0-9]*$")
|
|
|
|
String id,@Valid List<AndroidApplication> androidApplications) {
|
|
|
|
String id, List<AndroidApplication> androidApplications) {
|
|
|
|
Application application;
|
|
|
|
Application application;
|
|
|
|
List<Application> applications = new ArrayList<>();
|
|
|
|
List<Application> applications = new ArrayList<>();
|
|
|
|
for (AndroidApplication androidApplication : androidApplications) {
|
|
|
|
for (AndroidApplication androidApplication : androidApplications) {
|
|
|
@ -259,7 +259,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
|
|
|
|
@PUT
|
|
|
|
@PUT
|
|
|
|
@Path("/{id}")
|
|
|
|
@Path("/{id}")
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Response modifyEnrollment(@PathParam("id") String id, AndroidDevice androidDevice) {
|
|
|
|
public Response modifyEnrollment(@PathParam("id") String id, @Valid AndroidDevice androidDevice) {
|
|
|
|
Device device = new Device();
|
|
|
|
Device device = new Device();
|
|
|
|
device.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_ANDROID);
|
|
|
|
device.setType(DeviceManagementConstants.MobileDeviceTypes.MOBILE_DEVICE_TYPE_ANDROID);
|
|
|
|
device.setEnrolmentInfo(androidDevice.getEnrolmentInfo());
|
|
|
|
device.setEnrolmentInfo(androidDevice.getEnrolmentInfo());
|
|
|
|