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