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.exportimport.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.exportimport.service.http.ExportImportConfigurationServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.exportimport.service.http.ExportImportConfigurationServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class ExportImportConfigurationSoap implements Serializable {
034            public static ExportImportConfigurationSoap toSoapModel(
035                    ExportImportConfiguration model) {
036                    ExportImportConfigurationSoap soapModel = new ExportImportConfigurationSoap();
037    
038                    soapModel.setMvccVersion(model.getMvccVersion());
039                    soapModel.setExportImportConfigurationId(model.getExportImportConfigurationId());
040                    soapModel.setGroupId(model.getGroupId());
041                    soapModel.setCompanyId(model.getCompanyId());
042                    soapModel.setUserId(model.getUserId());
043                    soapModel.setUserName(model.getUserName());
044                    soapModel.setCreateDate(model.getCreateDate());
045                    soapModel.setModifiedDate(model.getModifiedDate());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setType(model.getType());
049                    soapModel.setSettings(model.getSettings());
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 ExportImportConfigurationSoap[] toSoapModels(
059                    ExportImportConfiguration[] models) {
060                    ExportImportConfigurationSoap[] soapModels = new ExportImportConfigurationSoap[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 ExportImportConfigurationSoap[][] toSoapModels(
070                    ExportImportConfiguration[][] models) {
071                    ExportImportConfigurationSoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new ExportImportConfigurationSoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new ExportImportConfigurationSoap[0][0];
078                    }
079    
080                    for (int i = 0; i < models.length; i++) {
081                            soapModels[i] = toSoapModels(models[i]);
082                    }
083    
084                    return soapModels;
085            }
086    
087            public static ExportImportConfigurationSoap[] toSoapModels(
088                    List<ExportImportConfiguration> models) {
089                    List<ExportImportConfigurationSoap> soapModels = new ArrayList<ExportImportConfigurationSoap>(models.size());
090    
091                    for (ExportImportConfiguration model : models) {
092                            soapModels.add(toSoapModel(model));
093                    }
094    
095                    return soapModels.toArray(new ExportImportConfigurationSoap[soapModels.size()]);
096            }
097    
098            public ExportImportConfigurationSoap() {
099            }
100    
101            public long getPrimaryKey() {
102                    return _exportImportConfigurationId;
103            }
104    
105            public void setPrimaryKey(long pk) {
106                    setExportImportConfigurationId(pk);
107            }
108    
109            public long getMvccVersion() {
110                    return _mvccVersion;
111            }
112    
113            public void setMvccVersion(long mvccVersion) {
114                    _mvccVersion = mvccVersion;
115            }
116    
117            public long getExportImportConfigurationId() {
118                    return _exportImportConfigurationId;
119            }
120    
121            public void setExportImportConfigurationId(long exportImportConfigurationId) {
122                    _exportImportConfigurationId = exportImportConfigurationId;
123            }
124    
125            public long getGroupId() {
126                    return _groupId;
127            }
128    
129            public void setGroupId(long groupId) {
130                    _groupId = groupId;
131            }
132    
133            public long getCompanyId() {
134                    return _companyId;
135            }
136    
137            public void setCompanyId(long companyId) {
138                    _companyId = companyId;
139            }
140    
141            public long getUserId() {
142                    return _userId;
143            }
144    
145            public void setUserId(long userId) {
146                    _userId = userId;
147            }
148    
149            public String getUserName() {
150                    return _userName;
151            }
152    
153            public void setUserName(String userName) {
154                    _userName = userName;
155            }
156    
157            public Date getCreateDate() {
158                    return _createDate;
159            }
160    
161            public void setCreateDate(Date createDate) {
162                    _createDate = createDate;
163            }
164    
165            public Date getModifiedDate() {
166                    return _modifiedDate;
167            }
168    
169            public void setModifiedDate(Date modifiedDate) {
170                    _modifiedDate = modifiedDate;
171            }
172    
173            public String getName() {
174                    return _name;
175            }
176    
177            public void setName(String name) {
178                    _name = name;
179            }
180    
181            public String getDescription() {
182                    return _description;
183            }
184    
185            public void setDescription(String description) {
186                    _description = description;
187            }
188    
189            public int getType() {
190                    return _type;
191            }
192    
193            public void setType(int type) {
194                    _type = type;
195            }
196    
197            public String getSettings() {
198                    return _settings;
199            }
200    
201            public void setSettings(String settings) {
202                    _settings = settings;
203            }
204    
205            public int getStatus() {
206                    return _status;
207            }
208    
209            public void setStatus(int status) {
210                    _status = status;
211            }
212    
213            public long getStatusByUserId() {
214                    return _statusByUserId;
215            }
216    
217            public void setStatusByUserId(long statusByUserId) {
218                    _statusByUserId = statusByUserId;
219            }
220    
221            public String getStatusByUserName() {
222                    return _statusByUserName;
223            }
224    
225            public void setStatusByUserName(String statusByUserName) {
226                    _statusByUserName = statusByUserName;
227            }
228    
229            public Date getStatusDate() {
230                    return _statusDate;
231            }
232    
233            public void setStatusDate(Date statusDate) {
234                    _statusDate = statusDate;
235            }
236    
237            private long _mvccVersion;
238            private long _exportImportConfigurationId;
239            private long _groupId;
240            private long _companyId;
241            private long _userId;
242            private String _userName;
243            private Date _createDate;
244            private Date _modifiedDate;
245            private String _name;
246            private String _description;
247            private int _type;
248            private String _settings;
249            private int _status;
250            private long _statusByUserId;
251            private String _statusByUserName;
252            private Date _statusDate;
253    }