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