001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.setRepositoryId(model.getRepositoryId());
040                    soapModel.setParentFolderId(model.getParentFolderId());
041                    soapModel.setEvent(model.getEvent());
042                    soapModel.setType(model.getType());
043    
044                    return soapModel;
045            }
046    
047            public static DLSyncSoap[] toSoapModels(DLSync[] models) {
048                    DLSyncSoap[] soapModels = new DLSyncSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static DLSyncSoap[][] toSoapModels(DLSync[][] models) {
058                    DLSyncSoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new DLSyncSoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new DLSyncSoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static DLSyncSoap[] toSoapModels(List<DLSync> models) {
075                    List<DLSyncSoap> soapModels = new ArrayList<DLSyncSoap>(models.size());
076    
077                    for (DLSync model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new DLSyncSoap[soapModels.size()]);
082            }
083    
084            public DLSyncSoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _syncId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setSyncId(pk);
093            }
094    
095            public long getSyncId() {
096                    return _syncId;
097            }
098    
099            public void setSyncId(long syncId) {
100                    _syncId = syncId;
101            }
102    
103            public long getCompanyId() {
104                    return _companyId;
105            }
106    
107            public void setCompanyId(long companyId) {
108                    _companyId = companyId;
109            }
110    
111            public Date getCreateDate() {
112                    return _createDate;
113            }
114    
115            public void setCreateDate(Date createDate) {
116                    _createDate = createDate;
117            }
118    
119            public Date getModifiedDate() {
120                    return _modifiedDate;
121            }
122    
123            public void setModifiedDate(Date modifiedDate) {
124                    _modifiedDate = modifiedDate;
125            }
126    
127            public long getFileId() {
128                    return _fileId;
129            }
130    
131            public void setFileId(long fileId) {
132                    _fileId = fileId;
133            }
134    
135            public long getRepositoryId() {
136                    return _repositoryId;
137            }
138    
139            public void setRepositoryId(long repositoryId) {
140                    _repositoryId = repositoryId;
141            }
142    
143            public long getParentFolderId() {
144                    return _parentFolderId;
145            }
146    
147            public void setParentFolderId(long parentFolderId) {
148                    _parentFolderId = parentFolderId;
149            }
150    
151            public String getEvent() {
152                    return _event;
153            }
154    
155            public void setEvent(String event) {
156                    _event = event;
157            }
158    
159            public String getType() {
160                    return _type;
161            }
162    
163            public void setType(String type) {
164                    _type = type;
165            }
166    
167            private long _syncId;
168            private long _companyId;
169            private Date _createDate;
170            private Date _modifiedDate;
171            private long _fileId;
172            private long _repositoryId;
173            private long _parentFolderId;
174            private String _event;
175            private String _type;
176    }