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.setPayload(model.getPayload());
041
042 return soapModel;
043 }
044
045 public static UserNotificationEventSoap[] toSoapModels(
046 UserNotificationEvent[] models) {
047 UserNotificationEventSoap[] soapModels = new UserNotificationEventSoap[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 UserNotificationEventSoap[][] toSoapModels(
057 UserNotificationEvent[][] models) {
058 UserNotificationEventSoap[][] soapModels = null;
059
060 if (models.length > 0) {
061 soapModels = new UserNotificationEventSoap[models.length][models[0].length];
062 }
063 else {
064 soapModels = new UserNotificationEventSoap[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 UserNotificationEventSoap[] toSoapModels(
075 List<UserNotificationEvent> models) {
076 List<UserNotificationEventSoap> soapModels = new ArrayList<UserNotificationEventSoap>(models.size());
077
078 for (UserNotificationEvent model : models) {
079 soapModels.add(toSoapModel(model));
080 }
081
082 return soapModels.toArray(new UserNotificationEventSoap[soapModels.size()]);
083 }
084
085 public UserNotificationEventSoap() {
086 }
087
088 public long getPrimaryKey() {
089 return _userNotificationEventId;
090 }
091
092 public void setPrimaryKey(long pk) {
093 setUserNotificationEventId(pk);
094 }
095
096 public String getUuid() {
097 return _uuid;
098 }
099
100 public void setUuid(String uuid) {
101 _uuid = uuid;
102 }
103
104 public long getUserNotificationEventId() {
105 return _userNotificationEventId;
106 }
107
108 public void setUserNotificationEventId(long userNotificationEventId) {
109 _userNotificationEventId = userNotificationEventId;
110 }
111
112 public long getCompanyId() {
113 return _companyId;
114 }
115
116 public void setCompanyId(long companyId) {
117 _companyId = companyId;
118 }
119
120 public long getUserId() {
121 return _userId;
122 }
123
124 public void setUserId(long userId) {
125 _userId = userId;
126 }
127
128 public String getType() {
129 return _type;
130 }
131
132 public void setType(String type) {
133 _type = type;
134 }
135
136 public long getTimestamp() {
137 return _timestamp;
138 }
139
140 public void setTimestamp(long timestamp) {
141 _timestamp = timestamp;
142 }
143
144 public long getDeliverBy() {
145 return _deliverBy;
146 }
147
148 public void setDeliverBy(long deliverBy) {
149 _deliverBy = deliverBy;
150 }
151
152 public String getPayload() {
153 return _payload;
154 }
155
156 public void setPayload(String payload) {
157 _payload = payload;
158 }
159
160 private String _uuid;
161 private long _userNotificationEventId;
162 private long _companyId;
163 private long _userId;
164 private String _type;
165 private long _timestamp;
166 private long _deliverBy;
167 private String _payload;
168 }