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.setStatus(model.getStatus());
051                    soapModel.setStatusByUserId(model.getStatusByUserId());
052                    soapModel.setStatusByUserName(model.getStatusByUserName());
053                    soapModel.setStatusDate(model.getStatusDate());
054    
055                    return soapModel;
056            }
057    
058            public static DLFileShortcutSoap[] toSoapModels(DLFileShortcut[] models) {
059                    DLFileShortcutSoap[] soapModels = new DLFileShortcutSoap[models.length];
060    
061                    for (int i = 0; i < models.length; i++) {
062                            soapModels[i] = toSoapModel(models[i]);
063                    }
064    
065                    return soapModels;
066            }
067    
068            public static DLFileShortcutSoap[][] toSoapModels(DLFileShortcut[][] models) {
069                    DLFileShortcutSoap[][] soapModels = null;
070    
071                    if (models.length > 0) {
072                            soapModels = new DLFileShortcutSoap[models.length][models[0].length];
073                    }
074                    else {
075                            soapModels = new DLFileShortcutSoap[0][0];
076                    }
077    
078                    for (int i = 0; i < models.length; i++) {
079                            soapModels[i] = toSoapModels(models[i]);
080                    }
081    
082                    return soapModels;
083            }
084    
085            public static DLFileShortcutSoap[] toSoapModels(List<DLFileShortcut> models) {
086                    List<DLFileShortcutSoap> soapModels = new ArrayList<DLFileShortcutSoap>(models.size());
087    
088                    for (DLFileShortcut model : models) {
089                            soapModels.add(toSoapModel(model));
090                    }
091    
092                    return soapModels.toArray(new DLFileShortcutSoap[soapModels.size()]);
093            }
094    
095            public DLFileShortcutSoap() {
096            }
097    
098            public long getPrimaryKey() {
099                    return _fileShortcutId;
100            }
101    
102            public void setPrimaryKey(long pk) {
103                    setFileShortcutId(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 getFileShortcutId() {
115                    return _fileShortcutId;
116            }
117    
118            public void setFileShortcutId(long fileShortcutId) {
119                    _fileShortcutId = fileShortcutId;
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 String getUserName() {
147                    return _userName;
148            }
149    
150            public void setUserName(String userName) {
151                    _userName = userName;
152            }
153    
154            public Date getCreateDate() {
155                    return _createDate;
156            }
157    
158            public void setCreateDate(Date createDate) {
159                    _createDate = createDate;
160            }
161    
162            public Date getModifiedDate() {
163                    return _modifiedDate;
164            }
165    
166            public void setModifiedDate(Date modifiedDate) {
167                    _modifiedDate = modifiedDate;
168            }
169    
170            public long getRepositoryId() {
171                    return _repositoryId;
172            }
173    
174            public void setRepositoryId(long repositoryId) {
175                    _repositoryId = repositoryId;
176            }
177    
178            public long getFolderId() {
179                    return _folderId;
180            }
181    
182            public void setFolderId(long folderId) {
183                    _folderId = folderId;
184            }
185    
186            public long getToFileEntryId() {
187                    return _toFileEntryId;
188            }
189    
190            public void setToFileEntryId(long toFileEntryId) {
191                    _toFileEntryId = toFileEntryId;
192            }
193    
194            public String getTreePath() {
195                    return _treePath;
196            }
197    
198            public void setTreePath(String treePath) {
199                    _treePath = treePath;
200            }
201    
202            public boolean getActive() {
203                    return _active;
204            }
205    
206            public boolean isActive() {
207                    return _active;
208            }
209    
210            public void setActive(boolean active) {
211                    _active = active;
212            }
213    
214            public int getStatus() {
215                    return _status;
216            }
217    
218            public void setStatus(int status) {
219                    _status = status;
220            }
221    
222            public long getStatusByUserId() {
223                    return _statusByUserId;
224            }
225    
226            public void setStatusByUserId(long statusByUserId) {
227                    _statusByUserId = statusByUserId;
228            }
229    
230            public String getStatusByUserName() {
231                    return _statusByUserName;
232            }
233    
234            public void setStatusByUserName(String statusByUserName) {
235                    _statusByUserName = statusByUserName;
236            }
237    
238            public Date getStatusDate() {
239                    return _statusDate;
240            }
241    
242            public void setStatusDate(Date statusDate) {
243                    _statusDate = statusDate;
244            }
245    
246            private String _uuid;
247            private long _fileShortcutId;
248            private long _groupId;
249            private long _companyId;
250            private long _userId;
251            private String _userName;
252            private Date _createDate;
253            private Date _modifiedDate;
254            private long _repositoryId;
255            private long _folderId;
256            private long _toFileEntryId;
257            private String _treePath;
258            private boolean _active;
259            private int _status;
260            private long _statusByUserId;
261            private String _statusByUserName;
262            private Date _statusDate;
263    }