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