001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.documentlibrary.service.http.DLFileShortcutServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class DLFileShortcutSoap implements Serializable {
034            public static DLFileShortcutSoap toSoapModel(DLFileShortcut model) {
035                    DLFileShortcutSoap soapModel = new DLFileShortcutSoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setFileShortcutId(model.getFileShortcutId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setRepositoryId(model.getRepositoryId());
046                    soapModel.setFolderId(model.getFolderId());
047                    soapModel.setToFileEntryId(model.getToFileEntryId());
048                    soapModel.setTreePath(model.getTreePath());
049                    soapModel.setActive(model.getActive());
050                    soapModel.setLastPublishDate(model.getLastPublishDate());
051                    soapModel.setStatus(model.getStatus());
052                    soapModel.setStatusByUserId(model.getStatusByUserId());
053                    soapModel.setStatusByUserName(model.getStatusByUserName());
054                    soapModel.setStatusDate(model.getStatusDate());
055    
056                    return soapModel;
057            }
058    
059            public static DLFileShortcutSoap[] toSoapModels(DLFileShortcut[] models) {
060                    DLFileShortcutSoap[] soapModels = new DLFileShortcutSoap[models.length];
061    
062                    for (int i = 0; i < models.length; i++) {
063                            soapModels[i] = toSoapModel(models[i]);
064                    }
065    
066                    return soapModels;
067            }
068    
069            public static DLFileShortcutSoap[][] toSoapModels(DLFileShortcut[][] models) {
070                    DLFileShortcutSoap[][] soapModels = null;
071    
072                    if (models.length > 0) {
073                            soapModels = new DLFileShortcutSoap[models.length][models[0].length];
074                    }
075                    else {
076                            soapModels = new DLFileShortcutSoap[0][0];
077                    }
078    
079                    for (int i = 0; i < models.length; i++) {
080                            soapModels[i] = toSoapModels(models[i]);
081                    }
082    
083                    return soapModels;
084            }
085    
086            public static DLFileShortcutSoap[] toSoapModels(List<DLFileShortcut> models) {
087                    List<DLFileShortcutSoap> soapModels = new ArrayList<DLFileShortcutSoap>(models.size());
088    
089                    for (DLFileShortcut model : models) {
090                            soapModels.add(toSoapModel(model));
091                    }
092    
093                    return soapModels.toArray(new DLFileShortcutSoap[soapModels.size()]);
094            }
095    
096            public DLFileShortcutSoap() {
097            }
098    
099            public long getPrimaryKey() {
100                    return _fileShortcutId;
101            }
102    
103            public void setPrimaryKey(long pk) {
104                    setFileShortcutId(pk);
105            }
106    
107            public String getUuid() {
108                    return _uuid;
109            }
110    
111            public void setUuid(String uuid) {
112                    _uuid = uuid;
113            }
114    
115            public long getFileShortcutId() {
116                    return _fileShortcutId;
117            }
118    
119            public void setFileShortcutId(long fileShortcutId) {
120                    _fileShortcutId = fileShortcutId;
121            }
122    
123            public long getGroupId() {
124                    return _groupId;
125            }
126    
127            public void setGroupId(long groupId) {
128                    _groupId = groupId;
129            }
130    
131            public long getCompanyId() {
132                    return _companyId;
133            }
134    
135            public void setCompanyId(long companyId) {
136                    _companyId = companyId;
137            }
138    
139            public long getUserId() {
140                    return _userId;
141            }
142    
143            public void setUserId(long userId) {
144                    _userId = userId;
145            }
146    
147            public String getUserName() {
148                    return _userName;
149            }
150    
151            public void setUserName(String userName) {
152                    _userName = userName;
153            }
154    
155            public Date getCreateDate() {
156                    return _createDate;
157            }
158    
159            public void setCreateDate(Date createDate) {
160                    _createDate = createDate;
161            }
162    
163            public Date getModifiedDate() {
164                    return _modifiedDate;
165            }
166    
167            public void setModifiedDate(Date modifiedDate) {
168                    _modifiedDate = modifiedDate;
169            }
170    
171            public long getRepositoryId() {
172                    return _repositoryId;
173            }
174    
175            public void setRepositoryId(long repositoryId) {
176                    _repositoryId = repositoryId;
177            }
178    
179            public long getFolderId() {
180                    return _folderId;
181            }
182    
183            public void setFolderId(long folderId) {
184                    _folderId = folderId;
185            }
186    
187            public long getToFileEntryId() {
188                    return _toFileEntryId;
189            }
190    
191            public void setToFileEntryId(long toFileEntryId) {
192                    _toFileEntryId = toFileEntryId;
193            }
194    
195            public String getTreePath() {
196                    return _treePath;
197            }
198    
199            public void setTreePath(String treePath) {
200                    _treePath = treePath;
201            }
202    
203            public boolean getActive() {
204                    return _active;
205            }
206    
207            public boolean isActive() {
208                    return _active;
209            }
210    
211            public void setActive(boolean active) {
212                    _active = active;
213            }
214    
215            public Date getLastPublishDate() {
216                    return _lastPublishDate;
217            }
218    
219            public void setLastPublishDate(Date lastPublishDate) {
220                    _lastPublishDate = lastPublishDate;
221            }
222    
223            public int getStatus() {
224                    return _status;
225            }
226    
227            public void setStatus(int status) {
228                    _status = status;
229            }
230    
231            public long getStatusByUserId() {
232                    return _statusByUserId;
233            }
234    
235            public void setStatusByUserId(long statusByUserId) {
236                    _statusByUserId = statusByUserId;
237            }
238    
239            public String getStatusByUserName() {
240                    return _statusByUserName;
241            }
242    
243            public void setStatusByUserName(String statusByUserName) {
244                    _statusByUserName = statusByUserName;
245            }
246    
247            public Date getStatusDate() {
248                    return _statusDate;
249            }
250    
251            public void setStatusDate(Date statusDate) {
252                    _statusDate = statusDate;
253            }
254    
255            private String _uuid;
256            private long _fileShortcutId;
257            private long _groupId;
258            private long _companyId;
259            private long _userId;
260            private String _userName;
261            private Date _createDate;
262            private Date _modifiedDate;
263            private long _repositoryId;
264            private long _folderId;
265            private long _toFileEntryId;
266            private String _treePath;
267            private boolean _active;
268            private Date _lastPublishDate;
269            private int _status;
270            private long _statusByUserId;
271            private String _statusByUserName;
272            private Date _statusDate;
273    }