|
|
|
@ -28,8 +28,9 @@ public class Operation {
|
|
|
|
|
public enum Type {
|
|
|
|
|
CONFIG, MESSAGE, INFO, COMMAND
|
|
|
|
|
}
|
|
|
|
|
public enum OperationStatuses {
|
|
|
|
|
INPROGRES,PENDING,COMPLETED,ERROR
|
|
|
|
|
|
|
|
|
|
public enum Status {
|
|
|
|
|
IN_PROGRES, PENDING, COMPLETED, ERROR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
@ -37,7 +38,7 @@ public class Operation {
|
|
|
|
|
private Type type;
|
|
|
|
|
private Long operationId;
|
|
|
|
|
private String payLoad;
|
|
|
|
|
private OperationStatuses operationStates;
|
|
|
|
|
private Status status;
|
|
|
|
|
|
|
|
|
|
@XmlElement
|
|
|
|
|
public String getCode() {
|
|
|
|
@ -82,11 +83,12 @@ public class Operation {
|
|
|
|
|
this.payLoad = payLoad;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public OperationStatuses getOperationStates() {
|
|
|
|
|
return operationStates;
|
|
|
|
|
public Status getOperationStates() {
|
|
|
|
|
return status;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setOperationStates(OperationStatuses operationStates) {
|
|
|
|
|
this.operationStates = operationStates;
|
|
|
|
|
public void setOperationStates(Status status) {
|
|
|
|
|
this.status = status;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|