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