mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add payload parameter to update operation
This commit is contained in:
parent
9b665eaddb
commit
bee82d40e2
@ -28,11 +28,16 @@ public class Operation {
|
||||
public enum Type {
|
||||
CONFIG, MESSAGE, INFO, COMMAND
|
||||
}
|
||||
public enum OperationStatuses {
|
||||
INPROGRES,PENDING,COMPLETED,ERROR
|
||||
}
|
||||
|
||||
private String code;
|
||||
private Properties properties;
|
||||
private Type type;
|
||||
private Long operationId;
|
||||
private String payLoad;
|
||||
private OperationStatuses operationStates;
|
||||
|
||||
@XmlElement
|
||||
public String getCode() {
|
||||
@ -69,5 +74,19 @@ public class Operation {
|
||||
this.operationId = operationId;
|
||||
}
|
||||
|
||||
public String getPayLoad() {
|
||||
return payLoad;
|
||||
}
|
||||
|
||||
public void setPayLoad(String payLoad) {
|
||||
this.payLoad = payLoad;
|
||||
}
|
||||
|
||||
public OperationStatuses getOperationStates() {
|
||||
return operationStates;
|
||||
}
|
||||
|
||||
public void setOperationStates(OperationStatuses operationStates) {
|
||||
this.operationStates = operationStates;
|
||||
}
|
||||
}
|
||||
@ -57,6 +57,6 @@ public interface OperationManager {
|
||||
|
||||
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException;
|
||||
|
||||
public Operation updateOperation(Long operationId, DeviceIdentifier deviceIdentifier, String responsePayLoad)
|
||||
public Operation updateOperation(Long operationId, DeviceIdentifier deviceIdentifier, String payLoad)
|
||||
throws OperationManagementException;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user