1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.announcements.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="AnnouncementsEntrySoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap
47   *
48   */
49  public class AnnouncementsEntrySoap implements Serializable {
50      public static AnnouncementsEntrySoap toSoapModel(AnnouncementsEntry model) {
51          AnnouncementsEntrySoap soapModel = new AnnouncementsEntrySoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setEntryId(model.getEntryId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setClassNameId(model.getClassNameId());
61          soapModel.setClassPK(model.getClassPK());
62          soapModel.setTitle(model.getTitle());
63          soapModel.setContent(model.getContent());
64          soapModel.setUrl(model.getUrl());
65          soapModel.setType(model.getType());
66          soapModel.setDisplayDate(model.getDisplayDate());
67          soapModel.setExpirationDate(model.getExpirationDate());
68          soapModel.setPriority(model.getPriority());
69          soapModel.setAlert(model.getAlert());
70  
71          return soapModel;
72      }
73  
74      public static AnnouncementsEntrySoap[] toSoapModels(
75          AnnouncementsEntry[] models) {
76          AnnouncementsEntrySoap[] soapModels = new AnnouncementsEntrySoap[models.length];
77  
78          for (int i = 0; i < models.length; i++) {
79              soapModels[i] = toSoapModel(models[i]);
80          }
81  
82          return soapModels;
83      }
84  
85      public static AnnouncementsEntrySoap[][] toSoapModels(
86          AnnouncementsEntry[][] models) {
87          AnnouncementsEntrySoap[][] soapModels = null;
88  
89          if (models.length > 0) {
90              soapModels = new AnnouncementsEntrySoap[models.length][models[0].length];
91          }
92          else {
93              soapModels = new AnnouncementsEntrySoap[0][0];
94          }
95  
96          for (int i = 0; i < models.length; i++) {
97              soapModels[i] = toSoapModels(models[i]);
98          }
99  
100         return soapModels;
101     }
102 
103     public static AnnouncementsEntrySoap[] toSoapModels(
104         List<AnnouncementsEntry> models) {
105         List<AnnouncementsEntrySoap> soapModels = new ArrayList<AnnouncementsEntrySoap>(models.size());
106 
107         for (AnnouncementsEntry model : models) {
108             soapModels.add(toSoapModel(model));
109         }
110 
111         return soapModels.toArray(new AnnouncementsEntrySoap[soapModels.size()]);
112     }
113 
114     public AnnouncementsEntrySoap() {
115     }
116 
117     public long getPrimaryKey() {
118         return _entryId;
119     }
120 
121     public void setPrimaryKey(long pk) {
122         setEntryId(pk);
123     }
124 
125     public String getUuid() {
126         return _uuid;
127     }
128 
129     public void setUuid(String uuid) {
130         _uuid = uuid;
131     }
132 
133     public long getEntryId() {
134         return _entryId;
135     }
136 
137     public void setEntryId(long entryId) {
138         _entryId = entryId;
139     }
140 
141     public long getCompanyId() {
142         return _companyId;
143     }
144 
145     public void setCompanyId(long companyId) {
146         _companyId = companyId;
147     }
148 
149     public long getUserId() {
150         return _userId;
151     }
152 
153     public void setUserId(long userId) {
154         _userId = userId;
155     }
156 
157     public String getUserName() {
158         return _userName;
159     }
160 
161     public void setUserName(String userName) {
162         _userName = userName;
163     }
164 
165     public Date getCreateDate() {
166         return _createDate;
167     }
168 
169     public void setCreateDate(Date createDate) {
170         _createDate = createDate;
171     }
172 
173     public Date getModifiedDate() {
174         return _modifiedDate;
175     }
176 
177     public void setModifiedDate(Date modifiedDate) {
178         _modifiedDate = modifiedDate;
179     }
180 
181     public long getClassNameId() {
182         return _classNameId;
183     }
184 
185     public void setClassNameId(long classNameId) {
186         _classNameId = classNameId;
187     }
188 
189     public long getClassPK() {
190         return _classPK;
191     }
192 
193     public void setClassPK(long classPK) {
194         _classPK = classPK;
195     }
196 
197     public String getTitle() {
198         return _title;
199     }
200 
201     public void setTitle(String title) {
202         _title = title;
203     }
204 
205     public String getContent() {
206         return _content;
207     }
208 
209     public void setContent(String content) {
210         _content = content;
211     }
212 
213     public String getUrl() {
214         return _url;
215     }
216 
217     public void setUrl(String url) {
218         _url = url;
219     }
220 
221     public String getType() {
222         return _type;
223     }
224 
225     public void setType(String type) {
226         _type = type;
227     }
228 
229     public Date getDisplayDate() {
230         return _displayDate;
231     }
232 
233     public void setDisplayDate(Date displayDate) {
234         _displayDate = displayDate;
235     }
236 
237     public Date getExpirationDate() {
238         return _expirationDate;
239     }
240 
241     public void setExpirationDate(Date expirationDate) {
242         _expirationDate = expirationDate;
243     }
244 
245     public int getPriority() {
246         return _priority;
247     }
248 
249     public void setPriority(int priority) {
250         _priority = priority;
251     }
252 
253     public boolean getAlert() {
254         return _alert;
255     }
256 
257     public boolean isAlert() {
258         return _alert;
259     }
260 
261     public void setAlert(boolean alert) {
262         _alert = alert;
263     }
264 
265     private String _uuid;
266     private long _entryId;
267     private long _companyId;
268     private long _userId;
269     private String _userName;
270     private Date _createDate;
271     private Date _modifiedDate;
272     private long _classNameId;
273     private long _classPK;
274     private String _title;
275     private String _content;
276     private String _url;
277     private String _type;
278     private Date _displayDate;
279     private Date _expirationDate;
280     private int _priority;
281     private boolean _alert;
282 }