1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.student.r2.common.dto;
18
19 import java.io.Serializable;
20 import java.util.List;
21
22 import javax.xml.bind.annotation.XmlAccessType;
23 import javax.xml.bind.annotation.XmlAccessorType;
24 import javax.xml.bind.annotation.XmlAnyElement;
25 import javax.xml.bind.annotation.XmlElement;
26 import javax.xml.bind.annotation.XmlType;
27
28 import org.kuali.student.r2.common.infc.Status;
29
30
31
32
33
34
35
36
37 @XmlAccessorType(XmlAccessType.FIELD)
38 @XmlType(name = "StatusInfo", propOrder = {"isSuccess", "message" , "_futureElements" })
39
40 public class StatusInfo
41 implements Status, Serializable {
42
43 private static final long serialVersionUID = 1L;
44
45 @XmlElement
46 private Boolean isSuccess;
47
48 @XmlElement
49 private String message;
50
51 @XmlAnyElement
52 private List<Object> _futureElements;
53
54
55
56
57
58 public StatusInfo() {
59 isSuccess = Boolean.valueOf(true);
60 message = "";
61 }
62
63
64
65
66
67
68 public StatusInfo(Status status) {
69 this.isSuccess = status.getIsSuccess();
70 this.message = status.getMessage();
71 }
72
73 @Override
74 public Boolean getIsSuccess(){
75 return isSuccess;
76 }
77
78 public void setSuccess(Boolean success) {
79 this.isSuccess = success;
80 }
81
82 @Override
83 public String getMessage() {
84 return message;
85 }
86
87 public void setMessage(String message) {
88 this.message = message;
89 }
90 }