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