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.DLSyncServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.documentlibrary.service.http.DLSyncServiceSoap
028     * @generated
029     */
030    public class DLSyncSoap implements Serializable {
031            public static DLSyncSoap toSoapModel(DLSync model) {
032                    DLSyncSoap soapModel = new DLSyncSoap();
033    
034                    soapModel.setSyncId(model.getSyncId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setCreateDate(model.getCreateDate());
037                    soapModel.setModifiedDate(model.getModifiedDate());
038                    soapModel.setFileId(model.getFileId());
039                    soapModel.setFileUuid(model.getFileUuid());
040                    soapModel.setRepositoryId(model.getRepositoryId());
041                    soapModel.setParentFolderId(model.getParentFolderId());
042                    soapModel.setName(model.getName());
043                    soapModel.setDescription(model.getDescription());
044                    soapModel.setEvent(model.getEvent());
045                    soapModel.setType(model.getType());
046                    soapModel.setVersion(model.getVersion());
047    
048                    return soapModel;
049            }
050    
051            public static DLSyncSoap[] toSoapModels(DLSync[] models) {
052                    DLSyncSoap[] soapModels = new DLSyncSoap[models.length];
053    
054                    for (int i = 0; i < models.length; i++) {
055                            soapModels[i] = toSoapModel(models[i]);
056                    }
057    
058                    return soapModels;
059            }
060    
061            public static DLSyncSoap[][] toSoapModels(DLSync[][] models) {
062                    DLSyncSoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new DLSyncSoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new DLSyncSoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static DLSyncSoap[] toSoapModels(List<DLSync> models) {
079                    List<DLSyncSoap> soapModels = new ArrayList<DLSyncSoap>(models.size());
080    
081                    for (DLSync model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new DLSyncSoap[soapModels.size()]);
086            }
087    
088            public DLSyncSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _syncId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setSyncId(pk);
097            }
098    
099            public long getSyncId() {
100                    return _syncId;
101            }
102    
103            public void setSyncId(long syncId) {
104                    _syncId = syncId;
105            }
106    
107            public long getCompanyId() {
108                    return _companyId;
109            }
110    
111            public void setCompanyId(long companyId) {
112                    _companyId = companyId;
113            }
114    
115            public Date getCreateDate() {
116                    return _createDate;
117            }
118    
119            public void setCreateDate(Date createDate) {
120                    _createDate = createDate;
121            }
122    
123            public Date getModifiedDate() {
124                    return _modifiedDate;
125            }
126    
127            public void setModifiedDate(Date modifiedDate) {
128                    _modifiedDate = modifiedDate;
129            }
130    
131            public long getFileId() {
132                    return _fileId;
133            }
134    
135            public void setFileId(long fileId) {
136                    _fileId = fileId;
137            }
138    
139            public String getFileUuid() {
140                    return _fileUuid;
141            }
142    
143            public void setFileUuid(String fileUuid) {
144                    _fileUuid = fileUuid;
145            }
146    
147            public long getRepositoryId() {
148                    return _repositoryId;
149            }
150    
151            public void setRepositoryId(long repositoryId) {
152                    _repositoryId = repositoryId;
153            }
154    
155            public long getParentFolderId() {
156                    return _parentFolderId;
157            }
158    
159            public void setParentFolderId(long parentFolderId) {
160                    _parentFolderId = parentFolderId;
161            }
162    
163            public String getName() {
164                    return _name;
165            }
166    
167            public void setName(String name) {
168                    _name = name;
169            }
170    
171            public String getDescription() {
172                    return _description;
173            }
174    
175            public void setDescription(String description) {
176                    _description = description;
177            }
178    
179            public String getEvent() {
180                    return _event;
181            }
182    
183            public void setEvent(String event) {
184                    _event = event;
185            }
186    
187            public String getType() {
188                    return _type;
189            }
190    
191            public void setType(String type) {
192                    _type = type;
193            }
194    
195            public String getVersion() {
196                    return _version;
197            }
198    
199            public void setVersion(String version) {
200                    _version = version;
201            }
202    
203            private long _syncId;
204            private long _companyId;
205            private Date _createDate;
206            private Date _modifiedDate;
207            private long _fileId;
208            private String _fileUuid;
209            private long _repositoryId;
210            private long _parentFolderId;
211            private String _name;
212            private String _description;
213            private String _event;
214            private String _type;
215            private String _version;
216    }