001
014
015 package com.liferay.portlet.announcements.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.Date;
021 import java.util.List;
022
023
030 public class AnnouncementsEntrySoap implements Serializable {
031 public static AnnouncementsEntrySoap toSoapModel(AnnouncementsEntry model) {
032 AnnouncementsEntrySoap soapModel = new AnnouncementsEntrySoap();
033
034 soapModel.setUuid(model.getUuid());
035 soapModel.setEntryId(model.getEntryId());
036 soapModel.setCompanyId(model.getCompanyId());
037 soapModel.setUserId(model.getUserId());
038 soapModel.setUserName(model.getUserName());
039 soapModel.setCreateDate(model.getCreateDate());
040 soapModel.setModifiedDate(model.getModifiedDate());
041 soapModel.setClassNameId(model.getClassNameId());
042 soapModel.setClassPK(model.getClassPK());
043 soapModel.setTitle(model.getTitle());
044 soapModel.setContent(model.getContent());
045 soapModel.setUrl(model.getUrl());
046 soapModel.setType(model.getType());
047 soapModel.setDisplayDate(model.getDisplayDate());
048 soapModel.setExpirationDate(model.getExpirationDate());
049 soapModel.setPriority(model.getPriority());
050 soapModel.setAlert(model.getAlert());
051
052 return soapModel;
053 }
054
055 public static AnnouncementsEntrySoap[] toSoapModels(
056 AnnouncementsEntry[] models) {
057 AnnouncementsEntrySoap[] soapModels = new AnnouncementsEntrySoap[models.length];
058
059 for (int i = 0; i < models.length; i++) {
060 soapModels[i] = toSoapModel(models[i]);
061 }
062
063 return soapModels;
064 }
065
066 public static AnnouncementsEntrySoap[][] toSoapModels(
067 AnnouncementsEntry[][] models) {
068 AnnouncementsEntrySoap[][] soapModels = null;
069
070 if (models.length > 0) {
071 soapModels = new AnnouncementsEntrySoap[models.length][models[0].length];
072 }
073 else {
074 soapModels = new AnnouncementsEntrySoap[0][0];
075 }
076
077 for (int i = 0; i < models.length; i++) {
078 soapModels[i] = toSoapModels(models[i]);
079 }
080
081 return soapModels;
082 }
083
084 public static AnnouncementsEntrySoap[] toSoapModels(
085 List<AnnouncementsEntry> models) {
086 List<AnnouncementsEntrySoap> soapModels = new ArrayList<AnnouncementsEntrySoap>(models.size());
087
088 for (AnnouncementsEntry model : models) {
089 soapModels.add(toSoapModel(model));
090 }
091
092 return soapModels.toArray(new AnnouncementsEntrySoap[soapModels.size()]);
093 }
094
095 public AnnouncementsEntrySoap() {
096 }
097
098 public long getPrimaryKey() {
099 return _entryId;
100 }
101
102 public void setPrimaryKey(long pk) {
103 setEntryId(pk);
104 }
105
106 public String getUuid() {
107 return _uuid;
108 }
109
110 public void setUuid(String uuid) {
111 _uuid = uuid;
112 }
113
114 public long getEntryId() {
115 return _entryId;
116 }
117
118 public void setEntryId(long entryId) {
119 _entryId = entryId;
120 }
121
122 public long getCompanyId() {
123 return _companyId;
124 }
125
126 public void setCompanyId(long companyId) {
127 _companyId = companyId;
128 }
129
130 public long getUserId() {
131 return _userId;
132 }
133
134 public void setUserId(long userId) {
135 _userId = userId;
136 }
137
138 public String getUserName() {
139 return _userName;
140 }
141
142 public void setUserName(String userName) {
143 _userName = userName;
144 }
145
146 public Date getCreateDate() {
147 return _createDate;
148 }
149
150 public void setCreateDate(Date createDate) {
151 _createDate = createDate;
152 }
153
154 public Date getModifiedDate() {
155 return _modifiedDate;
156 }
157
158 public void setModifiedDate(Date modifiedDate) {
159 _modifiedDate = modifiedDate;
160 }
161
162 public long getClassNameId() {
163 return _classNameId;
164 }
165
166 public void setClassNameId(long classNameId) {
167 _classNameId = classNameId;
168 }
169
170 public long getClassPK() {
171 return _classPK;
172 }
173
174 public void setClassPK(long classPK) {
175 _classPK = classPK;
176 }
177
178 public String getTitle() {
179 return _title;
180 }
181
182 public void setTitle(String title) {
183 _title = title;
184 }
185
186 public String getContent() {
187 return _content;
188 }
189
190 public void setContent(String content) {
191 _content = content;
192 }
193
194 public String getUrl() {
195 return _url;
196 }
197
198 public void setUrl(String url) {
199 _url = url;
200 }
201
202 public String getType() {
203 return _type;
204 }
205
206 public void setType(String type) {
207 _type = type;
208 }
209
210 public Date getDisplayDate() {
211 return _displayDate;
212 }
213
214 public void setDisplayDate(Date displayDate) {
215 _displayDate = displayDate;
216 }
217
218 public Date getExpirationDate() {
219 return _expirationDate;
220 }
221
222 public void setExpirationDate(Date expirationDate) {
223 _expirationDate = expirationDate;
224 }
225
226 public int getPriority() {
227 return _priority;
228 }
229
230 public void setPriority(int priority) {
231 _priority = priority;
232 }
233
234 public boolean getAlert() {
235 return _alert;
236 }
237
238 public boolean isAlert() {
239 return _alert;
240 }
241
242 public void setAlert(boolean alert) {
243 _alert = alert;
244 }
245
246 private String _uuid;
247 private long _entryId;
248 private long _companyId;
249 private long _userId;
250 private String _userName;
251 private Date _createDate;
252 private Date _modifiedDate;
253 private long _classNameId;
254 private long _classPK;
255 private String _title;
256 private String _content;
257 private String _url;
258 private String _type;
259 private Date _displayDate;
260 private Date _expirationDate;
261 private int _priority;
262 private boolean _alert;
263 }