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.tags.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="TagsAssetSoap.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.tags.service.http.TagsAssetServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
44   *
45   */
46  public class TagsAssetSoap implements Serializable {
47      public static TagsAssetSoap toSoapModel(TagsAsset model) {
48          TagsAssetSoap soapModel = new TagsAssetSoap();
49  
50          soapModel.setAssetId(model.getAssetId());
51          soapModel.setGroupId(model.getGroupId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setUserId(model.getUserId());
54          soapModel.setUserName(model.getUserName());
55          soapModel.setCreateDate(model.getCreateDate());
56          soapModel.setModifiedDate(model.getModifiedDate());
57          soapModel.setClassNameId(model.getClassNameId());
58          soapModel.setClassPK(model.getClassPK());
59          soapModel.setVisible(model.getVisible());
60          soapModel.setStartDate(model.getStartDate());
61          soapModel.setEndDate(model.getEndDate());
62          soapModel.setPublishDate(model.getPublishDate());
63          soapModel.setExpirationDate(model.getExpirationDate());
64          soapModel.setMimeType(model.getMimeType());
65          soapModel.setTitle(model.getTitle());
66          soapModel.setDescription(model.getDescription());
67          soapModel.setSummary(model.getSummary());
68          soapModel.setUrl(model.getUrl());
69          soapModel.setHeight(model.getHeight());
70          soapModel.setWidth(model.getWidth());
71          soapModel.setPriority(model.getPriority());
72          soapModel.setViewCount(model.getViewCount());
73  
74          return soapModel;
75      }
76  
77      public static TagsAssetSoap[] toSoapModels(TagsAsset[] models) {
78          TagsAssetSoap[] soapModels = new TagsAssetSoap[models.length];
79  
80          for (int i = 0; i < models.length; i++) {
81              soapModels[i] = toSoapModel(models[i]);
82          }
83  
84          return soapModels;
85      }
86  
87      public static TagsAssetSoap[][] toSoapModels(TagsAsset[][] models) {
88          TagsAssetSoap[][] soapModels = null;
89  
90          if (models.length > 0) {
91              soapModels = new TagsAssetSoap[models.length][models[0].length];
92          }
93          else {
94              soapModels = new TagsAssetSoap[0][0];
95          }
96  
97          for (int i = 0; i < models.length; i++) {
98              soapModels[i] = toSoapModels(models[i]);
99          }
100 
101         return soapModels;
102     }
103 
104     public static TagsAssetSoap[] toSoapModels(List<TagsAsset> models) {
105         List<TagsAssetSoap> soapModels = new ArrayList<TagsAssetSoap>(models.size());
106 
107         for (TagsAsset model : models) {
108             soapModels.add(toSoapModel(model));
109         }
110 
111         return soapModels.toArray(new TagsAssetSoap[soapModels.size()]);
112     }
113 
114     public TagsAssetSoap() {
115     }
116 
117     public long getPrimaryKey() {
118         return _assetId;
119     }
120 
121     public void setPrimaryKey(long pk) {
122         setAssetId(pk);
123     }
124 
125     public long getAssetId() {
126         return _assetId;
127     }
128 
129     public void setAssetId(long assetId) {
130         _assetId = assetId;
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 long getClassNameId() {
182         return _classNameId;
183     }
184 
185     public void setClassNameId(long classNameId) {
186         _classNameId = classNameId;
187     }
188 
189     public long getClassPK() {
190         return _classPK;
191     }
192 
193     public void setClassPK(long classPK) {
194         _classPK = classPK;
195     }
196 
197     public boolean getVisible() {
198         return _visible;
199     }
200 
201     public boolean isVisible() {
202         return _visible;
203     }
204 
205     public void setVisible(boolean visible) {
206         _visible = visible;
207     }
208 
209     public Date getStartDate() {
210         return _startDate;
211     }
212 
213     public void setStartDate(Date startDate) {
214         _startDate = startDate;
215     }
216 
217     public Date getEndDate() {
218         return _endDate;
219     }
220 
221     public void setEndDate(Date endDate) {
222         _endDate = endDate;
223     }
224 
225     public Date getPublishDate() {
226         return _publishDate;
227     }
228 
229     public void setPublishDate(Date publishDate) {
230         _publishDate = publishDate;
231     }
232 
233     public Date getExpirationDate() {
234         return _expirationDate;
235     }
236 
237     public void setExpirationDate(Date expirationDate) {
238         _expirationDate = expirationDate;
239     }
240 
241     public String getMimeType() {
242         return _mimeType;
243     }
244 
245     public void setMimeType(String mimeType) {
246         _mimeType = mimeType;
247     }
248 
249     public String getTitle() {
250         return _title;
251     }
252 
253     public void setTitle(String title) {
254         _title = title;
255     }
256 
257     public String getDescription() {
258         return _description;
259     }
260 
261     public void setDescription(String description) {
262         _description = description;
263     }
264 
265     public String getSummary() {
266         return _summary;
267     }
268 
269     public void setSummary(String summary) {
270         _summary = summary;
271     }
272 
273     public String getUrl() {
274         return _url;
275     }
276 
277     public void setUrl(String url) {
278         _url = url;
279     }
280 
281     public int getHeight() {
282         return _height;
283     }
284 
285     public void setHeight(int height) {
286         _height = height;
287     }
288 
289     public int getWidth() {
290         return _width;
291     }
292 
293     public void setWidth(int width) {
294         _width = width;
295     }
296 
297     public double getPriority() {
298         return _priority;
299     }
300 
301     public void setPriority(double priority) {
302         _priority = priority;
303     }
304 
305     public int getViewCount() {
306         return _viewCount;
307     }
308 
309     public void setViewCount(int viewCount) {
310         _viewCount = viewCount;
311     }
312 
313     private long _assetId;
314     private long _groupId;
315     private long _companyId;
316     private long _userId;
317     private String _userName;
318     private Date _createDate;
319     private Date _modifiedDate;
320     private long _classNameId;
321     private long _classPK;
322     private boolean _visible;
323     private Date _startDate;
324     private Date _endDate;
325     private Date _publishDate;
326     private Date _expirationDate;
327     private String _mimeType;
328     private String _title;
329     private String _description;
330     private String _summary;
331     private String _url;
332     private int _height;
333     private int _width;
334     private double _priority;
335     private int _viewCount;
336 }