Committing changes to Operation bean

revert-70aa11f8
prabathabey 10 years ago
parent 1f587bddf8
commit 365d5a4c73

@ -25,46 +25,47 @@ import java.util.Properties;
@XmlRootElement @XmlRootElement
public class Operation { public class Operation {
public enum Type { public enum Type {
CONFIG, MESSAGE, INFO, COMMAND CONFIG, MESSAGE, INFO, COMMAND
}
public enum OperationStatuses {
INPROGRES,PENDING,COMPLETED,ERROR
} }
private String code; public enum Status {
private Properties properties; IN_PROGRES, PENDING, COMPLETED, ERROR
private Type type; }
private String code;
private Properties properties;
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() {
return code; return code;
} }
public void setCode(String code) { public void setCode(String code) {
this.code = code; this.code = code;
} }
@XmlElement @XmlElement
public Properties getProperties() { public Properties getProperties() {
return properties; return properties;
} }
public void setProperties(Properties properties) { public void setProperties(Properties properties) {
this.properties = properties; this.properties = properties;
} }
@XmlElement @XmlElement
public Type getType() { public Type getType() {
return type; return type;
} }
public void setType(Type type) { public void setType(Type type) {
this.type = type; this.type = type;
} }
public Long getOperationId() { public Long getOperationId() {
return operationId; return operationId;
@ -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;
} }
} }
Loading…
Cancel
Save