1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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.tags.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="TagsAssetSoap.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   * {@link com.liferay.portlet.tags.service.http.TagsAssetServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
46   * @generated
47   */
48  public class TagsAssetSoap implements Serializable {
49      public static TagsAssetSoap toSoapModel(TagsAsset model) {
50          TagsAssetSoap soapModel = new TagsAssetSoap();
51  
52          soapModel.setAssetId(model.getAssetId());
53          soapModel.setGroupId(model.getGroupId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setUserName(model.getUserName());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setClassNameId(model.getClassNameId());
60          soapModel.setClassPK(model.getClassPK());
61          soapModel.setVisible(model.getVisible());
62          soapModel.setStartDate(model.getStartDate());
63          soapModel.setEndDate(model.getEndDate());
64          soapModel.setPublishDate(model.getPublishDate());
65          soapModel.setExpirationDate(model.getExpirationDate());
66          soapModel.setMimeType(model.getMimeType());
67          soapModel.setTitle(model.getTitle());
68          soapModel.setDescription(model.getDescription());
69          soapModel.setSummary(model.getSummary());
70          soapModel.setUrl(model.getUrl());
71          soapModel.setHeight(model.getHeight());
72          soapModel.setWidth(model.getWidth());
73          soapModel.setPriority(model.getPriority());
74          soapModel.setViewCount(model.getViewCount());
75  
76          return soapModel;
77      }
78  
79      public static TagsAssetSoap[] toSoapModels(TagsAsset[] models) {
80          TagsAssetSoap[] soapModels = new TagsAssetSoap[models.length];
81  
82          for (int i = 0; i < models.length; i++) {
83              soapModels[i] = toSoapModel(models[i]);
84          }
85  
86          return soapModels;
87      }
88  
89      public static TagsAssetSoap[][] toSoapModels(TagsAsset[][] models) {
90          TagsAssetSoap[][] soapModels = null;
91  
92          if (models.length > 0) {
93              soapModels = new TagsAssetSoap[models.length][models[0].length];
94          }
95          else {
96              soapModels = new TagsAssetSoap[0][0];
97          }
98  
99          for (int i = 0; i < models.length; i++) {
100             soapModels[i] = toSoapModels(models[i]);
101         }
102 
103         return soapModels;
104     }
105 
106     public static TagsAssetSoap[] toSoapModels(List<TagsAsset> models) {
107         List<TagsAssetSoap> soapModels = new ArrayList<TagsAssetSoap>(models.size());
108 
109         for (TagsAsset model : models) {
110             soapModels.add(toSoapModel(model));
111         }
112 
113         return soapModels.toArray(new TagsAssetSoap[soapModels.size()]);
114     }
115 
116     public TagsAssetSoap() {
117     }
118 
119     public long getPrimaryKey() {
120         return _assetId;
121     }
122 
123     public void setPrimaryKey(long pk) {
124         setAssetId(pk);
125     }
126 
127     public long getAssetId() {
128         return _assetId;
129     }
130 
131     public void setAssetId(long assetId) {
132         _assetId = assetId;
133     }
134 
135     public long getGroupId() {
136         return _groupId;
137     }
138 
139     public void setGroupId(long groupId) {
140         _groupId = groupId;
141     }
142 
143     public long getCompanyId() {
144         return _companyId;
145     }
146 
147     public void setCompanyId(long companyId) {
148         _companyId = companyId;
149     }
150 
151     public long getUserId() {
152         return _userId;
153     }
154 
155     public void setUserId(long userId) {
156         _userId = userId;
157     }
158 
159     public String getUserName() {
160         return _userName;
161     }
162 
163     public void setUserName(String userName) {
164         _userName = userName;
165     }
166 
167     public Date getCreateDate() {
168         return _createDate;
169     }
170 
171     public void setCreateDate(Date createDate) {
172         _createDate = createDate;
173     }
174 
175     public Date getModifiedDate() {
176         return _modifiedDate;
177     }
178 
179     public void setModifiedDate(Date modifiedDate) {
180         _modifiedDate = modifiedDate;
181     }
182 
183     public long getClassNameId() {
184         return _classNameId;
185     }
186 
187     public void setClassNameId(long classNameId) {
188         _classNameId = classNameId;
189     }
190 
191     public long getClassPK() {
192         return _classPK;
193     }
194 
195     public void setClassPK(long classPK) {
196         _classPK = classPK;
197     }
198 
199     public boolean getVisible() {
200         return _visible;
201     }
202 
203     public boolean isVisible() {
204         return _visible;
205     }
206 
207     public void setVisible(boolean visible) {
208         _visible = visible;
209     }
210 
211     public Date getStartDate() {
212         return _startDate;
213     }
214 
215     public void setStartDate(Date startDate) {
216         _startDate = startDate;
217     }
218 
219     public Date getEndDate() {
220         return _endDate;
221     }
222 
223     public void setEndDate(Date endDate) {
224         _endDate = endDate;
225     }
226 
227     public Date getPublishDate() {
228         return _publishDate;
229     }
230 
231     public void setPublishDate(Date publishDate) {
232         _publishDate = publishDate;
233     }
234 
235     public Date getExpirationDate() {
236         return _expirationDate;
237     }
238 
239     public void setExpirationDate(Date expirationDate) {
240         _expirationDate = expirationDate;
241     }
242 
243     public String getMimeType() {
244         return _mimeType;
245     }
246 
247     public void setMimeType(String mimeType) {
248         _mimeType = mimeType;
249     }
250 
251     public String getTitle() {
252         return _title;
253     }
254 
255     public void setTitle(String title) {
256         _title = title;
257     }
258 
259     public String getDescription() {
260         return _description;
261     }
262 
263     public void setDescription(String description) {
264         _description = description;
265     }
266 
267     public String getSummary() {
268         return _summary;
269     }
270 
271     public void setSummary(String summary) {
272         _summary = summary;
273     }
274 
275     public String getUrl() {
276         return _url;
277     }
278 
279     public void setUrl(String url) {
280         _url = url;
281     }
282 
283     public int getHeight() {
284         return _height;
285     }
286 
287     public void setHeight(int height) {
288         _height = height;
289     }
290 
291     public int getWidth() {
292         return _width;
293     }
294 
295     public void setWidth(int width) {
296         _width = width;
297     }
298 
299     public double getPriority() {
300         return _priority;
301     }
302 
303     public void setPriority(double priority) {
304         _priority = priority;
305     }
306 
307     public int getViewCount() {
308         return _viewCount;
309     }
310 
311     public void setViewCount(int viewCount) {
312         _viewCount = viewCount;
313     }
314 
315     private long _assetId;
316     private long _groupId;
317     private long _companyId;
318     private long _userId;
319     private String _userName;
320     private Date _createDate;
321     private Date _modifiedDate;
322     private long _classNameId;
323     private long _classPK;
324     private boolean _visible;
325     private Date _startDate;
326     private Date _endDate;
327     private Date _publishDate;
328     private Date _expirationDate;
329     private String _mimeType;
330     private String _title;
331     private String _description;
332     private String _summary;
333     private String _url;
334     private int _height;
335     private int _width;
336     private double _priority;
337     private int _viewCount;
338 }