| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
package org.kuali.student.r2.lum.program.dto; |
| 12 | |
|
| 13 | |
import java.io.Serializable; |
| 14 | |
import java.util.ArrayList; |
| 15 | |
import java.util.List; |
| 16 | |
|
| 17 | |
import javax.xml.bind.annotation.XmlAccessType; |
| 18 | |
import javax.xml.bind.annotation.XmlAccessorType; |
| 19 | |
import javax.xml.bind.annotation.XmlAnyElement; |
| 20 | |
import javax.xml.bind.annotation.XmlElement; |
| 21 | |
import javax.xml.bind.annotation.XmlType; |
| 22 | |
|
| 23 | |
import org.kuali.student.r2.lum.clu.dto.AdminOrgInfo; |
| 24 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramAtpAssembly; |
| 25 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramBasicOrgAssembly; |
| 26 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramCommonAssembly; |
| 27 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramIdentifierAssembly; |
| 28 | |
import org.kuali.student.r2.lum.program.dto.assembly.ProgramRequirementAssembly; |
| 29 | |
import org.kuali.student.r2.lum.program.infc.CredentialProgram; |
| 30 | |
import org.w3c.dom.Element; |
| 31 | |
|
| 32 | |
|
| 33 | |
|
| 34 | |
|
| 35 | |
|
| 36 | |
|
| 37 | |
|
| 38 | 0 | @XmlType(name = "CredentialProgramInfo", propOrder = {"id", |
| 39 | |
"typeKey", |
| 40 | |
"stateKey", |
| 41 | |
"version", |
| 42 | |
"descr", |
| 43 | |
"code", |
| 44 | |
"shortTitle", |
| 45 | |
"longTitle", |
| 46 | |
"transcriptTitle", |
| 47 | |
"universityClassification", |
| 48 | |
"startTerm", |
| 49 | |
"endTerm", |
| 50 | |
"endProgramEntryTerm", |
| 51 | |
"divisionsContentOwner", |
| 52 | |
"divisionsStudentOversight", |
| 53 | |
"unitsContentOwner", |
| 54 | |
"unitsStudentOversight", |
| 55 | |
"learningObjectives", |
| 56 | |
"programRequirements", |
| 57 | |
"institution", |
| 58 | |
"resultOptions", |
| 59 | |
"programLevel", |
| 60 | |
"coreProgramIds", |
| 61 | |
"meta", |
| 62 | |
"attributes", |
| 63 | |
"_futureElements"}) |
| 64 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 65 | |
public class CredentialProgramInfo extends CommonWithCredentialProgramInfo implements CredentialProgram, |
| 66 | |
ProgramCommonAssembly, |
| 67 | |
ProgramIdentifierAssembly, |
| 68 | |
ProgramAtpAssembly, |
| 69 | |
ProgramBasicOrgAssembly, |
| 70 | |
ProgramRequirementAssembly, |
| 71 | |
Serializable { |
| 72 | |
|
| 73 | |
private static final long serialVersionUID = 1L; |
| 74 | |
@XmlElement |
| 75 | |
private AdminOrgInfo institution; |
| 76 | |
@XmlElement |
| 77 | |
private List<String> resultOptions; |
| 78 | |
@XmlElement |
| 79 | |
private String programLevel; |
| 80 | |
@XmlElement |
| 81 | |
private List<String> coreProgramIds; |
| 82 | |
@XmlAnyElement |
| 83 | |
private List<Element> _futureElements; |
| 84 | |
|
| 85 | 0 | public CredentialProgramInfo() { |
| 86 | 0 | } |
| 87 | |
|
| 88 | |
public CredentialProgramInfo(CredentialProgram credentialProgram) { |
| 89 | 0 | super(credentialProgram); |
| 90 | 0 | if (credentialProgram != null) { |
| 91 | 0 | this.institution = new AdminOrgInfo(credentialProgram.getInstitution()); |
| 92 | 0 | this.resultOptions = credentialProgram.getResultOptions() != null |
| 93 | |
? new ArrayList<String>(credentialProgram.getResultOptions()) |
| 94 | |
: new ArrayList<String>(); |
| 95 | 0 | this.programLevel = credentialProgram.getProgramLevel(); |
| 96 | 0 | this.coreProgramIds = credentialProgram.getCoreProgramIds() != null |
| 97 | |
? new ArrayList<String>(credentialProgram.getCoreProgramIds()) |
| 98 | |
: new ArrayList<String>(); |
| 99 | |
} |
| 100 | 0 | } |
| 101 | |
|
| 102 | |
@Override |
| 103 | |
public List<String> getCoreProgramIds() { |
| 104 | 0 | return coreProgramIds; |
| 105 | |
} |
| 106 | |
|
| 107 | |
public void setCoreProgramIds(List<String> coreProgramIds) { |
| 108 | 0 | this.coreProgramIds = coreProgramIds; |
| 109 | 0 | } |
| 110 | |
|
| 111 | |
|
| 112 | |
|
| 113 | |
|
| 114 | |
|
| 115 | |
@Deprecated |
| 116 | |
public String getCredentialProgramType() { |
| 117 | 0 | return this.getTypeKey(); |
| 118 | |
} |
| 119 | |
|
| 120 | |
|
| 121 | |
|
| 122 | |
|
| 123 | |
|
| 124 | |
@Deprecated |
| 125 | |
public void setCredentialProgramType(String credentialProgramType) { |
| 126 | 0 | this.setTypeKey(credentialProgramType); |
| 127 | 0 | } |
| 128 | |
|
| 129 | |
@Override |
| 130 | |
public String getProgramLevel() { |
| 131 | 0 | return programLevel; |
| 132 | |
} |
| 133 | |
|
| 134 | |
public void setProgramLevel(String programLevel) { |
| 135 | 0 | this.programLevel = programLevel; |
| 136 | 0 | } |
| 137 | |
|
| 138 | |
@Override |
| 139 | |
public AdminOrgInfo getInstitution() { |
| 140 | 0 | return institution; |
| 141 | |
} |
| 142 | |
|
| 143 | |
public void setInstitution(AdminOrgInfo institution) { |
| 144 | 0 | this.institution = institution; |
| 145 | 0 | } |
| 146 | |
|
| 147 | |
@Override |
| 148 | |
public List<String> getResultOptions() { |
| 149 | 0 | return resultOptions; |
| 150 | |
} |
| 151 | |
|
| 152 | |
public void setResultOptions(List<String> resultOptions) { |
| 153 | 0 | this.resultOptions = resultOptions; |
| 154 | 0 | } |
| 155 | |
|
| 156 | |
} |