1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
package org.kuali.student.r2.core.proposal.dto; |
13 | |
|
14 | |
import java.io.Serializable; |
15 | |
import java.util.Date; |
16 | |
import java.util.HashMap; |
17 | |
import java.util.List; |
18 | |
import java.util.Map; |
19 | |
|
20 | |
import javax.xml.bind.annotation.XmlAccessType; |
21 | |
import javax.xml.bind.annotation.XmlAccessorType; |
22 | |
import javax.xml.bind.annotation.XmlAnyElement; |
23 | |
import javax.xml.bind.annotation.XmlAttribute; |
24 | |
import javax.xml.bind.annotation.XmlElement; |
25 | |
import javax.xml.bind.annotation.XmlType; |
26 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
27 | |
|
28 | |
import org.kuali.student.common.dto.HasAttributes; |
29 | |
import org.kuali.student.common.dto.HasTypeState; |
30 | |
import org.kuali.student.common.dto.Idable; |
31 | |
import org.kuali.student.common.dto.MetaInfo; |
32 | |
import org.kuali.student.common.dto.RichTextInfo; |
33 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
34 | |
import org.kuali.student.r2.common.dto.RelationshipInfo; |
35 | |
import org.kuali.student.r2.core.proposal.infc.ProposalDocRelation; |
36 | |
import org.w3c.dom.Element; |
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
@XmlType(name = "ProposalDocRelationInfo", propOrder = {"id", "typeKey", "stateKey", "proposalId", "documentId", "title", "effectiveDate", "expirationDate", "meta", "attributes", "_futureElements"}) |
45 | |
@XmlAccessorType(XmlAccessType.FIELD) |
46 | |
public class ProposalDocRelationInfo extends RelationshipInfo implements ProposalDocRelation, Serializable { |
47 | |
|
48 | |
private static final long serialVersionUID = 1L; |
49 | |
|
50 | |
@XmlElement |
51 | |
private String proposalId; |
52 | |
|
53 | |
@XmlElement |
54 | |
private String documentId; |
55 | |
|
56 | |
@XmlElement |
57 | |
private String title; |
58 | |
|
59 | |
@XmlAnyElement |
60 | |
private List<Element> _futureElements; |
61 | |
|
62 | 0 | public ProposalDocRelationInfo() { |
63 | |
|
64 | 0 | } |
65 | |
|
66 | |
public ProposalDocRelationInfo(ProposalDocRelation proposalDocRelation) { |
67 | 0 | super(proposalDocRelation); |
68 | 0 | if (proposalDocRelation != null) { |
69 | 0 | this.proposalId = proposalDocRelation.getProposalId(); |
70 | 0 | this.documentId = proposalDocRelation.getDocumentId(); |
71 | 0 | this.title = proposalDocRelation.getTitle(); |
72 | |
} |
73 | 0 | } |
74 | |
|
75 | |
|
76 | |
|
77 | |
|
78 | |
public String getProposalId() { |
79 | 0 | return proposalId; |
80 | |
} |
81 | |
|
82 | |
public void setProposalId(String proposalId) { |
83 | 0 | this.proposalId = proposalId; |
84 | 0 | } |
85 | |
|
86 | |
|
87 | |
|
88 | |
|
89 | |
public String getDocumentId() { |
90 | 0 | return documentId; |
91 | |
} |
92 | |
|
93 | |
public void setDocumentId(String documentId) { |
94 | 0 | this.documentId = documentId; |
95 | 0 | } |
96 | |
|
97 | |
|
98 | |
|
99 | |
|
100 | |
public String getTitle() { |
101 | 0 | return title; |
102 | |
} |
103 | |
|
104 | |
public void setTitle(String title) { |
105 | 0 | this.title = title; |
106 | 0 | } |
107 | |
|
108 | |
} |