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.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.setRepositoryId(model.getRepositoryId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setModifiedDate(model.getModifiedDate());
039                    soapModel.setClassNameId(model.getClassNameId());
040                    soapModel.setName(model.getName());
041                    soapModel.setDescription(model.getDescription());
042                    soapModel.setPortletId(model.getPortletId());
043                    soapModel.setTypeSettings(model.getTypeSettings());
044                    soapModel.setDlFolderId(model.getDlFolderId());
045    
046                    return soapModel;
047            }
048    
049            public static RepositorySoap[] toSoapModels(Repository[] models) {
050                    RepositorySoap[] soapModels = new RepositorySoap[models.length];
051    
052                    for (int i = 0; i < models.length; i++) {
053                            soapModels[i] = toSoapModel(models[i]);
054                    }
055    
056                    return soapModels;
057            }
058    
059            public static RepositorySoap[][] toSoapModels(Repository[][] models) {
060                    RepositorySoap[][] soapModels = null;
061    
062                    if (models.length > 0) {
063                            soapModels = new RepositorySoap[models.length][models[0].length];
064                    }
065                    else {
066                            soapModels = new RepositorySoap[0][0];
067                    }
068    
069                    for (int i = 0; i < models.length; i++) {
070                            soapModels[i] = toSoapModels(models[i]);
071                    }
072    
073                    return soapModels;
074            }
075    
076            public static RepositorySoap[] toSoapModels(List<Repository> models) {
077                    List<RepositorySoap> soapModels = new ArrayList<RepositorySoap>(models.size());
078    
079                    for (Repository model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new RepositorySoap[soapModels.size()]);
084            }
085    
086            public RepositorySoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _repositoryId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setRepositoryId(pk);
095            }
096    
097            public long getRepositoryId() {
098                    return _repositoryId;
099            }
100    
101            public void setRepositoryId(long repositoryId) {
102                    _repositoryId = repositoryId;
103            }
104    
105            public long getGroupId() {
106                    return _groupId;
107            }
108    
109            public void setGroupId(long groupId) {
110                    _groupId = groupId;
111            }
112    
113            public long getCompanyId() {
114                    return _companyId;
115            }
116    
117            public void setCompanyId(long companyId) {
118                    _companyId = companyId;
119            }
120    
121            public Date getCreateDate() {
122                    return _createDate;
123            }
124    
125            public void setCreateDate(Date createDate) {
126                    _createDate = createDate;
127            }
128    
129            public Date getModifiedDate() {
130                    return _modifiedDate;
131            }
132    
133            public void setModifiedDate(Date modifiedDate) {
134                    _modifiedDate = modifiedDate;
135            }
136    
137            public long getClassNameId() {
138                    return _classNameId;
139            }
140    
141            public void setClassNameId(long classNameId) {
142                    _classNameId = classNameId;
143            }
144    
145            public String getName() {
146                    return _name;
147            }
148    
149            public void setName(String name) {
150                    _name = name;
151            }
152    
153            public String getDescription() {
154                    return _description;
155            }
156    
157            public void setDescription(String description) {
158                    _description = description;
159            }
160    
161            public String getPortletId() {
162                    return _portletId;
163            }
164    
165            public void setPortletId(String portletId) {
166                    _portletId = portletId;
167            }
168    
169            public String getTypeSettings() {
170                    return _typeSettings;
171            }
172    
173            public void setTypeSettings(String typeSettings) {
174                    _typeSettings = typeSettings;
175            }
176    
177            public long getDlFolderId() {
178                    return _dlFolderId;
179            }
180    
181            public void setDlFolderId(long dlFolderId) {
182                    _dlFolderId = dlFolderId;
183            }
184    
185            private long _repositoryId;
186            private long _groupId;
187            private long _companyId;
188            private Date _createDate;
189            private Date _modifiedDate;
190            private long _classNameId;
191            private String _name;
192            private String _description;
193            private String _portletId;
194            private String _typeSettings;
195            private long _dlFolderId;
196    }