001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.announcements.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.announcements.service.http.AnnouncementsEntryServiceSoap
031     * @generated
032     */
033    public class AnnouncementsEntrySoap implements Serializable {
034            public static AnnouncementsEntrySoap toSoapModel(AnnouncementsEntry model) {
035                    AnnouncementsEntrySoap soapModel = new AnnouncementsEntrySoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setEntryId(model.getEntryId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setClassNameId(model.getClassNameId());
045                    soapModel.setClassPK(model.getClassPK());
046                    soapModel.setTitle(model.getTitle());
047                    soapModel.setContent(model.getContent());
048                    soapModel.setUrl(model.getUrl());
049                    soapModel.setType(model.getType());
050                    soapModel.setDisplayDate(model.getDisplayDate());
051                    soapModel.setExpirationDate(model.getExpirationDate());
052                    soapModel.setPriority(model.getPriority());
053                    soapModel.setAlert(model.getAlert());
054    
055                    return soapModel;
056            }
057    
058            public static AnnouncementsEntrySoap[] toSoapModels(
059                    AnnouncementsEntry[] models) {
060                    AnnouncementsEntrySoap[] soapModels = new AnnouncementsEntrySoap[models.length];
061    
062                    for (int i = 0; i < models.length; i++) {
063                            soapModels[i] = toSoapModel(models[i]);
064                    }
065    
066                    return soapModels;
067            }
068    
069            public static AnnouncementsEntrySoap[][] toSoapModels(
070                    AnnouncementsEntry[][] models) {
071                    AnnouncementsEntrySoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new AnnouncementsEntrySoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new AnnouncementsEntrySoap[0][0];
078                    }
079    
080                    for (int i = 0; i < models.length; i++) {
081                            soapModels[i] = toSoapModels(models[i]);
082                    }
083    
084                    return soapModels;
085            }
086    
087            public static AnnouncementsEntrySoap[] toSoapModels(
088                    List<AnnouncementsEntry> models) {
089                    List<AnnouncementsEntrySoap> soapModels = new ArrayList<AnnouncementsEntrySoap>(models.size());
090    
091                    for (AnnouncementsEntry model : models) {
092                            soapModels.add(toSoapModel(model));
093                    }
094    
095                    return soapModels.toArray(new AnnouncementsEntrySoap[soapModels.size()]);
096            }
097    
098            public AnnouncementsEntrySoap() {
099            }
100    
101            public long getPrimaryKey() {
102                    return _entryId;
103            }
104    
105            public void setPrimaryKey(long pk) {
106                    setEntryId(pk);
107            }
108    
109            public String getUuid() {
110                    return _uuid;
111            }
112    
113            public void setUuid(String uuid) {
114                    _uuid = uuid;
115            }
116    
117            public long getEntryId() {
118                    return _entryId;
119            }
120    
121            public void setEntryId(long entryId) {
122                    _entryId = entryId;
123            }
124    
125            public long getCompanyId() {
126                    return _companyId;
127            }
128    
129            public void setCompanyId(long companyId) {
130                    _companyId = companyId;
131            }
132    
133            public long getUserId() {
134                    return _userId;
135            }
136    
137            public void setUserId(long userId) {
138                    _userId = userId;
139            }
140    
141            public String getUserName() {
142                    return _userName;
143            }
144    
145            public void setUserName(String userName) {
146                    _userName = userName;
147            }
148    
149            public Date getCreateDate() {
150                    return _createDate;
151            }
152    
153            public void setCreateDate(Date createDate) {
154                    _createDate = createDate;
155            }
156    
157            public Date getModifiedDate() {
158                    return _modifiedDate;
159            }
160    
161            public void setModifiedDate(Date modifiedDate) {
162                    _modifiedDate = modifiedDate;
163            }
164    
165            public long getClassNameId() {
166                    return _classNameId;
167            }
168    
169            public void setClassNameId(long classNameId) {
170                    _classNameId = classNameId;
171            }
172    
173            public long getClassPK() {
174                    return _classPK;
175            }
176    
177            public void setClassPK(long classPK) {
178                    _classPK = classPK;
179            }
180    
181            public String getTitle() {
182                    return _title;
183            }
184    
185            public void setTitle(String title) {
186                    _title = title;
187            }
188    
189            public String getContent() {
190                    return _content;
191            }
192    
193            public void setContent(String content) {
194                    _content = content;
195            }
196    
197            public String getUrl() {
198                    return _url;
199            }
200    
201            public void setUrl(String url) {
202                    _url = url;
203            }
204    
205            public String getType() {
206                    return _type;
207            }
208    
209            public void setType(String type) {
210                    _type = type;
211            }
212    
213            public Date getDisplayDate() {
214                    return _displayDate;
215            }
216    
217            public void setDisplayDate(Date displayDate) {
218                    _displayDate = displayDate;
219            }
220    
221            public Date getExpirationDate() {
222                    return _expirationDate;
223            }
224    
225            public void setExpirationDate(Date expirationDate) {
226                    _expirationDate = expirationDate;
227            }
228    
229            public int getPriority() {
230                    return _priority;
231            }
232    
233            public void setPriority(int priority) {
234                    _priority = priority;
235            }
236    
237            public boolean getAlert() {
238                    return _alert;
239            }
240    
241            public boolean isAlert() {
242                    return _alert;
243            }
244    
245            public void setAlert(boolean alert) {
246                    _alert = alert;
247            }
248    
249            private String _uuid;
250            private long _entryId;
251            private long _companyId;
252            private long _userId;
253            private String _userName;
254            private Date _createDate;
255            private Date _modifiedDate;
256            private long _classNameId;
257            private long _classPK;
258            private String _title;
259            private String _content;
260            private String _url;
261            private String _type;
262            private Date _displayDate;
263            private Date _expirationDate;
264            private int _priority;
265            private boolean _alert;
266    }