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.portal.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.portal.service.http.RepositoryServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.RepositoryServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class RepositorySoap implements Serializable {
034            public static RepositorySoap toSoapModel(Repository model) {
035                    RepositorySoap soapModel = new RepositorySoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setUuid(model.getUuid());
039                    soapModel.setRepositoryId(model.getRepositoryId());
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.setClassNameId(model.getClassNameId());
047                    soapModel.setName(model.getName());
048                    soapModel.setDescription(model.getDescription());
049                    soapModel.setPortletId(model.getPortletId());
050                    soapModel.setTypeSettings(model.getTypeSettings());
051                    soapModel.setDlFolderId(model.getDlFolderId());
052                    soapModel.setLastPublishDate(model.getLastPublishDate());
053    
054                    return soapModel;
055            }
056    
057            public static RepositorySoap[] toSoapModels(Repository[] models) {
058                    RepositorySoap[] soapModels = new RepositorySoap[models.length];
059    
060                    for (int i = 0; i < models.length; i++) {
061                            soapModels[i] = toSoapModel(models[i]);
062                    }
063    
064                    return soapModels;
065            }
066    
067            public static RepositorySoap[][] toSoapModels(Repository[][] models) {
068                    RepositorySoap[][] soapModels = null;
069    
070                    if (models.length > 0) {
071                            soapModels = new RepositorySoap[models.length][models[0].length];
072                    }
073                    else {
074                            soapModels = new RepositorySoap[0][0];
075                    }
076    
077                    for (int i = 0; i < models.length; i++) {
078                            soapModels[i] = toSoapModels(models[i]);
079                    }
080    
081                    return soapModels;
082            }
083    
084            public static RepositorySoap[] toSoapModels(List<Repository> models) {
085                    List<RepositorySoap> soapModels = new ArrayList<RepositorySoap>(models.size());
086    
087                    for (Repository model : models) {
088                            soapModels.add(toSoapModel(model));
089                    }
090    
091                    return soapModels.toArray(new RepositorySoap[soapModels.size()]);
092            }
093    
094            public RepositorySoap() {
095            }
096    
097            public long getPrimaryKey() {
098                    return _repositoryId;
099            }
100    
101            public void setPrimaryKey(long pk) {
102                    setRepositoryId(pk);
103            }
104    
105            public long getMvccVersion() {
106                    return _mvccVersion;
107            }
108    
109            public void setMvccVersion(long mvccVersion) {
110                    _mvccVersion = mvccVersion;
111            }
112    
113            public String getUuid() {
114                    return _uuid;
115            }
116    
117            public void setUuid(String uuid) {
118                    _uuid = uuid;
119            }
120    
121            public long getRepositoryId() {
122                    return _repositoryId;
123            }
124    
125            public void setRepositoryId(long repositoryId) {
126                    _repositoryId = repositoryId;
127            }
128    
129            public long getGroupId() {
130                    return _groupId;
131            }
132    
133            public void setGroupId(long groupId) {
134                    _groupId = groupId;
135            }
136    
137            public long getCompanyId() {
138                    return _companyId;
139            }
140    
141            public void setCompanyId(long companyId) {
142                    _companyId = companyId;
143            }
144    
145            public long getUserId() {
146                    return _userId;
147            }
148    
149            public void setUserId(long userId) {
150                    _userId = userId;
151            }
152    
153            public String getUserName() {
154                    return _userName;
155            }
156    
157            public void setUserName(String userName) {
158                    _userName = userName;
159            }
160    
161            public Date getCreateDate() {
162                    return _createDate;
163            }
164    
165            public void setCreateDate(Date createDate) {
166                    _createDate = createDate;
167            }
168    
169            public Date getModifiedDate() {
170                    return _modifiedDate;
171            }
172    
173            public void setModifiedDate(Date modifiedDate) {
174                    _modifiedDate = modifiedDate;
175            }
176    
177            public long getClassNameId() {
178                    return _classNameId;
179            }
180    
181            public void setClassNameId(long classNameId) {
182                    _classNameId = classNameId;
183            }
184    
185            public String getName() {
186                    return _name;
187            }
188    
189            public void setName(String name) {
190                    _name = name;
191            }
192    
193            public String getDescription() {
194                    return _description;
195            }
196    
197            public void setDescription(String description) {
198                    _description = description;
199            }
200    
201            public String getPortletId() {
202                    return _portletId;
203            }
204    
205            public void setPortletId(String portletId) {
206                    _portletId = portletId;
207            }
208    
209            public String getTypeSettings() {
210                    return _typeSettings;
211            }
212    
213            public void setTypeSettings(String typeSettings) {
214                    _typeSettings = typeSettings;
215            }
216    
217            public long getDlFolderId() {
218                    return _dlFolderId;
219            }
220    
221            public void setDlFolderId(long dlFolderId) {
222                    _dlFolderId = dlFolderId;
223            }
224    
225            public Date getLastPublishDate() {
226                    return _lastPublishDate;
227            }
228    
229            public void setLastPublishDate(Date lastPublishDate) {
230                    _lastPublishDate = lastPublishDate;
231            }
232    
233            private long _mvccVersion;
234            private String _uuid;
235            private long _repositoryId;
236            private long _groupId;
237            private long _companyId;
238            private long _userId;
239            private String _userName;
240            private Date _createDate;
241            private Date _modifiedDate;
242            private long _classNameId;
243            private String _name;
244            private String _description;
245            private String _portletId;
246            private String _typeSettings;
247            private long _dlFolderId;
248            private Date _lastPublishDate;
249    }