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.List;
021    
022    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author    Brian Wing Shun Chan
026     * @generated
027     */
028    public class UserNotificationEventSoap implements Serializable {
029            public static UserNotificationEventSoap toSoapModel(
030                    UserNotificationEvent model) {
031                    UserNotificationEventSoap soapModel = new UserNotificationEventSoap();
032    
033                    soapModel.setUuid(model.getUuid());
034                    soapModel.setUserNotificationEventId(model.getUserNotificationEventId());
035                    soapModel.setCompanyId(model.getCompanyId());
036                    soapModel.setUserId(model.getUserId());
037                    soapModel.setType(model.getType());
038                    soapModel.setTimestamp(model.getTimestamp());
039                    soapModel.setDeliverBy(model.getDeliverBy());
040                    soapModel.setPayload(model.getPayload());
041                    soapModel.setArchived(model.getArchived());
042    
043                    return soapModel;
044            }
045    
046            public static UserNotificationEventSoap[] toSoapModels(
047                    UserNotificationEvent[] models) {
048                    UserNotificationEventSoap[] soapModels = new UserNotificationEventSoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static UserNotificationEventSoap[][] toSoapModels(
058                    UserNotificationEvent[][] models) {
059                    UserNotificationEventSoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new UserNotificationEventSoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new UserNotificationEventSoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static UserNotificationEventSoap[] toSoapModels(
076                    List<UserNotificationEvent> models) {
077                    List<UserNotificationEventSoap> soapModels = new ArrayList<UserNotificationEventSoap>(models.size());
078    
079                    for (UserNotificationEvent model : models) {
080                            soapModels.add(toSoapModel(model));
081                    }
082    
083                    return soapModels.toArray(new UserNotificationEventSoap[soapModels.size()]);
084            }
085    
086            public UserNotificationEventSoap() {
087            }
088    
089            public long getPrimaryKey() {
090                    return _userNotificationEventId;
091            }
092    
093            public void setPrimaryKey(long pk) {
094                    setUserNotificationEventId(pk);
095            }
096    
097            public String getUuid() {
098                    return _uuid;
099            }
100    
101            public void setUuid(String uuid) {
102                    _uuid = uuid;
103            }
104    
105            public long getUserNotificationEventId() {
106                    return _userNotificationEventId;
107            }
108    
109            public void setUserNotificationEventId(long userNotificationEventId) {
110                    _userNotificationEventId = userNotificationEventId;
111            }
112    
113            public long getCompanyId() {
114                    return _companyId;
115            }
116    
117            public void setCompanyId(long companyId) {
118                    _companyId = companyId;
119            }
120    
121            public long getUserId() {
122                    return _userId;
123            }
124    
125            public void setUserId(long userId) {
126                    _userId = userId;
127            }
128    
129            public String getType() {
130                    return _type;
131            }
132    
133            public void setType(String type) {
134                    _type = type;
135            }
136    
137            public long getTimestamp() {
138                    return _timestamp;
139            }
140    
141            public void setTimestamp(long timestamp) {
142                    _timestamp = timestamp;
143            }
144    
145            public long getDeliverBy() {
146                    return _deliverBy;
147            }
148    
149            public void setDeliverBy(long deliverBy) {
150                    _deliverBy = deliverBy;
151            }
152    
153            public String getPayload() {
154                    return _payload;
155            }
156    
157            public void setPayload(String payload) {
158                    _payload = payload;
159            }
160    
161            public boolean getArchived() {
162                    return _archived;
163            }
164    
165            public boolean isArchived() {
166                    return _archived;
167            }
168    
169            public void setArchived(boolean archived) {
170                    _archived = archived;
171            }
172    
173            private String _uuid;
174            private long _userNotificationEventId;
175            private long _companyId;
176            private long _userId;
177            private String _type;
178            private long _timestamp;
179            private long _deliverBy;
180            private String _payload;
181            private boolean _archived;
182    }