| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
package org.kuali.student.r2.lum.lo.dto; |
| 13 | |
|
| 14 | |
import org.kuali.student.r2.common.dto.IdEntityInfo; |
| 15 | |
import org.kuali.student.r2.lum.lo.infc.LoCategory; |
| 16 | |
import org.w3c.dom.Element; |
| 17 | |
|
| 18 | |
import javax.xml.bind.annotation.XmlAccessType; |
| 19 | |
import javax.xml.bind.annotation.XmlAccessorType; |
| 20 | |
import javax.xml.bind.annotation.XmlAnyElement; |
| 21 | |
import javax.xml.bind.annotation.XmlType; |
| 22 | |
|
| 23 | |
import javax.xml.bind.annotation.XmlElement; |
| 24 | |
import java.io.Serializable; |
| 25 | |
import java.util.Date; |
| 26 | |
import java.util.List; |
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
|
| 32 | |
|
| 33 | |
@XmlType(name = "LoCategoryInfo", propOrder = {"id", "typeKey", "stateKey", "name", "descr", "loRepositoryKey", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"}) |
| 34 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 35 | |
public class LoCategoryInfo extends IdEntityInfo implements LoCategory, Serializable { |
| 36 | |
|
| 37 | |
private static final long serialVersionUID = 1L; |
| 38 | |
|
| 39 | |
@XmlElement |
| 40 | |
private String loRepositoryKey; |
| 41 | |
|
| 42 | |
@XmlElement |
| 43 | |
private Date effectiveDate; |
| 44 | |
|
| 45 | |
@XmlElement |
| 46 | |
private Date expirationDate; |
| 47 | |
|
| 48 | |
@XmlAnyElement |
| 49 | |
private List<Element> _futureElements; |
| 50 | |
|
| 51 | 0 | public LoCategoryInfo() { |
| 52 | |
|
| 53 | 0 | } |
| 54 | |
|
| 55 | |
public LoCategoryInfo(LoCategory loCategory) { |
| 56 | 0 | super(loCategory); |
| 57 | 0 | if (loCategory != null) { |
| 58 | 0 | this.loRepositoryKey = loCategory.getLoRepositoryKey(); |
| 59 | 0 | this.effectiveDate = new Date(loCategory.getEffectiveDate().getTime()); |
| 60 | 0 | this.expirationDate = new Date(loCategory.getExpirationDate().getTime()); |
| 61 | |
} |
| 62 | 0 | } |
| 63 | |
|
| 64 | |
@Override |
| 65 | |
public String getLoRepositoryKey() { |
| 66 | 0 | return loRepositoryKey; |
| 67 | |
} |
| 68 | |
|
| 69 | |
public void setLoRepositoryKey(String loRepositoryKey) { |
| 70 | 0 | this.loRepositoryKey = loRepositoryKey; |
| 71 | 0 | } |
| 72 | |
|
| 73 | |
@Override |
| 74 | |
public Date getEffectiveDate() { |
| 75 | 0 | return effectiveDate; |
| 76 | |
} |
| 77 | |
|
| 78 | |
public void setEffectiveDate(Date effectiveDate) { |
| 79 | 0 | this.effectiveDate = effectiveDate; |
| 80 | 0 | } |
| 81 | |
|
| 82 | |
@Override |
| 83 | |
public Date getExpirationDate() { |
| 84 | 0 | return expirationDate; |
| 85 | |
} |
| 86 | |
|
| 87 | |
public void setExpirationDate(Date expirationDate) { |
| 88 | 0 | this.expirationDate = expirationDate; |
| 89 | 0 | } |
| 90 | |
|
| 91 | |
} |