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