1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.r2.core.population.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.ArrayList; |
20 | |
import java.util.List; |
21 | |
|
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 | |
|
28 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
29 | |
import org.kuali.student.r2.core.population.infc.Population; |
30 | |
|
31 | |
import org.w3c.dom.Element; |
32 | |
|
33 | |
@XmlAccessorType(XmlAccessType.FIELD) |
34 | |
@XmlType(name = "PopulationInfo", propOrder = {"id", |
35 | |
"typeKey", |
36 | |
"stateKey", |
37 | |
"name", |
38 | |
"descr", |
39 | |
"sortOrderTypeKeys", |
40 | |
"variesByTime", |
41 | |
"supportsGetMembers", |
42 | |
"meta", |
43 | |
"attributes", |
44 | |
"_futureElements"}) |
45 | |
public class PopulationInfo |
46 | |
extends IdEntityInfo |
47 | |
implements Population, Serializable { |
48 | |
|
49 | |
private static final long serialVersionUID = 1L; |
50 | |
@XmlElement |
51 | |
private List<String> sortOrderTypeKeys; |
52 | |
@XmlElement |
53 | |
private Boolean variesByTime; |
54 | |
@XmlElement |
55 | |
private Boolean supportsGetMembers; |
56 | |
@XmlAnyElement |
57 | |
private List<Element> _futureElements; |
58 | |
|
59 | |
|
60 | |
|
61 | |
|
62 | 0 | public PopulationInfo() { |
63 | 0 | } |
64 | |
|
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
public PopulationInfo(Population population) { |
71 | 0 | super(population); |
72 | |
|
73 | 0 | if (population != null) { |
74 | 0 | if (population.getSortOrderTypeKeys() != null) { |
75 | 0 | this.sortOrderTypeKeys = new ArrayList<String>(population.getSortOrderTypeKeys()); |
76 | |
} |
77 | |
|
78 | 0 | this.variesByTime = population.getVariesByTime(); |
79 | 0 | this.supportsGetMembers = population.getSupportsGetMembers(); |
80 | |
|
81 | |
} |
82 | 0 | } |
83 | |
|
84 | |
@Override |
85 | |
public List<String> getSortOrderTypeKeys() { |
86 | 0 | if (this.sortOrderTypeKeys == null) { |
87 | 0 | this.sortOrderTypeKeys = new ArrayList<String>(); |
88 | |
} |
89 | |
|
90 | 0 | return this.sortOrderTypeKeys; |
91 | |
} |
92 | |
|
93 | |
public void setSortOrderTypeKeys(List<String> sortOrderTypeKeys) { |
94 | 0 | this.sortOrderTypeKeys = sortOrderTypeKeys; |
95 | 0 | } |
96 | |
|
97 | |
@Override |
98 | |
public Boolean getVariesByTime() { |
99 | 0 | return this.variesByTime; |
100 | |
} |
101 | |
|
102 | |
public void setVariesByTime(Boolean variesByTime) { |
103 | 0 | this.variesByTime = variesByTime; |
104 | 0 | } |
105 | |
|
106 | |
@Override |
107 | |
public Boolean getSupportsGetMembers() { |
108 | 0 | return supportsGetMembers; |
109 | |
} |
110 | |
|
111 | |
public void setSupportsGetMembers(Boolean supportsGetMembers) { |
112 | 0 | this.supportsGetMembers = supportsGetMembers; |
113 | 0 | } |
114 | |
} |