1
19
20 package com.liferay.portal.model;
21
22 import java.io.Serializable;
23
24 import java.util.ArrayList;
25 import java.util.Date;
26 import java.util.List;
27
28
46 public class WebsiteSoap implements Serializable {
47 public static WebsiteSoap toSoapModel(Website model) {
48 WebsiteSoap soapModel = new WebsiteSoap();
49
50 soapModel.setWebsiteId(model.getWebsiteId());
51 soapModel.setCompanyId(model.getCompanyId());
52 soapModel.setUserId(model.getUserId());
53 soapModel.setUserName(model.getUserName());
54 soapModel.setCreateDate(model.getCreateDate());
55 soapModel.setModifiedDate(model.getModifiedDate());
56 soapModel.setClassNameId(model.getClassNameId());
57 soapModel.setClassPK(model.getClassPK());
58 soapModel.setUrl(model.getUrl());
59 soapModel.setTypeId(model.getTypeId());
60 soapModel.setPrimary(model.getPrimary());
61
62 return soapModel;
63 }
64
65 public static WebsiteSoap[] toSoapModels(List<Website> models) {
66 List<WebsiteSoap> soapModels = new ArrayList<WebsiteSoap>(models.size());
67
68 for (Website model : models) {
69 soapModels.add(toSoapModel(model));
70 }
71
72 return soapModels.toArray(new WebsiteSoap[soapModels.size()]);
73 }
74
75 public WebsiteSoap() {
76 }
77
78 public long getPrimaryKey() {
79 return _websiteId;
80 }
81
82 public void setPrimaryKey(long pk) {
83 setWebsiteId(pk);
84 }
85
86 public long getWebsiteId() {
87 return _websiteId;
88 }
89
90 public void setWebsiteId(long websiteId) {
91 _websiteId = websiteId;
92 }
93
94 public long getCompanyId() {
95 return _companyId;
96 }
97
98 public void setCompanyId(long companyId) {
99 _companyId = companyId;
100 }
101
102 public long getUserId() {
103 return _userId;
104 }
105
106 public void setUserId(long userId) {
107 _userId = userId;
108 }
109
110 public String getUserName() {
111 return _userName;
112 }
113
114 public void setUserName(String userName) {
115 _userName = userName;
116 }
117
118 public Date getCreateDate() {
119 return _createDate;
120 }
121
122 public void setCreateDate(Date createDate) {
123 _createDate = createDate;
124 }
125
126 public Date getModifiedDate() {
127 return _modifiedDate;
128 }
129
130 public void setModifiedDate(Date modifiedDate) {
131 _modifiedDate = modifiedDate;
132 }
133
134 public long getClassNameId() {
135 return _classNameId;
136 }
137
138 public void setClassNameId(long classNameId) {
139 _classNameId = classNameId;
140 }
141
142 public long getClassPK() {
143 return _classPK;
144 }
145
146 public void setClassPK(long classPK) {
147 _classPK = classPK;
148 }
149
150 public String getUrl() {
151 return _url;
152 }
153
154 public void setUrl(String url) {
155 _url = url;
156 }
157
158 public int getTypeId() {
159 return _typeId;
160 }
161
162 public void setTypeId(int typeId) {
163 _typeId = typeId;
164 }
165
166 public boolean getPrimary() {
167 return _primary;
168 }
169
170 public boolean isPrimary() {
171 return _primary;
172 }
173
174 public void setPrimary(boolean primary) {
175 _primary = primary;
176 }
177
178 private long _websiteId;
179 private long _companyId;
180 private long _userId;
181 private String _userName;
182 private Date _createDate;
183 private Date _modifiedDate;
184 private long _classNameId;
185 private long _classPK;
186 private String _url;
187 private int _typeId;
188 private boolean _primary;
189 }