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