| 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.*; |
| 18 | |
|
| 19 | |
|
| 20 | |
import org.kuali.student.r2.common.dto.RichTextInfo; |
| 21 | |
import org.kuali.student.r2.lum.program.infc.CommonWithCoreProgram; |
| 22 | |
|
| 23 | 0 | @SuppressWarnings("serial") |
| 24 | |
@XmlTransient |
| 25 | |
public class CommonWithCoreProgramInfo extends CommonWithCredentialProgramInfo |
| 26 | |
implements CommonWithCoreProgram, |
| 27 | |
Serializable { |
| 28 | |
|
| 29 | |
@XmlElement |
| 30 | |
private String referenceURL; |
| 31 | |
@XmlElement |
| 32 | |
private RichTextInfo catalogDescr; |
| 33 | |
@XmlElement |
| 34 | |
private List<String> catalogPublicationTargets; |
| 35 | |
|
| 36 | 0 | public CommonWithCoreProgramInfo() { |
| 37 | 0 | } |
| 38 | |
|
| 39 | |
public CommonWithCoreProgramInfo(CommonWithCoreProgram input) { |
| 40 | 0 | super(input); |
| 41 | 0 | if (input != null) { |
| 42 | 0 | this.referenceURL = input.getReferenceURL(); |
| 43 | 0 | if (input.getCatalogDescr() != null) { |
| 44 | 0 | this.catalogDescr = new RichTextInfo(input.getCatalogDescr()); |
| 45 | |
} |
| 46 | 0 | this.catalogPublicationTargets = input.getCatalogPublicationTargets() != null |
| 47 | |
? new ArrayList<String>(input.getCatalogPublicationTargets()) |
| 48 | |
: new ArrayList<String>(); |
| 49 | |
} |
| 50 | 0 | } |
| 51 | |
|
| 52 | |
@Override |
| 53 | |
public String getReferenceURL() { |
| 54 | 0 | return referenceURL; |
| 55 | |
} |
| 56 | |
|
| 57 | |
public void setReferenceURL(String referenceURL) { |
| 58 | 0 | this.referenceURL = referenceURL; |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
@Override |
| 62 | |
public RichTextInfo getCatalogDescr() { |
| 63 | 0 | return catalogDescr; |
| 64 | |
} |
| 65 | |
|
| 66 | |
public void setCatalogDescr(RichTextInfo catalogDescr) { |
| 67 | 0 | this.catalogDescr = catalogDescr; |
| 68 | 0 | } |
| 69 | |
|
| 70 | |
@Override |
| 71 | |
public List<String> getCatalogPublicationTargets() { |
| 72 | 0 | return catalogPublicationTargets; |
| 73 | |
} |
| 74 | |
|
| 75 | |
public void setCatalogPublicationTargets(List<String> catalogPublicationTargets) { |
| 76 | 0 | this.catalogPublicationTargets = catalogPublicationTargets; |
| 77 | 0 | } |
| 78 | |
} |