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.documentlibrary.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="DLFileEntrySoap.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.documentlibrary.service.http.DLFileEntryServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap
44   *
45   */
46  public class DLFileEntrySoap implements Serializable {
47      public static DLFileEntrySoap toSoapModel(DLFileEntry model) {
48          DLFileEntrySoap soapModel = new DLFileEntrySoap();
49  
50          soapModel.setUuid(model.getUuid());
51          soapModel.setFileEntryId(model.getFileEntryId());
52          soapModel.setGroupId(model.getGroupId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setUserName(model.getUserName());
56          soapModel.setVersionUserId(model.getVersionUserId());
57          soapModel.setVersionUserName(model.getVersionUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setFolderId(model.getFolderId());
61          soapModel.setName(model.getName());
62          soapModel.setTitle(model.getTitle());
63          soapModel.setDescription(model.getDescription());
64          soapModel.setVersion(model.getVersion());
65          soapModel.setSize(model.getSize());
66          soapModel.setReadCount(model.getReadCount());
67          soapModel.setExtraSettings(model.getExtraSettings());
68  
69          return soapModel;
70      }
71  
72      public static DLFileEntrySoap[] toSoapModels(DLFileEntry[] models) {
73          DLFileEntrySoap[] soapModels = new DLFileEntrySoap[models.length];
74  
75          for (int i = 0; i < models.length; i++) {
76              soapModels[i] = toSoapModel(models[i]);
77          }
78  
79          return soapModels;
80      }
81  
82      public static DLFileEntrySoap[][] toSoapModels(DLFileEntry[][] models) {
83          DLFileEntrySoap[][] soapModels = null;
84  
85          if (models.length > 0) {
86              soapModels = new DLFileEntrySoap[models.length][models[0].length];
87          }
88          else {
89              soapModels = new DLFileEntrySoap[0][0];
90          }
91  
92          for (int i = 0; i < models.length; i++) {
93              soapModels[i] = toSoapModels(models[i]);
94          }
95  
96          return soapModels;
97      }
98  
99      public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
100         List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
101 
102         for (DLFileEntry model : models) {
103             soapModels.add(toSoapModel(model));
104         }
105 
106         return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
107     }
108 
109     public DLFileEntrySoap() {
110     }
111 
112     public long getPrimaryKey() {
113         return _fileEntryId;
114     }
115 
116     public void setPrimaryKey(long pk) {
117         setFileEntryId(pk);
118     }
119 
120     public String getUuid() {
121         return _uuid;
122     }
123 
124     public void setUuid(String uuid) {
125         _uuid = uuid;
126     }
127 
128     public long getFileEntryId() {
129         return _fileEntryId;
130     }
131 
132     public void setFileEntryId(long fileEntryId) {
133         _fileEntryId = fileEntryId;
134     }
135 
136     public long getGroupId() {
137         return _groupId;
138     }
139 
140     public void setGroupId(long groupId) {
141         _groupId = groupId;
142     }
143 
144     public long getCompanyId() {
145         return _companyId;
146     }
147 
148     public void setCompanyId(long companyId) {
149         _companyId = companyId;
150     }
151 
152     public long getUserId() {
153         return _userId;
154     }
155 
156     public void setUserId(long userId) {
157         _userId = userId;
158     }
159 
160     public String getUserName() {
161         return _userName;
162     }
163 
164     public void setUserName(String userName) {
165         _userName = userName;
166     }
167 
168     public long getVersionUserId() {
169         return _versionUserId;
170     }
171 
172     public void setVersionUserId(long versionUserId) {
173         _versionUserId = versionUserId;
174     }
175 
176     public String getVersionUserName() {
177         return _versionUserName;
178     }
179 
180     public void setVersionUserName(String versionUserName) {
181         _versionUserName = versionUserName;
182     }
183 
184     public Date getCreateDate() {
185         return _createDate;
186     }
187 
188     public void setCreateDate(Date createDate) {
189         _createDate = createDate;
190     }
191 
192     public Date getModifiedDate() {
193         return _modifiedDate;
194     }
195 
196     public void setModifiedDate(Date modifiedDate) {
197         _modifiedDate = modifiedDate;
198     }
199 
200     public long getFolderId() {
201         return _folderId;
202     }
203 
204     public void setFolderId(long folderId) {
205         _folderId = folderId;
206     }
207 
208     public String getName() {
209         return _name;
210     }
211 
212     public void setName(String name) {
213         _name = name;
214     }
215 
216     public String getTitle() {
217         return _title;
218     }
219 
220     public void setTitle(String title) {
221         _title = title;
222     }
223 
224     public String getDescription() {
225         return _description;
226     }
227 
228     public void setDescription(String description) {
229         _description = description;
230     }
231 
232     public double getVersion() {
233         return _version;
234     }
235 
236     public void setVersion(double version) {
237         _version = version;
238     }
239 
240     public int getSize() {
241         return _size;
242     }
243 
244     public void setSize(int size) {
245         _size = size;
246     }
247 
248     public int getReadCount() {
249         return _readCount;
250     }
251 
252     public void setReadCount(int readCount) {
253         _readCount = readCount;
254     }
255 
256     public String getExtraSettings() {
257         return _extraSettings;
258     }
259 
260     public void setExtraSettings(String extraSettings) {
261         _extraSettings = extraSettings;
262     }
263 
264     private String _uuid;
265     private long _fileEntryId;
266     private long _groupId;
267     private long _companyId;
268     private long _userId;
269     private String _userName;
270     private long _versionUserId;
271     private String _versionUserName;
272     private Date _createDate;
273     private Date _modifiedDate;
274     private long _folderId;
275     private String _name;
276     private String _title;
277     private String _description;
278     private double _version;
279     private int _size;
280     private int _readCount;
281     private String _extraSettings;
282 }