001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.documentlibrary.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap
028     * @generated
029     */
030    public class DLFileShortcutSoap implements Serializable {
031            public static DLFileShortcutSoap toSoapModel(DLFileShortcut model) {
032                    DLFileShortcutSoap soapModel = new DLFileShortcutSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setFileShortcutId(model.getFileShortcutId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setRepositoryId(model.getRepositoryId());
043                    soapModel.setFolderId(model.getFolderId());
044                    soapModel.setToFileEntryId(model.getToFileEntryId());
045                    soapModel.setStatus(model.getStatus());
046                    soapModel.setStatusByUserId(model.getStatusByUserId());
047                    soapModel.setStatusByUserName(model.getStatusByUserName());
048                    soapModel.setStatusDate(model.getStatusDate());
049    
050                    return soapModel;
051            }
052    
053            public static DLFileShortcutSoap[] toSoapModels(DLFileShortcut[] models) {
054                    DLFileShortcutSoap[] soapModels = new DLFileShortcutSoap[models.length];
055    
056                    for (int i = 0; i < models.length; i++) {
057                            soapModels[i] = toSoapModel(models[i]);
058                    }
059    
060                    return soapModels;
061            }
062    
063            public static DLFileShortcutSoap[][] toSoapModels(DLFileShortcut[][] models) {
064                    DLFileShortcutSoap[][] soapModels = null;
065    
066                    if (models.length > 0) {
067                            soapModels = new DLFileShortcutSoap[models.length][models[0].length];
068                    }
069                    else {
070                            soapModels = new DLFileShortcutSoap[0][0];
071                    }
072    
073                    for (int i = 0; i < models.length; i++) {
074                            soapModels[i] = toSoapModels(models[i]);
075                    }
076    
077                    return soapModels;
078            }
079    
080            public static DLFileShortcutSoap[] toSoapModels(List<DLFileShortcut> models) {
081                    List<DLFileShortcutSoap> soapModels = new ArrayList<DLFileShortcutSoap>(models.size());
082    
083                    for (DLFileShortcut model : models) {
084                            soapModels.add(toSoapModel(model));
085                    }
086    
087                    return soapModels.toArray(new DLFileShortcutSoap[soapModels.size()]);
088            }
089    
090            public DLFileShortcutSoap() {
091            }
092    
093            public long getPrimaryKey() {
094                    return _fileShortcutId;
095            }
096    
097            public void setPrimaryKey(long pk) {
098                    setFileShortcutId(pk);
099            }
100    
101            public String getUuid() {
102                    return _uuid;
103            }
104    
105            public void setUuid(String uuid) {
106                    _uuid = uuid;
107            }
108    
109            public long getFileShortcutId() {
110                    return _fileShortcutId;
111            }
112    
113            public void setFileShortcutId(long fileShortcutId) {
114                    _fileShortcutId = fileShortcutId;
115            }
116    
117            public long getGroupId() {
118                    return _groupId;
119            }
120    
121            public void setGroupId(long groupId) {
122                    _groupId = groupId;
123            }
124    
125            public long getCompanyId() {
126                    return _companyId;
127            }
128    
129            public void setCompanyId(long companyId) {
130                    _companyId = companyId;
131            }
132    
133            public long getUserId() {
134                    return _userId;
135            }
136    
137            public void setUserId(long userId) {
138                    _userId = userId;
139            }
140    
141            public String getUserName() {
142                    return _userName;
143            }
144    
145            public void setUserName(String userName) {
146                    _userName = userName;
147            }
148    
149            public Date getCreateDate() {
150                    return _createDate;
151            }
152    
153            public void setCreateDate(Date createDate) {
154                    _createDate = createDate;
155            }
156    
157            public Date getModifiedDate() {
158                    return _modifiedDate;
159            }
160    
161            public void setModifiedDate(Date modifiedDate) {
162                    _modifiedDate = modifiedDate;
163            }
164    
165            public long getRepositoryId() {
166                    return _repositoryId;
167            }
168    
169            public void setRepositoryId(long repositoryId) {
170                    _repositoryId = repositoryId;
171            }
172    
173            public long getFolderId() {
174                    return _folderId;
175            }
176    
177            public void setFolderId(long folderId) {
178                    _folderId = folderId;
179            }
180    
181            public long getToFileEntryId() {
182                    return _toFileEntryId;
183            }
184    
185            public void setToFileEntryId(long toFileEntryId) {
186                    _toFileEntryId = toFileEntryId;
187            }
188    
189            public int getStatus() {
190                    return _status;
191            }
192    
193            public void setStatus(int status) {
194                    _status = status;
195            }
196    
197            public long getStatusByUserId() {
198                    return _statusByUserId;
199            }
200    
201            public void setStatusByUserId(long statusByUserId) {
202                    _statusByUserId = statusByUserId;
203            }
204    
205            public String getStatusByUserName() {
206                    return _statusByUserName;
207            }
208    
209            public void setStatusByUserName(String statusByUserName) {
210                    _statusByUserName = statusByUserName;
211            }
212    
213            public Date getStatusDate() {
214                    return _statusDate;
215            }
216    
217            public void setStatusDate(Date statusDate) {
218                    _statusDate = statusDate;
219            }
220    
221            private String _uuid;
222            private long _fileShortcutId;
223            private long _groupId;
224            private long _companyId;
225            private long _userId;
226            private String _userName;
227            private Date _createDate;
228            private Date _modifiedDate;
229            private long _repositoryId;
230            private long _folderId;
231            private long _toFileEntryId;
232            private int _status;
233            private long _statusByUserId;
234            private String _statusByUserName;
235            private Date _statusDate;
236    }