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.portlet.trash.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, specifically {@link com.liferay.portlet.trash.service.http.TrashEntryServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.trash.service.http.TrashEntryServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class TrashEntrySoap implements Serializable {
034            public static TrashEntrySoap toSoapModel(TrashEntry model) {
035                    TrashEntrySoap soapModel = new TrashEntrySoap();
036    
037                    soapModel.setEntryId(model.getEntryId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setClassNameId(model.getClassNameId());
044                    soapModel.setClassPK(model.getClassPK());
045                    soapModel.setSystemEventSetKey(model.getSystemEventSetKey());
046                    soapModel.setTypeSettings(model.getTypeSettings());
047                    soapModel.setStatus(model.getStatus());
048    
049                    return soapModel;
050            }
051    
052            public static TrashEntrySoap[] toSoapModels(TrashEntry[] models) {
053                    TrashEntrySoap[] soapModels = new TrashEntrySoap[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 TrashEntrySoap[][] toSoapModels(TrashEntry[][] models) {
063                    TrashEntrySoap[][] soapModels = null;
064    
065                    if (models.length > 0) {
066                            soapModels = new TrashEntrySoap[models.length][models[0].length];
067                    }
068                    else {
069                            soapModels = new TrashEntrySoap[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 TrashEntrySoap[] toSoapModels(List<TrashEntry> models) {
080                    List<TrashEntrySoap> soapModels = new ArrayList<TrashEntrySoap>(models.size());
081    
082                    for (TrashEntry model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new TrashEntrySoap[soapModels.size()]);
087            }
088    
089            public TrashEntrySoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _entryId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setEntryId(pk);
098            }
099    
100            public long getEntryId() {
101                    return _entryId;
102            }
103    
104            public void setEntryId(long entryId) {
105                    _entryId = entryId;
106            }
107    
108            public long getGroupId() {
109                    return _groupId;
110            }
111    
112            public void setGroupId(long groupId) {
113                    _groupId = groupId;
114            }
115    
116            public long getCompanyId() {
117                    return _companyId;
118            }
119    
120            public void setCompanyId(long companyId) {
121                    _companyId = companyId;
122            }
123    
124            public long getUserId() {
125                    return _userId;
126            }
127    
128            public void setUserId(long userId) {
129                    _userId = userId;
130            }
131    
132            public String getUserName() {
133                    return _userName;
134            }
135    
136            public void setUserName(String userName) {
137                    _userName = userName;
138            }
139    
140            public Date getCreateDate() {
141                    return _createDate;
142            }
143    
144            public void setCreateDate(Date createDate) {
145                    _createDate = createDate;
146            }
147    
148            public long getClassNameId() {
149                    return _classNameId;
150            }
151    
152            public void setClassNameId(long classNameId) {
153                    _classNameId = classNameId;
154            }
155    
156            public long getClassPK() {
157                    return _classPK;
158            }
159    
160            public void setClassPK(long classPK) {
161                    _classPK = classPK;
162            }
163    
164            public long getSystemEventSetKey() {
165                    return _systemEventSetKey;
166            }
167    
168            public void setSystemEventSetKey(long systemEventSetKey) {
169                    _systemEventSetKey = systemEventSetKey;
170            }
171    
172            public String getTypeSettings() {
173                    return _typeSettings;
174            }
175    
176            public void setTypeSettings(String typeSettings) {
177                    _typeSettings = typeSettings;
178            }
179    
180            public int getStatus() {
181                    return _status;
182            }
183    
184            public void setStatus(int status) {
185                    _status = status;
186            }
187    
188            private long _entryId;
189            private long _groupId;
190            private long _companyId;
191            private long _userId;
192            private String _userName;
193            private Date _createDate;
194            private long _classNameId;
195            private long _classPK;
196            private long _systemEventSetKey;
197            private String _typeSettings;
198            private int _status;
199    }