001
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
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.setDelivered(model.getDelivered());
041 soapModel.setPayload(model.getPayload());
042 soapModel.setArchived(model.getArchived());
043
044 return soapModel;
045 }
046
047 public static UserNotificationEventSoap[] toSoapModels(
048 UserNotificationEvent[] models) {
049 UserNotificationEventSoap[] soapModels = new UserNotificationEventSoap[models.length];
050
051 for (int i = 0; i < models.length; i++) {
052 soapModels[i] = toSoapModel(models[i]);
053 }
054
055 return soapModels;
056 }
057
058 public static UserNotificationEventSoap[][] toSoapModels(
059 UserNotificationEvent[][] models) {
060 UserNotificationEventSoap[][] soapModels = null;
061
062 if (models.length > 0) {
063 soapModels = new UserNotificationEventSoap[models.length][models[0].length];
064 }
065 else {
066 soapModels = new UserNotificationEventSoap[0][0];
067 }
068
069 for (int i = 0; i < models.length; i++) {
070 soapModels[i] = toSoapModels(models[i]);
071 }
072
073 return soapModels;
074 }
075
076 public static UserNotificationEventSoap[] toSoapModels(
077 List<UserNotificationEvent> models) {
078 List<UserNotificationEventSoap> soapModels = new ArrayList<UserNotificationEventSoap>(models.size());
079
080 for (UserNotificationEvent model : models) {
081 soapModels.add(toSoapModel(model));
082 }
083
084 return soapModels.toArray(new UserNotificationEventSoap[soapModels.size()]);
085 }
086
087 public UserNotificationEventSoap() {
088 }
089
090 public long getPrimaryKey() {
091 return _userNotificationEventId;
092 }
093
094 public void setPrimaryKey(long pk) {
095 setUserNotificationEventId(pk);
096 }
097
098 public String getUuid() {
099 return _uuid;
100 }
101
102 public void setUuid(String uuid) {
103 _uuid = uuid;
104 }
105
106 public long getUserNotificationEventId() {
107 return _userNotificationEventId;
108 }
109
110 public void setUserNotificationEventId(long userNotificationEventId) {
111 _userNotificationEventId = userNotificationEventId;
112 }
113
114 public long getCompanyId() {
115 return _companyId;
116 }
117
118 public void setCompanyId(long companyId) {
119 _companyId = companyId;
120 }
121
122 public long getUserId() {
123 return _userId;
124 }
125
126 public void setUserId(long userId) {
127 _userId = userId;
128 }
129
130 public String getType() {
131 return _type;
132 }
133
134 public void setType(String type) {
135 _type = type;
136 }
137
138 public long getTimestamp() {
139 return _timestamp;
140 }
141
142 public void setTimestamp(long timestamp) {
143 _timestamp = timestamp;
144 }
145
146 public long getDeliverBy() {
147 return _deliverBy;
148 }
149
150 public void setDeliverBy(long deliverBy) {
151 _deliverBy = deliverBy;
152 }
153
154 public boolean getDelivered() {
155 return _delivered;
156 }
157
158 public boolean isDelivered() {
159 return _delivered;
160 }
161
162 public void setDelivered(boolean delivered) {
163 _delivered = delivered;
164 }
165
166 public String getPayload() {
167 return _payload;
168 }
169
170 public void setPayload(String payload) {
171 _payload = payload;
172 }
173
174 public boolean getArchived() {
175 return _archived;
176 }
177
178 public boolean isArchived() {
179 return _archived;
180 }
181
182 public void setArchived(boolean archived) {
183 _archived = archived;
184 }
185
186 private String _uuid;
187 private long _userNotificationEventId;
188 private long _companyId;
189 private long _userId;
190 private String _type;
191 private long _timestamp;
192 private long _deliverBy;
193 private boolean _delivered;
194 private String _payload;
195 private boolean _archived;
196 }