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