1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * <code>com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
47   *
48   */
49  public class BlogsEntrySoap implements Serializable {
50      public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
51          BlogsEntrySoap soapModel = new BlogsEntrySoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setEntryId(model.getEntryId());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setUserName(model.getUserName());
59          soapModel.setCreateDate(model.getCreateDate());
60          soapModel.setModifiedDate(model.getModifiedDate());
61          soapModel.setTitle(model.getTitle());
62          soapModel.setUrlTitle(model.getUrlTitle());
63          soapModel.setContent(model.getContent());
64          soapModel.setDisplayDate(model.getDisplayDate());
65          soapModel.setDraft(model.getDraft());
66          soapModel.setAllowTrackbacks(model.getAllowTrackbacks());
67          soapModel.setTrackbacks(model.getTrackbacks());
68  
69          return soapModel;
70      }
71  
72      public static BlogsEntrySoap[] toSoapModels(List<BlogsEntry> models) {
73          List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
74  
75          for (BlogsEntry model : models) {
76              soapModels.add(toSoapModel(model));
77          }
78  
79          return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
80      }
81  
82      public BlogsEntrySoap() {
83      }
84  
85      public long getPrimaryKey() {
86          return _entryId;
87      }
88  
89      public void setPrimaryKey(long pk) {
90          setEntryId(pk);
91      }
92  
93      public String getUuid() {
94          return _uuid;
95      }
96  
97      public void setUuid(String uuid) {
98          _uuid = uuid;
99      }
100 
101     public long getEntryId() {
102         return _entryId;
103     }
104 
105     public void setEntryId(long entryId) {
106         _entryId = entryId;
107     }
108 
109     public long getGroupId() {
110         return _groupId;
111     }
112 
113     public void setGroupId(long groupId) {
114         _groupId = groupId;
115     }
116 
117     public long getCompanyId() {
118         return _companyId;
119     }
120 
121     public void setCompanyId(long companyId) {
122         _companyId = companyId;
123     }
124 
125     public long getUserId() {
126         return _userId;
127     }
128 
129     public void setUserId(long userId) {
130         _userId = userId;
131     }
132 
133     public String getUserName() {
134         return _userName;
135     }
136 
137     public void setUserName(String userName) {
138         _userName = userName;
139     }
140 
141     public Date getCreateDate() {
142         return _createDate;
143     }
144 
145     public void setCreateDate(Date createDate) {
146         _createDate = createDate;
147     }
148 
149     public Date getModifiedDate() {
150         return _modifiedDate;
151     }
152 
153     public void setModifiedDate(Date modifiedDate) {
154         _modifiedDate = modifiedDate;
155     }
156 
157     public String getTitle() {
158         return _title;
159     }
160 
161     public void setTitle(String title) {
162         _title = title;
163     }
164 
165     public String getUrlTitle() {
166         return _urlTitle;
167     }
168 
169     public void setUrlTitle(String urlTitle) {
170         _urlTitle = urlTitle;
171     }
172 
173     public String getContent() {
174         return _content;
175     }
176 
177     public void setContent(String content) {
178         _content = content;
179     }
180 
181     public Date getDisplayDate() {
182         return _displayDate;
183     }
184 
185     public void setDisplayDate(Date displayDate) {
186         _displayDate = displayDate;
187     }
188 
189     public boolean getDraft() {
190         return _draft;
191     }
192 
193     public boolean isDraft() {
194         return _draft;
195     }
196 
197     public void setDraft(boolean draft) {
198         _draft = draft;
199     }
200 
201     public boolean getAllowTrackbacks() {
202         return _allowTrackbacks;
203     }
204 
205     public boolean isAllowTrackbacks() {
206         return _allowTrackbacks;
207     }
208 
209     public void setAllowTrackbacks(boolean allowTrackbacks) {
210         _allowTrackbacks = allowTrackbacks;
211     }
212 
213     public String getTrackbacks() {
214         return _trackbacks;
215     }
216 
217     public void setTrackbacks(String trackbacks) {
218         _trackbacks = trackbacks;
219     }
220 
221     private String _uuid;
222     private long _entryId;
223     private long _groupId;
224     private long _companyId;
225     private long _userId;
226     private String _userName;
227     private Date _createDate;
228     private Date _modifiedDate;
229     private String _title;
230     private String _urlTitle;
231     private String _content;
232     private Date _displayDate;
233     private boolean _draft;
234     private boolean _allowTrackbacks;
235     private String _trackbacks;
236 }