| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
package org.kuali.student.r2.core.population.dto; |
| 16 | |
|
| 17 | |
import java.io.Serializable; |
| 18 | |
import java.util.ArrayList; |
| 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.XmlAnyElement; |
| 24 | |
import javax.xml.bind.annotation.XmlElement; |
| 25 | |
import javax.xml.bind.annotation.XmlType; |
| 26 | |
|
| 27 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
| 28 | |
import org.kuali.student.r2.core.population.infc.PopulationRule; |
| 29 | |
|
| 30 | |
import org.kuali.rice.core.api.criteria.QueryByCriteria; |
| 31 | |
|
| 32 | |
import org.w3c.dom.Element; |
| 33 | |
|
| 34 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 35 | |
@XmlType(name = "PopulationRuleInfo", propOrder = {"id", |
| 36 | |
"typeKey", |
| 37 | |
"stateKey", |
| 38 | |
"name", |
| 39 | |
"descr", |
| 40 | |
"searchCriteria", |
| 41 | |
"agendaIds", |
| 42 | |
"groupIds", |
| 43 | |
"personIds", |
| 44 | |
"childPopulationIds", |
| 45 | |
"referencePopulationId", |
| 46 | |
"sortOrderTypeKeys", |
| 47 | |
"variesByTime", |
| 48 | |
"supportsGetMembers", |
| 49 | |
"meta", |
| 50 | |
"attributes", |
| 51 | |
"_futureElements"}) |
| 52 | |
public class PopulationRuleInfo |
| 53 | |
extends IdEntityInfo |
| 54 | |
implements PopulationRule, Serializable { |
| 55 | |
|
| 56 | |
private static final long serialVersionUID = 1L; |
| 57 | |
@XmlElement |
| 58 | |
private QueryByCriteria searchCriteria; |
| 59 | |
@XmlElement |
| 60 | |
private List<String> agendaIds; |
| 61 | |
@XmlElement |
| 62 | |
private List<String> groupIds; |
| 63 | |
@XmlElement |
| 64 | |
private List<String> personIds; |
| 65 | |
@XmlElement |
| 66 | |
private List<String> childPopulationIds; |
| 67 | |
@XmlElement |
| 68 | |
private String referencePopulationId; |
| 69 | |
@XmlElement |
| 70 | |
private List<String> sortOrderTypeKeys; |
| 71 | |
@XmlElement |
| 72 | |
private Boolean variesByTime; |
| 73 | |
@XmlElement |
| 74 | |
private Boolean supportsGetMembers; |
| 75 | |
@XmlAnyElement |
| 76 | |
private List<Element> _futureElements; |
| 77 | |
|
| 78 | |
|
| 79 | |
|
| 80 | |
|
| 81 | 0 | public PopulationRuleInfo() { |
| 82 | 0 | } |
| 83 | |
|
| 84 | |
|
| 85 | |
|
| 86 | |
|
| 87 | |
|
| 88 | |
|
| 89 | |
|
| 90 | |
public PopulationRuleInfo(PopulationRule populationRule) { |
| 91 | 0 | super(populationRule); |
| 92 | |
|
| 93 | 0 | if (populationRule != null) { |
| 94 | 0 | this.searchCriteria = populationRule.getSearchCriteria(); |
| 95 | 0 | if (populationRule.getAgendaIds() != null) { |
| 96 | 0 | this.agendaIds = new ArrayList<String>(populationRule.getAgendaIds()); |
| 97 | |
} |
| 98 | |
|
| 99 | 0 | if (populationRule.getGroupIds() != null) { |
| 100 | 0 | this.groupIds = new ArrayList<String>(populationRule.getGroupIds()); |
| 101 | |
} |
| 102 | |
|
| 103 | 0 | if (populationRule.getPersonIds() != null) { |
| 104 | 0 | this.personIds = new ArrayList<String>(populationRule.getPersonIds()); |
| 105 | |
} |
| 106 | |
|
| 107 | 0 | if (populationRule.getChildPopulationIds() != null) { |
| 108 | 0 | this.childPopulationIds = new ArrayList<String>(populationRule.getChildPopulationIds()); |
| 109 | |
} |
| 110 | |
|
| 111 | 0 | this.referencePopulationId = populationRule.getReferencePopulationId(); |
| 112 | |
|
| 113 | 0 | if (populationRule.getSortOrderTypeKeys() != null) { |
| 114 | 0 | this.sortOrderTypeKeys = new ArrayList<String>(populationRule.getSortOrderTypeKeys()); |
| 115 | |
} |
| 116 | |
|
| 117 | 0 | this.variesByTime = populationRule.getVariesByTime(); |
| 118 | 0 | this.supportsGetMembers = populationRule.getSupportsGetMembers(); |
| 119 | |
} |
| 120 | 0 | } |
| 121 | |
|
| 122 | |
@Override |
| 123 | |
public QueryByCriteria getSearchCriteria() { |
| 124 | 0 | return this.searchCriteria; |
| 125 | |
} |
| 126 | |
|
| 127 | |
public void setSearchCriteria(QueryByCriteria searchCriteria) { |
| 128 | 0 | this.searchCriteria = searchCriteria; |
| 129 | 0 | } |
| 130 | |
|
| 131 | |
@Override |
| 132 | |
public List<String> getAgendaIds() { |
| 133 | 0 | if (this.agendaIds == null) { |
| 134 | 0 | this.agendaIds = new ArrayList<String>(); |
| 135 | |
} |
| 136 | |
|
| 137 | 0 | return this.agendaIds; |
| 138 | |
} |
| 139 | |
|
| 140 | |
public void setAgendaIds(List<String> agendaIds) { |
| 141 | 0 | this.agendaIds = agendaIds; |
| 142 | 0 | } |
| 143 | |
|
| 144 | |
@Override |
| 145 | |
public List<String> getGroupIds() { |
| 146 | 0 | if (this.groupIds == null) { |
| 147 | 0 | this.groupIds = new ArrayList<String>(); |
| 148 | |
} |
| 149 | |
|
| 150 | 0 | return this.groupIds; |
| 151 | |
} |
| 152 | |
|
| 153 | |
public void setGroupIds(List<String> groupIds) { |
| 154 | 0 | this.groupIds = groupIds; |
| 155 | 0 | } |
| 156 | |
|
| 157 | |
@Override |
| 158 | |
public List<String> getPersonIds() { |
| 159 | 0 | if (this.personIds == null) { |
| 160 | 0 | this.personIds = new ArrayList<String>(); |
| 161 | |
} |
| 162 | |
|
| 163 | 0 | return this.personIds; |
| 164 | |
} |
| 165 | |
|
| 166 | |
public void setPersonIds(List<String> personIds) { |
| 167 | 0 | this.personIds = personIds; |
| 168 | 0 | } |
| 169 | |
|
| 170 | |
@Override |
| 171 | |
public List<String> getChildPopulationIds() { |
| 172 | 0 | if (this.childPopulationIds == null) { |
| 173 | 0 | this.childPopulationIds = new ArrayList<String>(); |
| 174 | |
} |
| 175 | |
|
| 176 | 0 | return this.childPopulationIds; |
| 177 | |
} |
| 178 | |
|
| 179 | |
public void setChildPopulationIds(List<String> childPopulationIds) { |
| 180 | 0 | this.childPopulationIds = childPopulationIds; |
| 181 | 0 | } |
| 182 | |
|
| 183 | |
@Override |
| 184 | |
public String getReferencePopulationId() { |
| 185 | 0 | return this.referencePopulationId; |
| 186 | |
} |
| 187 | |
|
| 188 | |
public void setReferencePopulationId(String referencePopulationId) { |
| 189 | 0 | this.referencePopulationId = referencePopulationId; |
| 190 | 0 | } |
| 191 | |
|
| 192 | |
@Override |
| 193 | |
public List<String> getSortOrderTypeKeys() { |
| 194 | 0 | if (this.sortOrderTypeKeys == null) { |
| 195 | 0 | this.sortOrderTypeKeys = new ArrayList<String>(); |
| 196 | |
} |
| 197 | |
|
| 198 | 0 | return this.sortOrderTypeKeys; |
| 199 | |
} |
| 200 | |
|
| 201 | |
public void setSortOrderTypeKeys(List<String> sortOrderTypeKeys) { |
| 202 | 0 | this.sortOrderTypeKeys = sortOrderTypeKeys; |
| 203 | 0 | } |
| 204 | |
|
| 205 | |
@Override |
| 206 | |
public Boolean getVariesByTime() { |
| 207 | 0 | return this.variesByTime; |
| 208 | |
} |
| 209 | |
|
| 210 | |
public void setVariesByTime(Boolean variesByTime) { |
| 211 | 0 | this.variesByTime = variesByTime; |
| 212 | 0 | } |
| 213 | |
|
| 214 | |
@Override |
| 215 | |
public Boolean getSupportsGetMembers() { |
| 216 | 0 | return supportsGetMembers; |
| 217 | |
} |
| 218 | |
|
| 219 | |
public void setSupportsGetMembers(Boolean supportsGetMembers) { |
| 220 | 0 | this.supportsGetMembers = supportsGetMembers; |
| 221 | 0 | } |
| 222 | |
} |