1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.clu.dto; |
17 | |
|
18 | |
import org.kuali.student.r2.common.dto.IdNamelessEntityInfo; |
19 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
20 | |
import org.kuali.student.r2.lum.clu.infc.ResultOption; |
21 | |
|
22 | |
import javax.xml.bind.Element; |
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAnyElement; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.XmlType; |
28 | |
import java.io.Serializable; |
29 | |
import java.util.Date; |
30 | |
import java.util.List; |
31 | |
|
32 | |
@XmlAccessorType(XmlAccessType.FIELD) |
33 | |
@XmlType(name = "ResultOptionInfo", propOrder = {"id", "descr", "typeKey", "stateKey", "resultUsageTypeKey", "resultComponentId", "effectiveDate", |
34 | |
"expirationDate", "meta", "attributes", "_futureElements"}) |
35 | |
public class ResultOptionInfo extends IdNamelessEntityInfo implements ResultOption, Serializable { |
36 | |
|
37 | |
private static final long serialVersionUID = 1L; |
38 | |
|
39 | |
@XmlElement |
40 | |
private RichTextInfo descr; |
41 | |
|
42 | |
@XmlElement |
43 | |
private String resultUsageTypeKey; |
44 | |
|
45 | |
@XmlElement |
46 | |
private String resultComponentId; |
47 | |
|
48 | |
@XmlElement |
49 | |
private Date effectiveDate; |
50 | |
|
51 | |
@XmlElement |
52 | |
private Date expirationDate; |
53 | |
|
54 | |
@XmlAnyElement |
55 | |
private List<Element> _futureElements; |
56 | |
|
57 | 0 | public ResultOptionInfo() { |
58 | |
|
59 | 0 | } |
60 | |
|
61 | |
public ResultOptionInfo(ResultOption resultOption) { |
62 | 0 | super(resultOption); |
63 | 0 | if (null != resultOption) { |
64 | 0 | this.resultUsageTypeKey = resultOption.getResultUsageTypeKey(); |
65 | 0 | this.resultComponentId = resultOption.getResultComponentId(); |
66 | 0 | this.effectiveDate = (null != resultOption.getEffectiveDate()) ? new Date(resultOption.getEffectiveDate().getTime()) : null; |
67 | 0 | this.expirationDate = (null != resultOption.getExpirationDate()) ? new Date(resultOption.getExpirationDate().getTime()) : null; |
68 | |
} |
69 | 0 | } |
70 | |
|
71 | |
@Override |
72 | |
public RichTextInfo getDescr() { |
73 | 0 | return descr; |
74 | |
} |
75 | |
|
76 | |
public void setDescr(RichTextInfo descr) { |
77 | 0 | this.descr = descr; |
78 | 0 | } |
79 | |
|
80 | |
@Override |
81 | |
public String getResultUsageTypeKey() { |
82 | 0 | return resultUsageTypeKey; |
83 | |
} |
84 | |
|
85 | |
public void setResultUsageTypeKey(String resultUsageTypeKey) { |
86 | 0 | this.resultUsageTypeKey = resultUsageTypeKey; |
87 | 0 | } |
88 | |
|
89 | |
@Override |
90 | |
public String getResultComponentId() { |
91 | 0 | return resultComponentId; |
92 | |
} |
93 | |
|
94 | |
public void setResultComponentId(String resultComponentId) { |
95 | 0 | this.resultComponentId = resultComponentId; |
96 | 0 | } |
97 | |
|
98 | |
@Override |
99 | |
public Date getEffectiveDate() { |
100 | 0 | return effectiveDate; |
101 | |
} |
102 | |
|
103 | |
public void setEffectiveDate(Date effectiveDate) { |
104 | 0 | this.effectiveDate = effectiveDate; |
105 | 0 | } |
106 | |
|
107 | |
@Override |
108 | |
public Date getExpirationDate() { |
109 | 0 | return expirationDate; |
110 | |
} |
111 | |
|
112 | |
public void setExpirationDate(Date expirationDate) { |
113 | 0 | this.expirationDate = expirationDate; |
114 | 0 | } |
115 | |
} |