001
014
015 package com.liferay.portal.model;
016
017 import java.util.HashMap;
018 import java.util.Map;
019
020
029 public class CompanyWrapper implements Company, ModelWrapper<Company> {
030 public CompanyWrapper(Company company) {
031 _company = company;
032 }
033
034 public Class<?> getModelClass() {
035 return Company.class;
036 }
037
038 public String getModelClassName() {
039 return Company.class.getName();
040 }
041
042 public Map<String, Object> getModelAttributes() {
043 Map<String, Object> attributes = new HashMap<String, Object>();
044
045 attributes.put("companyId", getCompanyId());
046 attributes.put("accountId", getAccountId());
047 attributes.put("webId", getWebId());
048 attributes.put("key", getKey());
049 attributes.put("mx", getMx());
050 attributes.put("homeURL", getHomeURL());
051 attributes.put("logoId", getLogoId());
052 attributes.put("system", getSystem());
053 attributes.put("maxUsers", getMaxUsers());
054 attributes.put("active", getActive());
055
056 return attributes;
057 }
058
059 public void setModelAttributes(Map<String, Object> attributes) {
060 Long companyId = (Long)attributes.get("companyId");
061
062 if (companyId != null) {
063 setCompanyId(companyId);
064 }
065
066 Long accountId = (Long)attributes.get("accountId");
067
068 if (accountId != null) {
069 setAccountId(accountId);
070 }
071
072 String webId = (String)attributes.get("webId");
073
074 if (webId != null) {
075 setWebId(webId);
076 }
077
078 String key = (String)attributes.get("key");
079
080 if (key != null) {
081 setKey(key);
082 }
083
084 String mx = (String)attributes.get("mx");
085
086 if (mx != null) {
087 setMx(mx);
088 }
089
090 String homeURL = (String)attributes.get("homeURL");
091
092 if (homeURL != null) {
093 setHomeURL(homeURL);
094 }
095
096 Long logoId = (Long)attributes.get("logoId");
097
098 if (logoId != null) {
099 setLogoId(logoId);
100 }
101
102 Boolean system = (Boolean)attributes.get("system");
103
104 if (system != null) {
105 setSystem(system);
106 }
107
108 Integer maxUsers = (Integer)attributes.get("maxUsers");
109
110 if (maxUsers != null) {
111 setMaxUsers(maxUsers);
112 }
113
114 Boolean active = (Boolean)attributes.get("active");
115
116 if (active != null) {
117 setActive(active);
118 }
119 }
120
121
126 public long getPrimaryKey() {
127 return _company.getPrimaryKey();
128 }
129
130
135 public void setPrimaryKey(long primaryKey) {
136 _company.setPrimaryKey(primaryKey);
137 }
138
139
144 public long getCompanyId() {
145 return _company.getCompanyId();
146 }
147
148
153 public void setCompanyId(long companyId) {
154 _company.setCompanyId(companyId);
155 }
156
157
162 public long getAccountId() {
163 return _company.getAccountId();
164 }
165
166
171 public void setAccountId(long accountId) {
172 _company.setAccountId(accountId);
173 }
174
175
180 public java.lang.String getWebId() {
181 return _company.getWebId();
182 }
183
184
189 public void setWebId(java.lang.String webId) {
190 _company.setWebId(webId);
191 }
192
193
198 public java.lang.String getKey() {
199 return _company.getKey();
200 }
201
202
207 public void setKey(java.lang.String key) {
208 _company.setKey(key);
209 }
210
211
216 public java.lang.String getMx() {
217 return _company.getMx();
218 }
219
220
225 public void setMx(java.lang.String mx) {
226 _company.setMx(mx);
227 }
228
229
234 public java.lang.String getHomeURL() {
235 return _company.getHomeURL();
236 }
237
238
243 public void setHomeURL(java.lang.String homeURL) {
244 _company.setHomeURL(homeURL);
245 }
246
247
252 public long getLogoId() {
253 return _company.getLogoId();
254 }
255
256
261 public void setLogoId(long logoId) {
262 _company.setLogoId(logoId);
263 }
264
265
270 public boolean getSystem() {
271 return _company.getSystem();
272 }
273
274
279 public boolean isSystem() {
280 return _company.isSystem();
281 }
282
283
288 public void setSystem(boolean system) {
289 _company.setSystem(system);
290 }
291
292
297 public int getMaxUsers() {
298 return _company.getMaxUsers();
299 }
300
301
306 public void setMaxUsers(int maxUsers) {
307 _company.setMaxUsers(maxUsers);
308 }
309
310
315 public boolean getActive() {
316 return _company.getActive();
317 }
318
319
324 public boolean isActive() {
325 return _company.isActive();
326 }
327
328
333 public void setActive(boolean active) {
334 _company.setActive(active);
335 }
336
337 public boolean isNew() {
338 return _company.isNew();
339 }
340
341 public void setNew(boolean n) {
342 _company.setNew(n);
343 }
344
345 public boolean isCachedModel() {
346 return _company.isCachedModel();
347 }
348
349 public void setCachedModel(boolean cachedModel) {
350 _company.setCachedModel(cachedModel);
351 }
352
353 public boolean isEscapedModel() {
354 return _company.isEscapedModel();
355 }
356
357 public java.io.Serializable getPrimaryKeyObj() {
358 return _company.getPrimaryKeyObj();
359 }
360
361 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
362 _company.setPrimaryKeyObj(primaryKeyObj);
363 }
364
365 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
366 return _company.getExpandoBridge();
367 }
368
369 public void setExpandoBridgeAttributes(
370 com.liferay.portal.service.ServiceContext serviceContext) {
371 _company.setExpandoBridgeAttributes(serviceContext);
372 }
373
374 @Override
375 public java.lang.Object clone() {
376 return new CompanyWrapper((Company)_company.clone());
377 }
378
379 public int compareTo(com.liferay.portal.model.Company company) {
380 return _company.compareTo(company);
381 }
382
383 @Override
384 public int hashCode() {
385 return _company.hashCode();
386 }
387
388 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Company> toCacheModel() {
389 return _company.toCacheModel();
390 }
391
392 public com.liferay.portal.model.Company toEscapedModel() {
393 return new CompanyWrapper(_company.toEscapedModel());
394 }
395
396 public com.liferay.portal.model.Company toUnescapedModel() {
397 return new CompanyWrapper(_company.toUnescapedModel());
398 }
399
400 @Override
401 public java.lang.String toString() {
402 return _company.toString();
403 }
404
405 public java.lang.String toXmlString() {
406 return _company.toXmlString();
407 }
408
409 public void persist()
410 throws com.liferay.portal.kernel.exception.SystemException {
411 _company.persist();
412 }
413
414 public com.liferay.portal.model.Account getAccount()
415 throws com.liferay.portal.kernel.exception.PortalException,
416 com.liferay.portal.kernel.exception.SystemException {
417 return _company.getAccount();
418 }
419
420 public java.lang.String getAdminName() {
421 return _company.getAdminName();
422 }
423
424 public java.lang.String getAuthType()
425 throws com.liferay.portal.kernel.exception.SystemException {
426 return _company.getAuthType();
427 }
428
429 public com.liferay.portal.model.User getDefaultUser()
430 throws com.liferay.portal.kernel.exception.PortalException,
431 com.liferay.portal.kernel.exception.SystemException {
432 return _company.getDefaultUser();
433 }
434
435 public java.lang.String getDefaultWebId() {
436 return _company.getDefaultWebId();
437 }
438
439 public java.lang.String getEmailAddress() {
440 return _company.getEmailAddress();
441 }
442
443 public com.liferay.portal.model.Group getGroup()
444 throws com.liferay.portal.kernel.exception.PortalException,
445 com.liferay.portal.kernel.exception.SystemException {
446 return _company.getGroup();
447 }
448
449 public java.security.Key getKeyObj() {
450 return _company.getKeyObj();
451 }
452
453 public java.util.Locale getLocale()
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException {
456 return _company.getLocale();
457 }
458
459 public java.lang.String getName()
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException {
462 return _company.getName();
463 }
464
465 public java.lang.String getPortalURL(long groupId)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException {
468 return _company.getPortalURL(groupId);
469 }
470
471 public java.lang.String getShardName()
472 throws com.liferay.portal.kernel.exception.PortalException,
473 com.liferay.portal.kernel.exception.SystemException {
474 return _company.getShardName();
475 }
476
477 public java.lang.String getShortName()
478 throws com.liferay.portal.kernel.exception.PortalException,
479 com.liferay.portal.kernel.exception.SystemException {
480 return _company.getShortName();
481 }
482
483 public java.util.TimeZone getTimeZone()
484 throws com.liferay.portal.kernel.exception.PortalException,
485 com.liferay.portal.kernel.exception.SystemException {
486 return _company.getTimeZone();
487 }
488
489 public java.lang.String getVirtualHostname() {
490 return _company.getVirtualHostname();
491 }
492
493 public boolean hasCompanyMx(java.lang.String emailAddress)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 return _company.hasCompanyMx(emailAddress);
496 }
497
498 public boolean isAutoLogin()
499 throws com.liferay.portal.kernel.exception.SystemException {
500 return _company.isAutoLogin();
501 }
502
503 public boolean isSendPassword()
504 throws com.liferay.portal.kernel.exception.SystemException {
505 return _company.isSendPassword();
506 }
507
508 public boolean isSendPasswordResetLink()
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return _company.isSendPasswordResetLink();
511 }
512
513 public boolean isSiteLogo()
514 throws com.liferay.portal.kernel.exception.SystemException {
515 return _company.isSiteLogo();
516 }
517
518 public boolean isStrangers()
519 throws com.liferay.portal.kernel.exception.SystemException {
520 return _company.isStrangers();
521 }
522
523 public boolean isStrangersVerify()
524 throws com.liferay.portal.kernel.exception.SystemException {
525 return _company.isStrangersVerify();
526 }
527
528 public boolean isStrangersWithMx()
529 throws com.liferay.portal.kernel.exception.SystemException {
530 return _company.isStrangersWithMx();
531 }
532
533 public void setKeyObj(java.security.Key keyObj) {
534 _company.setKeyObj(keyObj);
535 }
536
537 public void setVirtualHostname(java.lang.String virtualHostname) {
538 _company.setVirtualHostname(virtualHostname);
539 }
540
541
544 public Company getWrappedCompany() {
545 return _company;
546 }
547
548 public Company getWrappedModel() {
549 return _company;
550 }
551
552 public void resetOriginalValues() {
553 _company.resetOriginalValues();
554 }
555
556 private Company _company;
557 }