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 UserNotificationDeliverySoap implements Serializable {
029            public static UserNotificationDeliverySoap toSoapModel(
030                    UserNotificationDelivery model) {
031                    UserNotificationDeliverySoap soapModel = new UserNotificationDeliverySoap();
032    
033                    soapModel.setUserNotificationDeliveryId(model.getUserNotificationDeliveryId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setPortletId(model.getPortletId());
037                    soapModel.setClassNameId(model.getClassNameId());
038                    soapModel.setNotificationType(model.getNotificationType());
039                    soapModel.setDeliveryType(model.getDeliveryType());
040                    soapModel.setDeliver(model.getDeliver());
041    
042                    return soapModel;
043            }
044    
045            public static UserNotificationDeliverySoap[] toSoapModels(
046                    UserNotificationDelivery[] models) {
047                    UserNotificationDeliverySoap[] soapModels = new UserNotificationDeliverySoap[models.length];
048    
049                    for (int i = 0; i < models.length; i++) {
050                            soapModels[i] = toSoapModel(models[i]);
051                    }
052    
053                    return soapModels;
054            }
055    
056            public static UserNotificationDeliverySoap[][] toSoapModels(
057                    UserNotificationDelivery[][] models) {
058                    UserNotificationDeliverySoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new UserNotificationDeliverySoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new UserNotificationDeliverySoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static UserNotificationDeliverySoap[] toSoapModels(
075                    List<UserNotificationDelivery> models) {
076                    List<UserNotificationDeliverySoap> soapModels = new ArrayList<UserNotificationDeliverySoap>(models.size());
077    
078                    for (UserNotificationDelivery model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new UserNotificationDeliverySoap[soapModels.size()]);
083            }
084    
085            public UserNotificationDeliverySoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _userNotificationDeliveryId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setUserNotificationDeliveryId(pk);
094            }
095    
096            public long getUserNotificationDeliveryId() {
097                    return _userNotificationDeliveryId;
098            }
099    
100            public void setUserNotificationDeliveryId(long userNotificationDeliveryId) {
101                    _userNotificationDeliveryId = userNotificationDeliveryId;
102            }
103    
104            public long getCompanyId() {
105                    return _companyId;
106            }
107    
108            public void setCompanyId(long companyId) {
109                    _companyId = companyId;
110            }
111    
112            public long getUserId() {
113                    return _userId;
114            }
115    
116            public void setUserId(long userId) {
117                    _userId = userId;
118            }
119    
120            public String getPortletId() {
121                    return _portletId;
122            }
123    
124            public void setPortletId(String portletId) {
125                    _portletId = portletId;
126            }
127    
128            public long getClassNameId() {
129                    return _classNameId;
130            }
131    
132            public void setClassNameId(long classNameId) {
133                    _classNameId = classNameId;
134            }
135    
136            public int getNotificationType() {
137                    return _notificationType;
138            }
139    
140            public void setNotificationType(int notificationType) {
141                    _notificationType = notificationType;
142            }
143    
144            public int getDeliveryType() {
145                    return _deliveryType;
146            }
147    
148            public void setDeliveryType(int deliveryType) {
149                    _deliveryType = deliveryType;
150            }
151    
152            public boolean getDeliver() {
153                    return _deliver;
154            }
155    
156            public boolean isDeliver() {
157                    return _deliver;
158            }
159    
160            public void setDeliver(boolean deliver) {
161                    _deliver = deliver;
162            }
163    
164            private long _userNotificationDeliveryId;
165            private long _companyId;
166            private long _userId;
167            private String _portletId;
168            private long _classNameId;
169            private int _notificationType;
170            private int _deliveryType;
171            private boolean _deliver;
172    }