1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.lum.classI.lrc.dto; |
17 | |
|
18 | |
import java.util.Date; |
19 | |
|
20 | |
import javax.xml.bind.annotation.XmlAccessType; |
21 | |
import javax.xml.bind.annotation.XmlAccessorType; |
22 | |
import javax.xml.bind.annotation.XmlAttribute; |
23 | |
import javax.xml.bind.annotation.XmlElement; |
24 | |
import javax.xml.bind.annotation.XmlType; |
25 | |
|
26 | |
import org.kuali.student.r2.common.dto.KeyEntityInfo; |
27 | |
import org.kuali.student.r2.common.dto.MetaInfo; |
28 | |
import org.kuali.student.r2.common.infc.RichText; |
29 | |
import org.kuali.student.r2.lum.classI.lrc.ResultOption; |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
@XmlType(name = "ResultOptionInfo", propOrder = { "key", "typeKey", "stateKey", |
39 | |
"name", "descr", "resultUsageTypeKey", "resultComponentId", |
40 | |
"effectiveDate", "expirationDate", "id", "metaInfo", "attributes", |
41 | |
"_futureElements" }) |
42 | |
public class ResultOptionInfo extends KeyEntityInfo implements ResultOption { |
43 | |
|
44 | |
private static final long serialVersionUID = 1L; |
45 | |
|
46 | |
@XmlAttribute |
47 | |
private String resultUsageTypeKey; |
48 | |
|
49 | |
@XmlAttribute |
50 | |
private String resultComponentId; |
51 | |
|
52 | |
@XmlElement |
53 | |
private Date effectiveDate; |
54 | |
|
55 | |
@XmlElement |
56 | |
private Date expirationDate; |
57 | |
|
58 | |
@XmlAttribute |
59 | |
private String id; |
60 | |
|
61 | |
|
62 | 0 | public ResultOptionInfo() { |
63 | |
|
64 | 0 | } |
65 | |
|
66 | |
public ResultOptionInfo(String name, RichText descr, String typeKey, |
67 | |
String stateKey, MetaInfo metaInfo, String resultUsageTypeKey, |
68 | |
String resultComponentId, Date effectiveDate, Date expirationDate, |
69 | |
String id) { |
70 | |
|
71 | 0 | super(); |
72 | 0 | this.resultUsageTypeKey = resultUsageTypeKey; |
73 | 0 | this.resultComponentId = resultComponentId; |
74 | 0 | this.effectiveDate = effectiveDate; |
75 | 0 | this.expirationDate = expirationDate; |
76 | 0 | this.id = id; |
77 | 0 | } |
78 | |
|
79 | |
public static ResultOptionInfo createNewResultInfoFromResultInfo( |
80 | |
ResultOptionInfo resultOptionInfo) { |
81 | 0 | return new ResultOptionInfo(resultOptionInfo.getName(), |
82 | |
resultOptionInfo.getDescr(), resultOptionInfo.getTypeKey(), |
83 | |
resultOptionInfo.getStateKey(), resultOptionInfo.getMetaInfo(), |
84 | |
resultOptionInfo.getResultUsageTypeKey(), |
85 | |
resultOptionInfo.getResultComponentId(), |
86 | |
resultOptionInfo.getEffectiveDate(), |
87 | |
resultOptionInfo.getExpirationDate(), resultOptionInfo.getId()); |
88 | |
} |
89 | |
|
90 | |
public String getResultUsageTypeKey() { |
91 | 0 | return resultUsageTypeKey; |
92 | |
} |
93 | |
|
94 | |
public void setResultUsageTypeKey(String resultUsageTypeKey) { |
95 | 0 | this.resultUsageTypeKey = resultUsageTypeKey; |
96 | 0 | } |
97 | |
|
98 | |
|
99 | |
|
100 | |
|
101 | |
public String getResultComponentId() { |
102 | 0 | return resultComponentId; |
103 | |
} |
104 | |
|
105 | |
public void setResultComponentId(String resultComponentId) { |
106 | 0 | this.resultComponentId = resultComponentId; |
107 | 0 | } |
108 | |
|
109 | |
public Date getEffectiveDate() { |
110 | 0 | return effectiveDate; |
111 | |
} |
112 | |
|
113 | |
public void setEffectiveDate(Date effectiveDate) { |
114 | 0 | this.effectiveDate = effectiveDate; |
115 | 0 | } |
116 | |
|
117 | |
public Date getExpirationDate() { |
118 | 0 | return expirationDate; |
119 | |
} |
120 | |
|
121 | |
public void setExpirationDate(Date expirationDate) { |
122 | 0 | this.expirationDate = expirationDate; |
123 | 0 | } |
124 | |
|
125 | |
public String getId() { |
126 | 0 | return id; |
127 | |
} |
128 | |
|
129 | |
public void setId(String id) { |
130 | 0 | this.id = id; |
131 | 0 | } |
132 | |
} |