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