001
014
015 package com.liferay.portlet.announcements.model;
016
017 import java.io.Serializable;
018
019 import java.util.ArrayList;
020 import java.util.List;
021
022
029 public class AnnouncementsDeliverySoap implements Serializable {
030 public static AnnouncementsDeliverySoap toSoapModel(
031 AnnouncementsDelivery model) {
032 AnnouncementsDeliverySoap soapModel = new AnnouncementsDeliverySoap();
033
034 soapModel.setDeliveryId(model.getDeliveryId());
035 soapModel.setCompanyId(model.getCompanyId());
036 soapModel.setUserId(model.getUserId());
037 soapModel.setType(model.getType());
038 soapModel.setEmail(model.getEmail());
039 soapModel.setSms(model.getSms());
040 soapModel.setWebsite(model.getWebsite());
041
042 return soapModel;
043 }
044
045 public static AnnouncementsDeliverySoap[] toSoapModels(
046 AnnouncementsDelivery[] models) {
047 AnnouncementsDeliverySoap[] soapModels = new AnnouncementsDeliverySoap[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 AnnouncementsDeliverySoap[][] toSoapModels(
057 AnnouncementsDelivery[][] models) {
058 AnnouncementsDeliverySoap[][] soapModels = null;
059
060 if (models.length > 0) {
061 soapModels = new AnnouncementsDeliverySoap[models.length][models[0].length];
062 }
063 else {
064 soapModels = new AnnouncementsDeliverySoap[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 AnnouncementsDeliverySoap[] toSoapModels(
075 List<AnnouncementsDelivery> models) {
076 List<AnnouncementsDeliverySoap> soapModels = new ArrayList<AnnouncementsDeliverySoap>(models.size());
077
078 for (AnnouncementsDelivery model : models) {
079 soapModels.add(toSoapModel(model));
080 }
081
082 return soapModels.toArray(new AnnouncementsDeliverySoap[soapModels.size()]);
083 }
084
085 public AnnouncementsDeliverySoap() {
086 }
087
088 public long getPrimaryKey() {
089 return _deliveryId;
090 }
091
092 public void setPrimaryKey(long pk) {
093 setDeliveryId(pk);
094 }
095
096 public long getDeliveryId() {
097 return _deliveryId;
098 }
099
100 public void setDeliveryId(long deliveryId) {
101 _deliveryId = deliveryId;
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 getType() {
121 return _type;
122 }
123
124 public void setType(String type) {
125 _type = type;
126 }
127
128 public boolean getEmail() {
129 return _email;
130 }
131
132 public boolean isEmail() {
133 return _email;
134 }
135
136 public void setEmail(boolean email) {
137 _email = email;
138 }
139
140 public boolean getSms() {
141 return _sms;
142 }
143
144 public boolean isSms() {
145 return _sms;
146 }
147
148 public void setSms(boolean sms) {
149 _sms = sms;
150 }
151
152 public boolean getWebsite() {
153 return _website;
154 }
155
156 public boolean isWebsite() {
157 return _website;
158 }
159
160 public void setWebsite(boolean website) {
161 _website = website;
162 }
163
164 private long _deliveryId;
165 private long _companyId;
166 private long _userId;
167 private String _type;
168 private boolean _email;
169 private boolean _sms;
170 private boolean _website;
171 }