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.imagegallery.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="IGFolderSoap.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.imagegallery.service.http.IGFolderServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.imagegallery.service.http.IGFolderServiceSoap
38   * @generated
39   */
40  public class IGFolderSoap implements Serializable {
41      public static IGFolderSoap toSoapModel(IGFolder model) {
42          IGFolderSoap soapModel = new IGFolderSoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setFolderId(model.getFolderId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setParentFolderId(model.getParentFolderId());
52          soapModel.setName(model.getName());
53          soapModel.setDescription(model.getDescription());
54  
55          return soapModel;
56      }
57  
58      public static IGFolderSoap[] toSoapModels(IGFolder[] models) {
59          IGFolderSoap[] soapModels = new IGFolderSoap[models.length];
60  
61          for (int i = 0; i < models.length; i++) {
62              soapModels[i] = toSoapModel(models[i]);
63          }
64  
65          return soapModels;
66      }
67  
68      public static IGFolderSoap[][] toSoapModels(IGFolder[][] models) {
69          IGFolderSoap[][] soapModels = null;
70  
71          if (models.length > 0) {
72              soapModels = new IGFolderSoap[models.length][models[0].length];
73          }
74          else {
75              soapModels = new IGFolderSoap[0][0];
76          }
77  
78          for (int i = 0; i < models.length; i++) {
79              soapModels[i] = toSoapModels(models[i]);
80          }
81  
82          return soapModels;
83      }
84  
85      public static IGFolderSoap[] toSoapModels(List<IGFolder> models) {
86          List<IGFolderSoap> soapModels = new ArrayList<IGFolderSoap>(models.size());
87  
88          for (IGFolder model : models) {
89              soapModels.add(toSoapModel(model));
90          }
91  
92          return soapModels.toArray(new IGFolderSoap[soapModels.size()]);
93      }
94  
95      public IGFolderSoap() {
96      }
97  
98      public long getPrimaryKey() {
99          return _folderId;
100     }
101 
102     public void setPrimaryKey(long pk) {
103         setFolderId(pk);
104     }
105 
106     public String getUuid() {
107         return _uuid;
108     }
109 
110     public void setUuid(String uuid) {
111         _uuid = uuid;
112     }
113 
114     public long getFolderId() {
115         return _folderId;
116     }
117 
118     public void setFolderId(long folderId) {
119         _folderId = folderId;
120     }
121 
122     public long getGroupId() {
123         return _groupId;
124     }
125 
126     public void setGroupId(long groupId) {
127         _groupId = groupId;
128     }
129 
130     public long getCompanyId() {
131         return _companyId;
132     }
133 
134     public void setCompanyId(long companyId) {
135         _companyId = companyId;
136     }
137 
138     public long getUserId() {
139         return _userId;
140     }
141 
142     public void setUserId(long userId) {
143         _userId = userId;
144     }
145 
146     public Date getCreateDate() {
147         return _createDate;
148     }
149 
150     public void setCreateDate(Date createDate) {
151         _createDate = createDate;
152     }
153 
154     public Date getModifiedDate() {
155         return _modifiedDate;
156     }
157 
158     public void setModifiedDate(Date modifiedDate) {
159         _modifiedDate = modifiedDate;
160     }
161 
162     public long getParentFolderId() {
163         return _parentFolderId;
164     }
165 
166     public void setParentFolderId(long parentFolderId) {
167         _parentFolderId = parentFolderId;
168     }
169 
170     public String getName() {
171         return _name;
172     }
173 
174     public void setName(String name) {
175         _name = name;
176     }
177 
178     public String getDescription() {
179         return _description;
180     }
181 
182     public void setDescription(String description) {
183         _description = description;
184     }
185 
186     private String _uuid;
187     private long _folderId;
188     private long _groupId;
189     private long _companyId;
190     private long _userId;
191     private Date _createDate;
192     private Date _modifiedDate;
193     private long _parentFolderId;
194     private String _name;
195     private String _description;
196 }