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