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.List;
023    
024    /**
025     * This class is used by SOAP remote services.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class UserNotificationEventSoap implements Serializable {
032            public static UserNotificationEventSoap toSoapModel(
033                    UserNotificationEvent model) {
034                    UserNotificationEventSoap soapModel = new UserNotificationEventSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setUserNotificationEventId(model.getUserNotificationEventId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setType(model.getType());
042                    soapModel.setTimestamp(model.getTimestamp());
043                    soapModel.setDeliveryType(model.getDeliveryType());
044                    soapModel.setDeliverBy(model.getDeliverBy());
045                    soapModel.setDelivered(model.getDelivered());
046                    soapModel.setPayload(model.getPayload());
047                    soapModel.setActionRequired(model.getActionRequired());
048                    soapModel.setArchived(model.getArchived());
049    
050                    return soapModel;
051            }
052    
053            public static UserNotificationEventSoap[] toSoapModels(
054                    UserNotificationEvent[] models) {
055                    UserNotificationEventSoap[] soapModels = new UserNotificationEventSoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static UserNotificationEventSoap[][] toSoapModels(
065                    UserNotificationEvent[][] models) {
066                    UserNotificationEventSoap[][] soapModels = null;
067    
068                    if (models.length > 0) {
069                            soapModels = new UserNotificationEventSoap[models.length][models[0].length];
070                    }
071                    else {
072                            soapModels = new UserNotificationEventSoap[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 UserNotificationEventSoap[] toSoapModels(
083                    List<UserNotificationEvent> models) {
084                    List<UserNotificationEventSoap> soapModels = new ArrayList<UserNotificationEventSoap>(models.size());
085    
086                    for (UserNotificationEvent model : models) {
087                            soapModels.add(toSoapModel(model));
088                    }
089    
090                    return soapModels.toArray(new UserNotificationEventSoap[soapModels.size()]);
091            }
092    
093            public UserNotificationEventSoap() {
094            }
095    
096            public long getPrimaryKey() {
097                    return _userNotificationEventId;
098            }
099    
100            public void setPrimaryKey(long pk) {
101                    setUserNotificationEventId(pk);
102            }
103    
104            public long getMvccVersion() {
105                    return _mvccVersion;
106            }
107    
108            public void setMvccVersion(long mvccVersion) {
109                    _mvccVersion = mvccVersion;
110            }
111    
112            public String getUuid() {
113                    return _uuid;
114            }
115    
116            public void setUuid(String uuid) {
117                    _uuid = uuid;
118            }
119    
120            public long getUserNotificationEventId() {
121                    return _userNotificationEventId;
122            }
123    
124            public void setUserNotificationEventId(long userNotificationEventId) {
125                    _userNotificationEventId = userNotificationEventId;
126            }
127    
128            public long getCompanyId() {
129                    return _companyId;
130            }
131    
132            public void setCompanyId(long companyId) {
133                    _companyId = companyId;
134            }
135    
136            public long getUserId() {
137                    return _userId;
138            }
139    
140            public void setUserId(long userId) {
141                    _userId = userId;
142            }
143    
144            public String getType() {
145                    return _type;
146            }
147    
148            public void setType(String type) {
149                    _type = type;
150            }
151    
152            public long getTimestamp() {
153                    return _timestamp;
154            }
155    
156            public void setTimestamp(long timestamp) {
157                    _timestamp = timestamp;
158            }
159    
160            public int getDeliveryType() {
161                    return _deliveryType;
162            }
163    
164            public void setDeliveryType(int deliveryType) {
165                    _deliveryType = deliveryType;
166            }
167    
168            public long getDeliverBy() {
169                    return _deliverBy;
170            }
171    
172            public void setDeliverBy(long deliverBy) {
173                    _deliverBy = deliverBy;
174            }
175    
176            public boolean getDelivered() {
177                    return _delivered;
178            }
179    
180            public boolean isDelivered() {
181                    return _delivered;
182            }
183    
184            public void setDelivered(boolean delivered) {
185                    _delivered = delivered;
186            }
187    
188            public String getPayload() {
189                    return _payload;
190            }
191    
192            public void setPayload(String payload) {
193                    _payload = payload;
194            }
195    
196            public boolean getActionRequired() {
197                    return _actionRequired;
198            }
199    
200            public boolean isActionRequired() {
201                    return _actionRequired;
202            }
203    
204            public void setActionRequired(boolean actionRequired) {
205                    _actionRequired = actionRequired;
206            }
207    
208            public boolean getArchived() {
209                    return _archived;
210            }
211    
212            public boolean isArchived() {
213                    return _archived;
214            }
215    
216            public void setArchived(boolean archived) {
217                    _archived = archived;
218            }
219    
220            private long _mvccVersion;
221            private String _uuid;
222            private long _userNotificationEventId;
223            private long _companyId;
224            private long _userId;
225            private String _type;
226            private long _timestamp;
227            private int _deliveryType;
228            private long _deliverBy;
229            private boolean _delivered;
230            private String _payload;
231            private boolean _actionRequired;
232            private boolean _archived;
233    }