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