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 SystemEventSoap implements Serializable {
033            public static SystemEventSoap toSoapModel(SystemEvent model) {
034                    SystemEventSoap soapModel = new SystemEventSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setSystemEventId(model.getSystemEventId());
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.setClassUuid(model.getClassUuid());
046                    soapModel.setReferrerClassNameId(model.getReferrerClassNameId());
047                    soapModel.setParentSystemEventId(model.getParentSystemEventId());
048                    soapModel.setSystemEventSetKey(model.getSystemEventSetKey());
049                    soapModel.setType(model.getType());
050                    soapModel.setExtraData(model.getExtraData());
051    
052                    return soapModel;
053            }
054    
055            public static SystemEventSoap[] toSoapModels(SystemEvent[] models) {
056                    SystemEventSoap[] soapModels = new SystemEventSoap[models.length];
057    
058                    for (int i = 0; i < models.length; i++) {
059                            soapModels[i] = toSoapModel(models[i]);
060                    }
061    
062                    return soapModels;
063            }
064    
065            public static SystemEventSoap[][] toSoapModels(SystemEvent[][] models) {
066                    SystemEventSoap[][] soapModels = null;
067    
068                    if (models.length > 0) {
069                            soapModels = new SystemEventSoap[models.length][models[0].length];
070                    }
071                    else {
072                            soapModels = new SystemEventSoap[0][0];
073                    }
074    
075                    for (int i = 0; i < models.length; i++) {
076                            soapModels[i] = toSoapModels(models[i]);
077                    }
078    
079                    return soapModels;
080            }
081    
082            public static SystemEventSoap[] toSoapModels(List<SystemEvent> models) {
083                    List<SystemEventSoap> soapModels = new ArrayList<SystemEventSoap>(models.size());
084    
085                    for (SystemEvent model : models) {
086                            soapModels.add(toSoapModel(model));
087                    }
088    
089                    return soapModels.toArray(new SystemEventSoap[soapModels.size()]);
090            }
091    
092            public SystemEventSoap() {
093            }
094    
095            public long getPrimaryKey() {
096                    return _systemEventId;
097            }
098    
099            public void setPrimaryKey(long pk) {
100                    setSystemEventId(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 long getSystemEventId() {
112                    return _systemEventId;
113            }
114    
115            public void setSystemEventId(long systemEventId) {
116                    _systemEventId = systemEventId;
117            }
118    
119            public long getGroupId() {
120                    return _groupId;
121            }
122    
123            public void setGroupId(long groupId) {
124                    _groupId = groupId;
125            }
126    
127            public long getCompanyId() {
128                    return _companyId;
129            }
130    
131            public void setCompanyId(long companyId) {
132                    _companyId = companyId;
133            }
134    
135            public long getUserId() {
136                    return _userId;
137            }
138    
139            public void setUserId(long userId) {
140                    _userId = userId;
141            }
142    
143            public String getUserName() {
144                    return _userName;
145            }
146    
147            public void setUserName(String userName) {
148                    _userName = userName;
149            }
150    
151            public Date getCreateDate() {
152                    return _createDate;
153            }
154    
155            public void setCreateDate(Date createDate) {
156                    _createDate = createDate;
157            }
158    
159            public long getClassNameId() {
160                    return _classNameId;
161            }
162    
163            public void setClassNameId(long classNameId) {
164                    _classNameId = classNameId;
165            }
166    
167            public long getClassPK() {
168                    return _classPK;
169            }
170    
171            public void setClassPK(long classPK) {
172                    _classPK = classPK;
173            }
174    
175            public String getClassUuid() {
176                    return _classUuid;
177            }
178    
179            public void setClassUuid(String classUuid) {
180                    _classUuid = classUuid;
181            }
182    
183            public long getReferrerClassNameId() {
184                    return _referrerClassNameId;
185            }
186    
187            public void setReferrerClassNameId(long referrerClassNameId) {
188                    _referrerClassNameId = referrerClassNameId;
189            }
190    
191            public long getParentSystemEventId() {
192                    return _parentSystemEventId;
193            }
194    
195            public void setParentSystemEventId(long parentSystemEventId) {
196                    _parentSystemEventId = parentSystemEventId;
197            }
198    
199            public long getSystemEventSetKey() {
200                    return _systemEventSetKey;
201            }
202    
203            public void setSystemEventSetKey(long systemEventSetKey) {
204                    _systemEventSetKey = systemEventSetKey;
205            }
206    
207            public int getType() {
208                    return _type;
209            }
210    
211            public void setType(int type) {
212                    _type = type;
213            }
214    
215            public String getExtraData() {
216                    return _extraData;
217            }
218    
219            public void setExtraData(String extraData) {
220                    _extraData = extraData;
221            }
222    
223            private long _mvccVersion;
224            private long _systemEventId;
225            private long _groupId;
226            private long _companyId;
227            private long _userId;
228            private String _userName;
229            private Date _createDate;
230            private long _classNameId;
231            private long _classPK;
232            private String _classUuid;
233            private long _referrerClassNameId;
234            private long _parentSystemEventId;
235            private long _systemEventSetKey;
236            private int _type;
237            private String _extraData;
238    }