1
19
20 package com.liferay.portlet.announcements.model;
21
22 import java.io.Serializable;
23
24 import java.util.ArrayList;
25 import java.util.Date;
26 import java.util.List;
27
28
46 public class AnnouncementsEntrySoap implements Serializable {
47 public static AnnouncementsEntrySoap toSoapModel(AnnouncementsEntry model) {
48 AnnouncementsEntrySoap soapModel = new AnnouncementsEntrySoap();
49
50 soapModel.setUuid(model.getUuid());
51 soapModel.setEntryId(model.getEntryId());
52 soapModel.setCompanyId(model.getCompanyId());
53 soapModel.setUserId(model.getUserId());
54 soapModel.setUserName(model.getUserName());
55 soapModel.setCreateDate(model.getCreateDate());
56 soapModel.setModifiedDate(model.getModifiedDate());
57 soapModel.setClassNameId(model.getClassNameId());
58 soapModel.setClassPK(model.getClassPK());
59 soapModel.setTitle(model.getTitle());
60 soapModel.setContent(model.getContent());
61 soapModel.setUrl(model.getUrl());
62 soapModel.setType(model.getType());
63 soapModel.setDisplayDate(model.getDisplayDate());
64 soapModel.setExpirationDate(model.getExpirationDate());
65 soapModel.setPriority(model.getPriority());
66 soapModel.setAlert(model.getAlert());
67
68 return soapModel;
69 }
70
71 public static AnnouncementsEntrySoap[] toSoapModels(
72 List<AnnouncementsEntry> models) {
73 List<AnnouncementsEntrySoap> soapModels = new ArrayList<AnnouncementsEntrySoap>(models.size());
74
75 for (AnnouncementsEntry model : models) {
76 soapModels.add(toSoapModel(model));
77 }
78
79 return soapModels.toArray(new AnnouncementsEntrySoap[soapModels.size()]);
80 }
81
82 public AnnouncementsEntrySoap() {
83 }
84
85 public long getPrimaryKey() {
86 return _entryId;
87 }
88
89 public void setPrimaryKey(long pk) {
90 setEntryId(pk);
91 }
92
93 public String getUuid() {
94 return _uuid;
95 }
96
97 public void setUuid(String uuid) {
98 _uuid = uuid;
99 }
100
101 public long getEntryId() {
102 return _entryId;
103 }
104
105 public void setEntryId(long entryId) {
106 _entryId = entryId;
107 }
108
109 public long getCompanyId() {
110 return _companyId;
111 }
112
113 public void setCompanyId(long companyId) {
114 _companyId = companyId;
115 }
116
117 public long getUserId() {
118 return _userId;
119 }
120
121 public void setUserId(long userId) {
122 _userId = userId;
123 }
124
125 public String getUserName() {
126 return _userName;
127 }
128
129 public void setUserName(String userName) {
130 _userName = userName;
131 }
132
133 public Date getCreateDate() {
134 return _createDate;
135 }
136
137 public void setCreateDate(Date createDate) {
138 _createDate = createDate;
139 }
140
141 public Date getModifiedDate() {
142 return _modifiedDate;
143 }
144
145 public void setModifiedDate(Date modifiedDate) {
146 _modifiedDate = modifiedDate;
147 }
148
149 public long getClassNameId() {
150 return _classNameId;
151 }
152
153 public void setClassNameId(long classNameId) {
154 _classNameId = classNameId;
155 }
156
157 public long getClassPK() {
158 return _classPK;
159 }
160
161 public void setClassPK(long classPK) {
162 _classPK = classPK;
163 }
164
165 public String getTitle() {
166 return _title;
167 }
168
169 public void setTitle(String title) {
170 _title = title;
171 }
172
173 public String getContent() {
174 return _content;
175 }
176
177 public void setContent(String content) {
178 _content = content;
179 }
180
181 public String getUrl() {
182 return _url;
183 }
184
185 public void setUrl(String url) {
186 _url = url;
187 }
188
189 public String getType() {
190 return _type;
191 }
192
193 public void setType(String type) {
194 _type = type;
195 }
196
197 public Date getDisplayDate() {
198 return _displayDate;
199 }
200
201 public void setDisplayDate(Date displayDate) {
202 _displayDate = displayDate;
203 }
204
205 public Date getExpirationDate() {
206 return _expirationDate;
207 }
208
209 public void setExpirationDate(Date expirationDate) {
210 _expirationDate = expirationDate;
211 }
212
213 public int getPriority() {
214 return _priority;
215 }
216
217 public void setPriority(int priority) {
218 _priority = priority;
219 }
220
221 public boolean getAlert() {
222 return _alert;
223 }
224
225 public boolean isAlert() {
226 return _alert;
227 }
228
229 public void setAlert(boolean alert) {
230 _alert = alert;
231 }
232
233 private String _uuid;
234 private long _entryId;
235 private long _companyId;
236 private long _userId;
237 private String _userName;
238 private Date _createDate;
239 private Date _modifiedDate;
240 private long _classNameId;
241 private long _classPK;
242 private String _title;
243 private String _content;
244 private String _url;
245 private String _type;
246 private Date _displayDate;
247 private Date _expirationDate;
248 private int _priority;
249 private boolean _alert;
250 }