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