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.blogs.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="BlogsEntrySoap.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.blogs.service.http.BlogsEntryServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
46   * @generated
47   */
48  public class BlogsEntrySoap implements Serializable {
49      public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
50          BlogsEntrySoap soapModel = new BlogsEntrySoap();
51  
52          soapModel.setUuid(model.getUuid());
53          soapModel.setEntryId(model.getEntryId());
54          soapModel.setGroupId(model.getGroupId());
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.setTitle(model.getTitle());
61          soapModel.setUrlTitle(model.getUrlTitle());
62          soapModel.setContent(model.getContent());
63          soapModel.setDisplayDate(model.getDisplayDate());
64          soapModel.setDraft(model.getDraft());
65          soapModel.setAllowTrackbacks(model.getAllowTrackbacks());
66          soapModel.setTrackbacks(model.getTrackbacks());
67  
68          return soapModel;
69      }
70  
71      public static BlogsEntrySoap[] toSoapModels(BlogsEntry[] models) {
72          BlogsEntrySoap[] soapModels = new BlogsEntrySoap[models.length];
73  
74          for (int i = 0; i < models.length; i++) {
75              soapModels[i] = toSoapModel(models[i]);
76          }
77  
78          return soapModels;
79      }
80  
81      public static BlogsEntrySoap[][] toSoapModels(BlogsEntry[][] models) {
82          BlogsEntrySoap[][] soapModels = null;
83  
84          if (models.length > 0) {
85              soapModels = new BlogsEntrySoap[models.length][models[0].length];
86          }
87          else {
88              soapModels = new BlogsEntrySoap[0][0];
89          }
90  
91          for (int i = 0; i < models.length; i++) {
92              soapModels[i] = toSoapModels(models[i]);
93          }
94  
95          return soapModels;
96      }
97  
98      public static BlogsEntrySoap[] toSoapModels(List<BlogsEntry> models) {
99          List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
100 
101         for (BlogsEntry model : models) {
102             soapModels.add(toSoapModel(model));
103         }
104 
105         return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
106     }
107 
108     public BlogsEntrySoap() {
109     }
110 
111     public long getPrimaryKey() {
112         return _entryId;
113     }
114 
115     public void setPrimaryKey(long pk) {
116         setEntryId(pk);
117     }
118 
119     public String getUuid() {
120         return _uuid;
121     }
122 
123     public void setUuid(String uuid) {
124         _uuid = uuid;
125     }
126 
127     public long getEntryId() {
128         return _entryId;
129     }
130 
131     public void setEntryId(long entryId) {
132         _entryId = entryId;
133     }
134 
135     public long getGroupId() {
136         return _groupId;
137     }
138 
139     public void setGroupId(long groupId) {
140         _groupId = groupId;
141     }
142 
143     public long getCompanyId() {
144         return _companyId;
145     }
146 
147     public void setCompanyId(long companyId) {
148         _companyId = companyId;
149     }
150 
151     public long getUserId() {
152         return _userId;
153     }
154 
155     public void setUserId(long userId) {
156         _userId = userId;
157     }
158 
159     public String getUserName() {
160         return _userName;
161     }
162 
163     public void setUserName(String userName) {
164         _userName = userName;
165     }
166 
167     public Date getCreateDate() {
168         return _createDate;
169     }
170 
171     public void setCreateDate(Date createDate) {
172         _createDate = createDate;
173     }
174 
175     public Date getModifiedDate() {
176         return _modifiedDate;
177     }
178 
179     public void setModifiedDate(Date modifiedDate) {
180         _modifiedDate = modifiedDate;
181     }
182 
183     public String getTitle() {
184         return _title;
185     }
186 
187     public void setTitle(String title) {
188         _title = title;
189     }
190 
191     public String getUrlTitle() {
192         return _urlTitle;
193     }
194 
195     public void setUrlTitle(String urlTitle) {
196         _urlTitle = urlTitle;
197     }
198 
199     public String getContent() {
200         return _content;
201     }
202 
203     public void setContent(String content) {
204         _content = content;
205     }
206 
207     public Date getDisplayDate() {
208         return _displayDate;
209     }
210 
211     public void setDisplayDate(Date displayDate) {
212         _displayDate = displayDate;
213     }
214 
215     public boolean getDraft() {
216         return _draft;
217     }
218 
219     public boolean isDraft() {
220         return _draft;
221     }
222 
223     public void setDraft(boolean draft) {
224         _draft = draft;
225     }
226 
227     public boolean getAllowTrackbacks() {
228         return _allowTrackbacks;
229     }
230 
231     public boolean isAllowTrackbacks() {
232         return _allowTrackbacks;
233     }
234 
235     public void setAllowTrackbacks(boolean allowTrackbacks) {
236         _allowTrackbacks = allowTrackbacks;
237     }
238 
239     public String getTrackbacks() {
240         return _trackbacks;
241     }
242 
243     public void setTrackbacks(String trackbacks) {
244         _trackbacks = trackbacks;
245     }
246 
247     private String _uuid;
248     private long _entryId;
249     private long _groupId;
250     private long _companyId;
251     private long _userId;
252     private String _userName;
253     private Date _createDate;
254     private Date _modifiedDate;
255     private String _title;
256     private String _urlTitle;
257     private String _content;
258     private Date _displayDate;
259     private boolean _draft;
260     private boolean _allowTrackbacks;
261     private String _trackbacks;
262 }