1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.core.proposal.dto; |
17 | |
|
18 | |
import java.io.Serializable; |
19 | |
import java.util.Date; |
20 | |
import java.util.HashMap; |
21 | |
import java.util.Map; |
22 | |
|
23 | |
import javax.xml.bind.annotation.XmlAccessType; |
24 | |
import javax.xml.bind.annotation.XmlAccessorType; |
25 | |
import javax.xml.bind.annotation.XmlAttribute; |
26 | |
import javax.xml.bind.annotation.XmlElement; |
27 | |
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
28 | |
|
29 | |
import org.kuali.student.core.dto.HasAttributes; |
30 | |
import org.kuali.student.core.dto.HasTypeState; |
31 | |
import org.kuali.student.core.dto.Idable; |
32 | |
import org.kuali.student.core.dto.MetaInfo; |
33 | |
import org.kuali.student.core.dto.RichTextInfo; |
34 | |
import org.kuali.student.core.ws.binding.JaxbAttributeMapListAdapter; |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
@XmlAccessorType(XmlAccessType.FIELD) |
46 | 0 | public class ProposalDocRelationInfo implements Serializable, Idable, HasTypeState, HasAttributes { |
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 | |
@XmlElement |
60 | |
private RichTextInfo desc; |
61 | |
|
62 | |
@XmlElement |
63 | |
private Date effectiveDate; |
64 | |
|
65 | |
@XmlElement |
66 | |
private Date expirationDate; |
67 | |
|
68 | |
@XmlElement |
69 | |
@XmlJavaTypeAdapter(JaxbAttributeMapListAdapter.class) |
70 | |
private Map<String, String> attributes; |
71 | |
|
72 | |
@XmlElement |
73 | |
private MetaInfo metaInfo; |
74 | |
|
75 | |
@XmlAttribute |
76 | |
private String type; |
77 | |
|
78 | |
@XmlAttribute |
79 | |
private String state; |
80 | |
|
81 | |
@XmlAttribute |
82 | |
private String id; |
83 | |
|
84 | |
|
85 | |
|
86 | |
|
87 | |
public String getProposalId() { |
88 | 0 | return proposalId; |
89 | |
} |
90 | |
|
91 | |
public void setProposalId(String proposalId) { |
92 | 0 | this.proposalId = proposalId; |
93 | 0 | } |
94 | |
|
95 | |
|
96 | |
|
97 | |
|
98 | |
public String getDocumentId() { |
99 | 0 | return documentId; |
100 | |
} |
101 | |
|
102 | |
public void setDocumentId(String documentId) { |
103 | 0 | this.documentId = documentId; |
104 | 0 | } |
105 | |
|
106 | |
|
107 | |
|
108 | |
|
109 | |
public String getTitle() { |
110 | 0 | return title; |
111 | |
} |
112 | |
|
113 | |
public void setTitle(String title) { |
114 | 0 | this.title = title; |
115 | 0 | } |
116 | |
|
117 | |
|
118 | |
|
119 | |
|
120 | |
public RichTextInfo getDesc() { |
121 | 0 | return desc; |
122 | |
} |
123 | |
|
124 | |
public void setDesc(RichTextInfo desc) { |
125 | 0 | this.desc = desc; |
126 | 0 | } |
127 | |
|
128 | |
|
129 | |
|
130 | |
|
131 | |
public Date getEffectiveDate() { |
132 | 0 | return effectiveDate; |
133 | |
} |
134 | |
|
135 | |
public void setEffectiveDate(Date effectiveDate) { |
136 | 0 | this.effectiveDate = effectiveDate; |
137 | 0 | } |
138 | |
|
139 | |
|
140 | |
|
141 | |
|
142 | |
public Date getExpirationDate() { |
143 | 0 | return expirationDate; |
144 | |
} |
145 | |
|
146 | |
public void setExpirationDate(Date expirationDate) { |
147 | 0 | this.expirationDate = expirationDate; |
148 | 0 | } |
149 | |
|
150 | |
|
151 | |
|
152 | |
|
153 | |
public Map<String, String> getAttributes() { |
154 | 0 | if (attributes == null) { |
155 | 0 | attributes = new HashMap<String, String>(); |
156 | |
} |
157 | 0 | return attributes; |
158 | |
} |
159 | |
|
160 | |
public void setAttributes(Map<String, String> attributes) { |
161 | 0 | this.attributes = attributes; |
162 | 0 | } |
163 | |
|
164 | |
|
165 | |
|
166 | |
|
167 | |
public MetaInfo getMetaInfo() { |
168 | 0 | return metaInfo; |
169 | |
} |
170 | |
|
171 | |
public void setMetaInfo(MetaInfo metaInfo) { |
172 | 0 | this.metaInfo = metaInfo; |
173 | 0 | } |
174 | |
|
175 | |
|
176 | |
|
177 | |
|
178 | |
public String getType() { |
179 | 0 | return type; |
180 | |
} |
181 | |
|
182 | |
public void setType(String type) { |
183 | 0 | this.type = type; |
184 | 0 | } |
185 | |
|
186 | |
|
187 | |
|
188 | |
|
189 | |
public String getState() { |
190 | 0 | return state; |
191 | |
} |
192 | |
|
193 | |
public void setState(String state) { |
194 | 0 | this.state = state; |
195 | 0 | } |
196 | |
|
197 | |
|
198 | |
|
199 | |
|
200 | |
public String getId() { |
201 | 0 | return id; |
202 | |
} |
203 | |
|
204 | |
public void setId(String id) { |
205 | 0 | this.id = id; |
206 | 0 | } |
207 | |
} |