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(List<BlogsEntry> models) {
70          List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
71  
72          for (BlogsEntry model : models) {
73              soapModels.add(toSoapModel(model));
74          }
75  
76          return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
77      }
78  
79      public BlogsEntrySoap() {
80      }
81  
82      public long getPrimaryKey() {
83          return _entryId;
84      }
85  
86      public void setPrimaryKey(long pk) {
87          setEntryId(pk);
88      }
89  
90      public String getUuid() {
91          return _uuid;
92      }
93  
94      public void setUuid(String uuid) {
95          _uuid = uuid;
96      }
97  
98      public long getEntryId() {
99          return _entryId;
100     }
101 
102     public void setEntryId(long entryId) {
103         _entryId = entryId;
104     }
105 
106     public long getGroupId() {
107         return _groupId;
108     }
109 
110     public void setGroupId(long groupId) {
111         _groupId = groupId;
112     }
113 
114     public long getCompanyId() {
115         return _companyId;
116     }
117 
118     public void setCompanyId(long companyId) {
119         _companyId = companyId;
120     }
121 
122     public long getUserId() {
123         return _userId;
124     }
125 
126     public void setUserId(long userId) {
127         _userId = userId;
128     }
129 
130     public String getUserName() {
131         return _userName;
132     }
133 
134     public void setUserName(String userName) {
135         _userName = userName;
136     }
137 
138     public Date getCreateDate() {
139         return _createDate;
140     }
141 
142     public void setCreateDate(Date createDate) {
143         _createDate = createDate;
144     }
145 
146     public Date getModifiedDate() {
147         return _modifiedDate;
148     }
149 
150     public void setModifiedDate(Date modifiedDate) {
151         _modifiedDate = modifiedDate;
152     }
153 
154     public String getTitle() {
155         return _title;
156     }
157 
158     public void setTitle(String title) {
159         _title = title;
160     }
161 
162     public String getUrlTitle() {
163         return _urlTitle;
164     }
165 
166     public void setUrlTitle(String urlTitle) {
167         _urlTitle = urlTitle;
168     }
169 
170     public String getContent() {
171         return _content;
172     }
173 
174     public void setContent(String content) {
175         _content = content;
176     }
177 
178     public Date getDisplayDate() {
179         return _displayDate;
180     }
181 
182     public void setDisplayDate(Date displayDate) {
183         _displayDate = displayDate;
184     }
185 
186     public boolean getDraft() {
187         return _draft;
188     }
189 
190     public boolean isDraft() {
191         return _draft;
192     }
193 
194     public void setDraft(boolean draft) {
195         _draft = draft;
196     }
197 
198     public boolean getAllowTrackbacks() {
199         return _allowTrackbacks;
200     }
201 
202     public boolean isAllowTrackbacks() {
203         return _allowTrackbacks;
204     }
205 
206     public void setAllowTrackbacks(boolean allowTrackbacks) {
207         _allowTrackbacks = allowTrackbacks;
208     }
209 
210     public String getTrackbacks() {
211         return _trackbacks;
212     }
213 
214     public void setTrackbacks(String trackbacks) {
215         _trackbacks = trackbacks;
216     }
217 
218     private String _uuid;
219     private long _entryId;
220     private long _groupId;
221     private long _companyId;
222     private long _userId;
223     private String _userName;
224     private Date _createDate;
225     private Date _modifiedDate;
226     private String _title;
227     private String _urlTitle;
228     private String _content;
229     private Date _displayDate;
230     private boolean _draft;
231     private boolean _allowTrackbacks;
232     private String _trackbacks;
233 }