adding form parameters

revert-dabc3590
Nirothipan 7 years ago
parent 704f511964
commit 7ed6552a57

@ -25,19 +25,41 @@ import java.io.Serializable;
@ApiModel(value = "FileTransfer", @ApiModel(value = "FileTransfer",
description = "This class carries all information related to device lock operation.") //todo
description = "This class carries all information related to file transfer operation.")
public class FileTransfer extends AndroidOperation implements Serializable { public class FileTransfer extends AndroidOperation implements Serializable {
//todo //todo
@ApiModelProperty(name = "message", value = "Pop up message of the lock operation.", required = false) @ApiModelProperty(name = "file-location", value = "FTP URL of file", required = true)
private String message; private String location;
@ApiModelProperty(name = "isHardLockEnabled", value = "Hard lock enable status of the Device", required = true)
@ApiModelProperty(name = "ftp-username", value = "FTP User name", required = true)
private String userName;
@ApiModelProperty(name = "ftp-password", value = "FTP password", required = true)
private String password;
public String getFielLocation() { public String getFielLocation() {
return message; return location;
}
public void setFileLocation(String location) {
this.location = location;
}
public String getFtpUserName() {
return userName;
}
public void setFtpUserName(String userName) {
this.userName = userName;
}
public String getFtpPassword() {
return password;
} }
public void setFileLocation(String message) { public void setFtpPassword(String password) {
this.message = message; this.password = password;
} }

@ -294,7 +294,8 @@ public interface DeviceManagementAdminService {
"screen lock the device." + "screen lock the device." +
"Multiple device IDs can be added by using comma separated values. ", "Multiple device IDs can be added by using comma separated values. ",
required = true) FileTransferBeanWrapper fileTransferBeanWrapper); required = true) FileTransferBeanWrapper fileTransferBeanWrapper);
////////////////////////////////////
////////////////////////////////////
@POST @POST
@Path("/lock-devices") @Path("/lock-devices")
@ApiOperation( @ApiOperation(
@ -552,7 +553,7 @@ public interface DeviceManagementAdminService {
@Extension(properties = { @Extension(properties = {
@ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:control-camera") @ExtensionProperty(name = AndroidConstants.SCOPE, value = "perm:android:control-camera")
}) })
} ) })
@ApiResponses(value = { @ApiResponses(value = {
@ApiResponse( @ApiResponse(
code = 201, code = 201,
@ -909,7 +910,7 @@ public interface DeviceManagementAdminService {
Response getApplications( Response getApplications(
@ApiParam( @ApiParam(
name = "deviceIDs", name = "deviceIDs",
value = "Provide the ID of the Android device. Multiple device IDs can be added using comma separated values." , value = "Provide the ID of the Android device. Multiple device IDs can be added using comma separated values.",
required = true) required = true)
List<String> deviceIDs); List<String> deviceIDs);

@ -91,7 +91,7 @@ public Response fileTransfer(FileTransferBeanWrapper fileTransferBeanWrapper) {
} }
FileTransfer file = fileTransferBeanWrapper.getOperation(); FileTransfer file = fileTransferBeanWrapper.getOperation();
ProfileOperation operation = new ProfileOperation(); ProfileOperation operation = new ProfileOperation();
operation.setCode(AndroidConstants.OperationCodes.DEVICE_LOCK); operation.setCode("FILE_TRANSFER");
operation.setType(Operation.Type.PROFILE); operation.setType(Operation.Type.PROFILE);
operation.setEnabled(true); operation.setEnabled(true);
operation.setPayLoad(file.toJSON()); operation.setPayLoad(file.toJSON());

Loading…
Cancel
Save