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.setStartDate(model.getStartDate());
62          soapModel.setEndDate(model.getEndDate());
63          soapModel.setPublishDate(model.getPublishDate());
64          soapModel.setExpirationDate(model.getExpirationDate());
65          soapModel.setMimeType(model.getMimeType());
66          soapModel.setTitle(model.getTitle());
67          soapModel.setDescription(model.getDescription());
68          soapModel.setSummary(model.getSummary());
69          soapModel.setUrl(model.getUrl());
70          soapModel.setHeight(model.getHeight());
71          soapModel.setWidth(model.getWidth());
72          soapModel.setPriority(model.getPriority());
73          soapModel.setViewCount(model.getViewCount());
74  
75          return soapModel;
76      }
77  
78      public static TagsAssetSoap[] toSoapModels(TagsAsset[] models) {
79          TagsAssetSoap[] soapModels = new TagsAssetSoap[models.length];
80  
81          for (int i = 0; i < models.length; i++) {
82              soapModels[i] = toSoapModel(models[i]);
83          }
84  
85          return soapModels;
86      }
87  
88      public static TagsAssetSoap[][] toSoapModels(TagsAsset[][] models) {
89          TagsAssetSoap[][] soapModels = null;
90  
91          if (models.length > 0) {
92              soapModels = new TagsAssetSoap[models.length][models[0].length];
93          }
94          else {
95              soapModels = new TagsAssetSoap[0][0];
96          }
97  
98          for (int i = 0; i < models.length; i++) {
99              soapModels[i] = toSoapModels(models[i]);
100         }
101 
102         return soapModels;
103     }
104 
105     public static TagsAssetSoap[] toSoapModels(List<TagsAsset> models) {
106         List<TagsAssetSoap> soapModels = new ArrayList<TagsAssetSoap>(models.size());
107 
108         for (TagsAsset model : models) {
109             soapModels.add(toSoapModel(model));
110         }
111 
112         return soapModels.toArray(new TagsAssetSoap[soapModels.size()]);
113     }
114 
115     public TagsAssetSoap() {
116     }
117 
118     public long getPrimaryKey() {
119         return _assetId;
120     }
121 
122     public void setPrimaryKey(long pk) {
123         setAssetId(pk);
124     }
125 
126     public long getAssetId() {
127         return _assetId;
128     }
129 
130     public void setAssetId(long assetId) {
131         _assetId = assetId;
132     }
133 
134     public long getGroupId() {
135         return _groupId;
136     }
137 
138     public void setGroupId(long groupId) {
139         _groupId = groupId;
140     }
141 
142     public long getCompanyId() {
143         return _companyId;
144     }
145 
146     public void setCompanyId(long companyId) {
147         _companyId = companyId;
148     }
149 
150     public long getUserId() {
151         return _userId;
152     }
153 
154     public void setUserId(long userId) {
155         _userId = userId;
156     }
157 
158     public String getUserName() {
159         return _userName;
160     }
161 
162     public void setUserName(String userName) {
163         _userName = userName;
164     }
165 
166     public Date getCreateDate() {
167         return _createDate;
168     }
169 
170     public void setCreateDate(Date createDate) {
171         _createDate = createDate;
172     }
173 
174     public Date getModifiedDate() {
175         return _modifiedDate;
176     }
177 
178     public void setModifiedDate(Date modifiedDate) {
179         _modifiedDate = modifiedDate;
180     }
181 
182     public long getClassNameId() {
183         return _classNameId;
184     }
185 
186     public void setClassNameId(long classNameId) {
187         _classNameId = classNameId;
188     }
189 
190     public long getClassPK() {
191         return _classPK;
192     }
193 
194     public void setClassPK(long classPK) {
195         _classPK = classPK;
196     }
197 
198     public Date getStartDate() {
199         return _startDate;
200     }
201 
202     public void setStartDate(Date startDate) {
203         _startDate = startDate;
204     }
205 
206     public Date getEndDate() {
207         return _endDate;
208     }
209 
210     public void setEndDate(Date endDate) {
211         _endDate = endDate;
212     }
213 
214     public Date getPublishDate() {
215         return _publishDate;
216     }
217 
218     public void setPublishDate(Date publishDate) {
219         _publishDate = publishDate;
220     }
221 
222     public Date getExpirationDate() {
223         return _expirationDate;
224     }
225 
226     public void setExpirationDate(Date expirationDate) {
227         _expirationDate = expirationDate;
228     }
229 
230     public String getMimeType() {
231         return _mimeType;
232     }
233 
234     public void setMimeType(String mimeType) {
235         _mimeType = mimeType;
236     }
237 
238     public String getTitle() {
239         return _title;
240     }
241 
242     public void setTitle(String title) {
243         _title = title;
244     }
245 
246     public String getDescription() {
247         return _description;
248     }
249 
250     public void setDescription(String description) {
251         _description = description;
252     }
253 
254     public String getSummary() {
255         return _summary;
256     }
257 
258     public void setSummary(String summary) {
259         _summary = summary;
260     }
261 
262     public String getUrl() {
263         return _url;
264     }
265 
266     public void setUrl(String url) {
267         _url = url;
268     }
269 
270     public int getHeight() {
271         return _height;
272     }
273 
274     public void setHeight(int height) {
275         _height = height;
276     }
277 
278     public int getWidth() {
279         return _width;
280     }
281 
282     public void setWidth(int width) {
283         _width = width;
284     }
285 
286     public double getPriority() {
287         return _priority;
288     }
289 
290     public void setPriority(double priority) {
291         _priority = priority;
292     }
293 
294     public int getViewCount() {
295         return _viewCount;
296     }
297 
298     public void setViewCount(int viewCount) {
299         _viewCount = viewCount;
300     }
301 
302     private long _assetId;
303     private long _groupId;
304     private long _companyId;
305     private long _userId;
306     private String _userName;
307     private Date _createDate;
308     private Date _modifiedDate;
309     private long _classNameId;
310     private long _classPK;
311     private Date _startDate;
312     private Date _endDate;
313     private Date _publishDate;
314     private Date _expirationDate;
315     private String _mimeType;
316     private String _title;
317     private String _description;
318     private String _summary;
319     private String _url;
320     private int _height;
321     private int _width;
322     private double _priority;
323     private int _viewCount;
324 }