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 | |
import java.util.List; |
20 | |
|
21 | |
import javax.xml.bind.annotation.XmlAccessType; |
22 | |
import javax.xml.bind.annotation.XmlAccessorType; |
23 | |
import javax.xml.bind.annotation.XmlType; |
24 | |
|
25 | |
import org.kuali.student.r2.common.dto.KeyEntityInfo; |
26 | |
import org.kuali.student.r2.common.dto.MetaInfo; |
27 | |
import org.kuali.student.r2.common.dto.TypeInfo; |
28 | |
import org.kuali.student.r2.common.infc.Attribute; |
29 | |
import org.kuali.student.r2.common.infc.Meta; |
30 | |
import org.kuali.student.r2.common.infc.RichText; |
31 | |
import org.kuali.student.r2.common.infc.Type; |
32 | |
import org.kuali.student.r2.lum.classI.lrc.ResultValueGroupType; |
33 | |
|
34 | |
|
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
@XmlType(name = "ResultValueGroupInfo", propOrder = { "key", "typeKey", |
42 | |
"stateKey", "name", "descr", "effectiveDate", "expirationDate", "id", |
43 | |
"metaInfo", "attributes" }) |
44 | |
public class ResultValueGroupTypeInfo extends KeyEntityInfo implements |
45 | |
ResultValueGroupType { |
46 | |
|
47 | |
private static final long serialVersionUID = 1L; |
48 | |
|
49 | |
private String id; |
50 | |
|
51 | |
private Date effectiveDate; |
52 | |
|
53 | |
private Date expirationDate; |
54 | |
|
55 | 0 | public ResultValueGroupTypeInfo() { |
56 | 0 | } |
57 | |
|
58 | |
public ResultValueGroupTypeInfo(String name, String key, RichText descr, |
59 | |
String typeKey, String stateKey, String id, |
60 | |
List<? extends Attribute> list, Date effectiveDate, |
61 | |
Date expirationDate, Meta metaInfo) { |
62 | |
|
63 | 0 | super(); |
64 | 0 | this.id = id; |
65 | 0 | this.effectiveDate = effectiveDate; |
66 | 0 | this.expirationDate = expirationDate; |
67 | |
|
68 | 0 | } |
69 | |
|
70 | |
public static ResultValueGroupTypeInfo createNewResultValueGroupTypeInfoFromResultValueGroupTypeInfo( |
71 | |
ResultValueGroupTypeInfo resultValueGroupTypeInfo) { |
72 | |
|
73 | 0 | return new ResultValueGroupTypeInfo(resultValueGroupTypeInfo.getName(), |
74 | |
resultValueGroupTypeInfo.getKey(), |
75 | |
resultValueGroupTypeInfo.getDescr(), |
76 | |
resultValueGroupTypeInfo.getTypeKey(), |
77 | |
resultValueGroupTypeInfo.getStateKey(), |
78 | |
resultValueGroupTypeInfo.getId(), |
79 | |
resultValueGroupTypeInfo.getAttributes(), |
80 | |
resultValueGroupTypeInfo.getEffectiveDate(), |
81 | |
resultValueGroupTypeInfo.getExpirationDate(), |
82 | |
resultValueGroupTypeInfo.getMetaInfo()); |
83 | |
|
84 | |
} |
85 | |
|
86 | |
public void setId(String id) { |
87 | 0 | this.id = id; |
88 | 0 | } |
89 | |
|
90 | |
public void setEffectiveDate(Date effectiveDate) { |
91 | 0 | this.effectiveDate = effectiveDate; |
92 | 0 | } |
93 | |
|
94 | |
public void setExpirationDate(Date expirationDate) { |
95 | 0 | this.expirationDate = expirationDate; |
96 | 0 | } |
97 | |
|
98 | |
@Override |
99 | |
public Date getEffectiveDate() { |
100 | 0 | return this.effectiveDate; |
101 | |
} |
102 | |
|
103 | |
@Override |
104 | |
public Date getExpirationDate() { |
105 | 0 | return this.expirationDate; |
106 | |
} |
107 | |
|
108 | |
@Override |
109 | |
public String getId() { |
110 | 0 | return this.id; |
111 | |
} |
112 | |
|
113 | |
} |