1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.announcements.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="AnnouncementsEntrySoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap
38   * @generated
39   */
40  public class AnnouncementsEntrySoap implements Serializable {
41      public static AnnouncementsEntrySoap toSoapModel(AnnouncementsEntry model) {
42          AnnouncementsEntrySoap soapModel = new AnnouncementsEntrySoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setEntryId(model.getEntryId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setUserName(model.getUserName());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setClassNameId(model.getClassNameId());
52          soapModel.setClassPK(model.getClassPK());
53          soapModel.setTitle(model.getTitle());
54          soapModel.setContent(model.getContent());
55          soapModel.setUrl(model.getUrl());
56          soapModel.setType(model.getType());
57          soapModel.setDisplayDate(model.getDisplayDate());
58          soapModel.setExpirationDate(model.getExpirationDate());
59          soapModel.setPriority(model.getPriority());
60          soapModel.setAlert(model.getAlert());
61  
62          return soapModel;
63      }
64  
65      public static AnnouncementsEntrySoap[] toSoapModels(
66          AnnouncementsEntry[] models) {
67          AnnouncementsEntrySoap[] soapModels = new AnnouncementsEntrySoap[models.length];
68  
69          for (int i = 0; i < models.length; i++) {
70              soapModels[i] = toSoapModel(models[i]);
71          }
72  
73          return soapModels;
74      }
75  
76      public static AnnouncementsEntrySoap[][] toSoapModels(
77          AnnouncementsEntry[][] models) {
78          AnnouncementsEntrySoap[][] soapModels = null;
79  
80          if (models.length > 0) {
81              soapModels = new AnnouncementsEntrySoap[models.length][models[0].length];
82          }
83          else {
84              soapModels = new AnnouncementsEntrySoap[0][0];
85          }
86  
87          for (int i = 0; i < models.length; i++) {
88              soapModels[i] = toSoapModels(models[i]);
89          }
90  
91          return soapModels;
92      }
93  
94      public static AnnouncementsEntrySoap[] toSoapModels(
95          List<AnnouncementsEntry> models) {
96          List<AnnouncementsEntrySoap> soapModels = new ArrayList<AnnouncementsEntrySoap>(models.size());
97  
98          for (AnnouncementsEntry model : models) {
99              soapModels.add(toSoapModel(model));
100         }
101 
102         return soapModels.toArray(new AnnouncementsEntrySoap[soapModels.size()]);
103     }
104 
105     public AnnouncementsEntrySoap() {
106     }
107 
108     public long getPrimaryKey() {
109         return _entryId;
110     }
111 
112     public void setPrimaryKey(long pk) {
113         setEntryId(pk);
114     }
115 
116     public String getUuid() {
117         return _uuid;
118     }
119 
120     public void setUuid(String uuid) {
121         _uuid = uuid;
122     }
123 
124     public long getEntryId() {
125         return _entryId;
126     }
127 
128     public void setEntryId(long entryId) {
129         _entryId = entryId;
130     }
131 
132     public long getCompanyId() {
133         return _companyId;
134     }
135 
136     public void setCompanyId(long companyId) {
137         _companyId = companyId;
138     }
139 
140     public long getUserId() {
141         return _userId;
142     }
143 
144     public void setUserId(long userId) {
145         _userId = userId;
146     }
147 
148     public String getUserName() {
149         return _userName;
150     }
151 
152     public void setUserName(String userName) {
153         _userName = userName;
154     }
155 
156     public Date getCreateDate() {
157         return _createDate;
158     }
159 
160     public void setCreateDate(Date createDate) {
161         _createDate = createDate;
162     }
163 
164     public Date getModifiedDate() {
165         return _modifiedDate;
166     }
167 
168     public void setModifiedDate(Date modifiedDate) {
169         _modifiedDate = modifiedDate;
170     }
171 
172     public long getClassNameId() {
173         return _classNameId;
174     }
175 
176     public void setClassNameId(long classNameId) {
177         _classNameId = classNameId;
178     }
179 
180     public long getClassPK() {
181         return _classPK;
182     }
183 
184     public void setClassPK(long classPK) {
185         _classPK = classPK;
186     }
187 
188     public String getTitle() {
189         return _title;
190     }
191 
192     public void setTitle(String title) {
193         _title = title;
194     }
195 
196     public String getContent() {
197         return _content;
198     }
199 
200     public void setContent(String content) {
201         _content = content;
202     }
203 
204     public String getUrl() {
205         return _url;
206     }
207 
208     public void setUrl(String url) {
209         _url = url;
210     }
211 
212     public String getType() {
213         return _type;
214     }
215 
216     public void setType(String type) {
217         _type = type;
218     }
219 
220     public Date getDisplayDate() {
221         return _displayDate;
222     }
223 
224     public void setDisplayDate(Date displayDate) {
225         _displayDate = displayDate;
226     }
227 
228     public Date getExpirationDate() {
229         return _expirationDate;
230     }
231 
232     public void setExpirationDate(Date expirationDate) {
233         _expirationDate = expirationDate;
234     }
235 
236     public int getPriority() {
237         return _priority;
238     }
239 
240     public void setPriority(int priority) {
241         _priority = priority;
242     }
243 
244     public boolean getAlert() {
245         return _alert;
246     }
247 
248     public boolean isAlert() {
249         return _alert;
250     }
251 
252     public void setAlert(boolean alert) {
253         _alert = alert;
254     }
255 
256     private String _uuid;
257     private long _entryId;
258     private long _companyId;
259     private long _userId;
260     private String _userName;
261     private Date _createDate;
262     private Date _modifiedDate;
263     private long _classNameId;
264     private long _classPK;
265     private String _title;
266     private String _content;
267     private String _url;
268     private String _type;
269     private Date _displayDate;
270     private Date _expirationDate;
271     private int _priority;
272     private boolean _alert;
273 }