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
032 public class AnnouncementsDeliverySoap implements Serializable {
033 public static AnnouncementsDeliverySoap toSoapModel(
034 AnnouncementsDelivery model) {
035 AnnouncementsDeliverySoap soapModel = new AnnouncementsDeliverySoap();
036
037 soapModel.setDeliveryId(model.getDeliveryId());
038 soapModel.setCompanyId(model.getCompanyId());
039 soapModel.setUserId(model.getUserId());
040 soapModel.setType(model.getType());
041 soapModel.setEmail(model.getEmail());
042 soapModel.setSms(model.getSms());
043 soapModel.setWebsite(model.getWebsite());
044
045 return soapModel;
046 }
047
048 public static AnnouncementsDeliverySoap[] toSoapModels(
049 AnnouncementsDelivery[] models) {
050 AnnouncementsDeliverySoap[] soapModels = new AnnouncementsDeliverySoap[models.length];
051
052 for (int i = 0; i < models.length; i++) {
053 soapModels[i] = toSoapModel(models[i]);
054 }
055
056 return soapModels;
057 }
058
059 public static AnnouncementsDeliverySoap[][] toSoapModels(
060 AnnouncementsDelivery[][] models) {
061 AnnouncementsDeliverySoap[][] soapModels = null;
062
063 if (models.length > 0) {
064 soapModels = new AnnouncementsDeliverySoap[models.length][models[0].length];
065 }
066 else {
067 soapModels = new AnnouncementsDeliverySoap[0][0];
068 }
069
070 for (int i = 0; i < models.length; i++) {
071 soapModels[i] = toSoapModels(models[i]);
072 }
073
074 return soapModels;
075 }
076
077 public static AnnouncementsDeliverySoap[] toSoapModels(
078 List<AnnouncementsDelivery> models) {
079 List<AnnouncementsDeliverySoap> soapModels = new ArrayList<AnnouncementsDeliverySoap>(models.size());
080
081 for (AnnouncementsDelivery model : models) {
082 soapModels.add(toSoapModel(model));
083 }
084
085 return soapModels.toArray(new AnnouncementsDeliverySoap[soapModels.size()]);
086 }
087
088 public AnnouncementsDeliverySoap() {
089 }
090
091 public long getPrimaryKey() {
092 return _deliveryId;
093 }
094
095 public void setPrimaryKey(long pk) {
096 setDeliveryId(pk);
097 }
098
099 public long getDeliveryId() {
100 return _deliveryId;
101 }
102
103 public void setDeliveryId(long deliveryId) {
104 _deliveryId = deliveryId;
105 }
106
107 public long getCompanyId() {
108 return _companyId;
109 }
110
111 public void setCompanyId(long companyId) {
112 _companyId = companyId;
113 }
114
115 public long getUserId() {
116 return _userId;
117 }
118
119 public void setUserId(long userId) {
120 _userId = userId;
121 }
122
123 public String getType() {
124 return _type;
125 }
126
127 public void setType(String type) {
128 _type = type;
129 }
130
131 public boolean getEmail() {
132 return _email;
133 }
134
135 public boolean isEmail() {
136 return _email;
137 }
138
139 public void setEmail(boolean email) {
140 _email = email;
141 }
142
143 public boolean getSms() {
144 return _sms;
145 }
146
147 public boolean isSms() {
148 return _sms;
149 }
150
151 public void setSms(boolean sms) {
152 _sms = sms;
153 }
154
155 public boolean getWebsite() {
156 return _website;
157 }
158
159 public boolean isWebsite() {
160 return _website;
161 }
162
163 public void setWebsite(boolean website) {
164 _website = website;
165 }
166
167 private long _deliveryId;
168 private long _companyId;
169 private long _userId;
170 private String _type;
171 private boolean _email;
172 private boolean _sms;
173 private boolean _website;
174 }