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