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