1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.documentlibrary.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="DLFileShortcutSoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap
38   * @generated
39   */
40  public class DLFileShortcutSoap implements Serializable {
41      public static DLFileShortcutSoap toSoapModel(DLFileShortcut model) {
42          DLFileShortcutSoap soapModel = new DLFileShortcutSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setFileShortcutId(model.getFileShortcutId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setFolderId(model.getFolderId());
53          soapModel.setToFolderId(model.getToFolderId());
54          soapModel.setToName(model.getToName());
55          soapModel.setStatus(model.getStatus());
56          soapModel.setStatusByUserId(model.getStatusByUserId());
57          soapModel.setStatusByUserName(model.getStatusByUserName());
58          soapModel.setStatusDate(model.getStatusDate());
59  
60          return soapModel;
61      }
62  
63      public static DLFileShortcutSoap[] toSoapModels(DLFileShortcut[] models) {
64          DLFileShortcutSoap[] soapModels = new DLFileShortcutSoap[models.length];
65  
66          for (int i = 0; i < models.length; i++) {
67              soapModels[i] = toSoapModel(models[i]);
68          }
69  
70          return soapModels;
71      }
72  
73      public static DLFileShortcutSoap[][] toSoapModels(DLFileShortcut[][] models) {
74          DLFileShortcutSoap[][] soapModels = null;
75  
76          if (models.length > 0) {
77              soapModels = new DLFileShortcutSoap[models.length][models[0].length];
78          }
79          else {
80              soapModels = new DLFileShortcutSoap[0][0];
81          }
82  
83          for (int i = 0; i < models.length; i++) {
84              soapModels[i] = toSoapModels(models[i]);
85          }
86  
87          return soapModels;
88      }
89  
90      public static DLFileShortcutSoap[] toSoapModels(List<DLFileShortcut> models) {
91          List<DLFileShortcutSoap> soapModels = new ArrayList<DLFileShortcutSoap>(models.size());
92  
93          for (DLFileShortcut model : models) {
94              soapModels.add(toSoapModel(model));
95          }
96  
97          return soapModels.toArray(new DLFileShortcutSoap[soapModels.size()]);
98      }
99  
100     public DLFileShortcutSoap() {
101     }
102 
103     public long getPrimaryKey() {
104         return _fileShortcutId;
105     }
106 
107     public void setPrimaryKey(long pk) {
108         setFileShortcutId(pk);
109     }
110 
111     public String getUuid() {
112         return _uuid;
113     }
114 
115     public void setUuid(String uuid) {
116         _uuid = uuid;
117     }
118 
119     public long getFileShortcutId() {
120         return _fileShortcutId;
121     }
122 
123     public void setFileShortcutId(long fileShortcutId) {
124         _fileShortcutId = fileShortcutId;
125     }
126 
127     public long getGroupId() {
128         return _groupId;
129     }
130 
131     public void setGroupId(long groupId) {
132         _groupId = groupId;
133     }
134 
135     public long getCompanyId() {
136         return _companyId;
137     }
138 
139     public void setCompanyId(long companyId) {
140         _companyId = companyId;
141     }
142 
143     public long getUserId() {
144         return _userId;
145     }
146 
147     public void setUserId(long userId) {
148         _userId = userId;
149     }
150 
151     public String getUserName() {
152         return _userName;
153     }
154 
155     public void setUserName(String userName) {
156         _userName = userName;
157     }
158 
159     public Date getCreateDate() {
160         return _createDate;
161     }
162 
163     public void setCreateDate(Date createDate) {
164         _createDate = createDate;
165     }
166 
167     public Date getModifiedDate() {
168         return _modifiedDate;
169     }
170 
171     public void setModifiedDate(Date modifiedDate) {
172         _modifiedDate = modifiedDate;
173     }
174 
175     public long getFolderId() {
176         return _folderId;
177     }
178 
179     public void setFolderId(long folderId) {
180         _folderId = folderId;
181     }
182 
183     public long getToFolderId() {
184         return _toFolderId;
185     }
186 
187     public void setToFolderId(long toFolderId) {
188         _toFolderId = toFolderId;
189     }
190 
191     public String getToName() {
192         return _toName;
193     }
194 
195     public void setToName(String toName) {
196         _toName = toName;
197     }
198 
199     public int getStatus() {
200         return _status;
201     }
202 
203     public void setStatus(int status) {
204         _status = status;
205     }
206 
207     public long getStatusByUserId() {
208         return _statusByUserId;
209     }
210 
211     public void setStatusByUserId(long statusByUserId) {
212         _statusByUserId = statusByUserId;
213     }
214 
215     public String getStatusByUserName() {
216         return _statusByUserName;
217     }
218 
219     public void setStatusByUserName(String statusByUserName) {
220         _statusByUserName = statusByUserName;
221     }
222 
223     public Date getStatusDate() {
224         return _statusDate;
225     }
226 
227     public void setStatusDate(Date statusDate) {
228         _statusDate = statusDate;
229     }
230 
231     private String _uuid;
232     private long _fileShortcutId;
233     private long _groupId;
234     private long _companyId;
235     private long _userId;
236     private String _userName;
237     private Date _createDate;
238     private Date _modifiedDate;
239     private long _folderId;
240     private long _toFolderId;
241     private String _toName;
242     private int _status;
243     private long _statusByUserId;
244     private String _statusByUserName;
245     private Date _statusDate;
246 }