1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * {@link com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap
46   * @generated
47   */
48  public class AnnouncementsEntrySoap implements Serializable {
49      public static AnnouncementsEntrySoap toSoapModel(AnnouncementsEntry model) {
50          AnnouncementsEntrySoap soapModel = new AnnouncementsEntrySoap();
51  
52          soapModel.setUuid(model.getUuid());
53          soapModel.setEntryId(model.getEntryId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setUserName(model.getUserName());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setClassNameId(model.getClassNameId());
60          soapModel.setClassPK(model.getClassPK());
61          soapModel.setTitle(model.getTitle());
62          soapModel.setContent(model.getContent());
63          soapModel.setUrl(model.getUrl());
64          soapModel.setType(model.getType());
65          soapModel.setDisplayDate(model.getDisplayDate());
66          soapModel.setExpirationDate(model.getExpirationDate());
67          soapModel.setPriority(model.getPriority());
68          soapModel.setAlert(model.getAlert());
69  
70          return soapModel;
71      }
72  
73      public static AnnouncementsEntrySoap[] toSoapModels(
74          AnnouncementsEntry[] models) {
75          AnnouncementsEntrySoap[] soapModels = new AnnouncementsEntrySoap[models.length];
76  
77          for (int i = 0; i < models.length; i++) {
78              soapModels[i] = toSoapModel(models[i]);
79          }
80  
81          return soapModels;
82      }
83  
84      public static AnnouncementsEntrySoap[][] toSoapModels(
85          AnnouncementsEntry[][] models) {
86          AnnouncementsEntrySoap[][] soapModels = null;
87  
88          if (models.length > 0) {
89              soapModels = new AnnouncementsEntrySoap[models.length][models[0].length];
90          }
91          else {
92              soapModels = new AnnouncementsEntrySoap[0][0];
93          }
94  
95          for (int i = 0; i < models.length; i++) {
96              soapModels[i] = toSoapModels(models[i]);
97          }
98  
99          return soapModels;
100     }
101 
102     public static AnnouncementsEntrySoap[] toSoapModels(
103         List<AnnouncementsEntry> models) {
104         List<AnnouncementsEntrySoap> soapModels = new ArrayList<AnnouncementsEntrySoap>(models.size());
105 
106         for (AnnouncementsEntry model : models) {
107             soapModels.add(toSoapModel(model));
108         }
109 
110         return soapModels.toArray(new AnnouncementsEntrySoap[soapModels.size()]);
111     }
112 
113     public AnnouncementsEntrySoap() {
114     }
115 
116     public long getPrimaryKey() {
117         return _entryId;
118     }
119 
120     public void setPrimaryKey(long pk) {
121         setEntryId(pk);
122     }
123 
124     public String getUuid() {
125         return _uuid;
126     }
127 
128     public void setUuid(String uuid) {
129         _uuid = uuid;
130     }
131 
132     public long getEntryId() {
133         return _entryId;
134     }
135 
136     public void setEntryId(long entryId) {
137         _entryId = entryId;
138     }
139 
140     public long getCompanyId() {
141         return _companyId;
142     }
143 
144     public void setCompanyId(long companyId) {
145         _companyId = companyId;
146     }
147 
148     public long getUserId() {
149         return _userId;
150     }
151 
152     public void setUserId(long userId) {
153         _userId = userId;
154     }
155 
156     public String getUserName() {
157         return _userName;
158     }
159 
160     public void setUserName(String userName) {
161         _userName = userName;
162     }
163 
164     public Date getCreateDate() {
165         return _createDate;
166     }
167 
168     public void setCreateDate(Date createDate) {
169         _createDate = createDate;
170     }
171 
172     public Date getModifiedDate() {
173         return _modifiedDate;
174     }
175 
176     public void setModifiedDate(Date modifiedDate) {
177         _modifiedDate = modifiedDate;
178     }
179 
180     public long getClassNameId() {
181         return _classNameId;
182     }
183 
184     public void setClassNameId(long classNameId) {
185         _classNameId = classNameId;
186     }
187 
188     public long getClassPK() {
189         return _classPK;
190     }
191 
192     public void setClassPK(long classPK) {
193         _classPK = classPK;
194     }
195 
196     public String getTitle() {
197         return _title;
198     }
199 
200     public void setTitle(String title) {
201         _title = title;
202     }
203 
204     public String getContent() {
205         return _content;
206     }
207 
208     public void setContent(String content) {
209         _content = content;
210     }
211 
212     public String getUrl() {
213         return _url;
214     }
215 
216     public void setUrl(String url) {
217         _url = url;
218     }
219 
220     public String getType() {
221         return _type;
222     }
223 
224     public void setType(String type) {
225         _type = type;
226     }
227 
228     public Date getDisplayDate() {
229         return _displayDate;
230     }
231 
232     public void setDisplayDate(Date displayDate) {
233         _displayDate = displayDate;
234     }
235 
236     public Date getExpirationDate() {
237         return _expirationDate;
238     }
239 
240     public void setExpirationDate(Date expirationDate) {
241         _expirationDate = expirationDate;
242     }
243 
244     public int getPriority() {
245         return _priority;
246     }
247 
248     public void setPriority(int priority) {
249         _priority = priority;
250     }
251 
252     public boolean getAlert() {
253         return _alert;
254     }
255 
256     public boolean isAlert() {
257         return _alert;
258     }
259 
260     public void setAlert(boolean alert) {
261         _alert = alert;
262     }
263 
264     private String _uuid;
265     private long _entryId;
266     private long _companyId;
267     private long _userId;
268     private String _userName;
269     private Date _createDate;
270     private Date _modifiedDate;
271     private long _classNameId;
272     private long _classPK;
273     private String _title;
274     private String _content;
275     private String _url;
276     private String _type;
277     private Date _displayDate;
278     private Date _expirationDate;
279     private int _priority;
280     private boolean _alert;
281 }