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.model.BaseModel<?> baseModel) {
371 _company.setExpandoBridgeAttributes(baseModel);
372 }
373
374 public void setExpandoBridgeAttributes(
375 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
376 _company.setExpandoBridgeAttributes(expandoBridge);
377 }
378
379 public void setExpandoBridgeAttributes(
380 com.liferay.portal.service.ServiceContext serviceContext) {
381 _company.setExpandoBridgeAttributes(serviceContext);
382 }
383
384 @Override
385 public java.lang.Object clone() {
386 return new CompanyWrapper((Company)_company.clone());
387 }
388
389 public int compareTo(com.liferay.portal.model.Company company) {
390 return _company.compareTo(company);
391 }
392
393 @Override
394 public int hashCode() {
395 return _company.hashCode();
396 }
397
398 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Company> toCacheModel() {
399 return _company.toCacheModel();
400 }
401
402 public com.liferay.portal.model.Company toEscapedModel() {
403 return new CompanyWrapper(_company.toEscapedModel());
404 }
405
406 public com.liferay.portal.model.Company toUnescapedModel() {
407 return new CompanyWrapper(_company.toUnescapedModel());
408 }
409
410 @Override
411 public java.lang.String toString() {
412 return _company.toString();
413 }
414
415 public java.lang.String toXmlString() {
416 return _company.toXmlString();
417 }
418
419 public void persist()
420 throws com.liferay.portal.kernel.exception.SystemException {
421 _company.persist();
422 }
423
424 public com.liferay.portal.model.Account getAccount()
425 throws com.liferay.portal.kernel.exception.PortalException,
426 com.liferay.portal.kernel.exception.SystemException {
427 return _company.getAccount();
428 }
429
430 public java.lang.String getAdminName() {
431 return _company.getAdminName();
432 }
433
434 public java.lang.String getAuthType()
435 throws com.liferay.portal.kernel.exception.SystemException {
436 return _company.getAuthType();
437 }
438
439 public com.liferay.portal.model.User getDefaultUser()
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException {
442 return _company.getDefaultUser();
443 }
444
445 public java.lang.String getDefaultWebId() {
446 return _company.getDefaultWebId();
447 }
448
449 public java.lang.String getEmailAddress() {
450 return _company.getEmailAddress();
451 }
452
453 public com.liferay.portal.model.Group getGroup()
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException {
456 return _company.getGroup();
457 }
458
459 public java.security.Key getKeyObj() {
460 return _company.getKeyObj();
461 }
462
463 public java.util.Locale getLocale()
464 throws com.liferay.portal.kernel.exception.PortalException,
465 com.liferay.portal.kernel.exception.SystemException {
466 return _company.getLocale();
467 }
468
469 public java.lang.String getName()
470 throws com.liferay.portal.kernel.exception.PortalException,
471 com.liferay.portal.kernel.exception.SystemException {
472 return _company.getName();
473 }
474
475 public java.lang.String getPortalURL(long groupId)
476 throws com.liferay.portal.kernel.exception.PortalException,
477 com.liferay.portal.kernel.exception.SystemException {
478 return _company.getPortalURL(groupId);
479 }
480
481 public java.lang.String getShardName()
482 throws com.liferay.portal.kernel.exception.PortalException,
483 com.liferay.portal.kernel.exception.SystemException {
484 return _company.getShardName();
485 }
486
487 public java.lang.String getShortName()
488 throws com.liferay.portal.kernel.exception.PortalException,
489 com.liferay.portal.kernel.exception.SystemException {
490 return _company.getShortName();
491 }
492
493 public java.util.TimeZone getTimeZone()
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException {
496 return _company.getTimeZone();
497 }
498
499 public java.lang.String getVirtualHostname() {
500 return _company.getVirtualHostname();
501 }
502
503 public boolean hasCompanyMx(java.lang.String emailAddress)
504 throws com.liferay.portal.kernel.exception.SystemException {
505 return _company.hasCompanyMx(emailAddress);
506 }
507
508 public boolean isAutoLogin()
509 throws com.liferay.portal.kernel.exception.SystemException {
510 return _company.isAutoLogin();
511 }
512
513 public boolean isSendPassword()
514 throws com.liferay.portal.kernel.exception.SystemException {
515 return _company.isSendPassword();
516 }
517
518 public boolean isSendPasswordResetLink()
519 throws com.liferay.portal.kernel.exception.SystemException {
520 return _company.isSendPasswordResetLink();
521 }
522
523 public boolean isSiteLogo()
524 throws com.liferay.portal.kernel.exception.SystemException {
525 return _company.isSiteLogo();
526 }
527
528 public boolean isStrangers()
529 throws com.liferay.portal.kernel.exception.SystemException {
530 return _company.isStrangers();
531 }
532
533 public boolean isStrangersVerify()
534 throws com.liferay.portal.kernel.exception.SystemException {
535 return _company.isStrangersVerify();
536 }
537
538 public boolean isStrangersWithMx()
539 throws com.liferay.portal.kernel.exception.SystemException {
540 return _company.isStrangersWithMx();
541 }
542
543 public void setKeyObj(java.security.Key keyObj) {
544 _company.setKeyObj(keyObj);
545 }
546
547 public void setVirtualHostname(java.lang.String virtualHostname) {
548 _company.setVirtualHostname(virtualHostname);
549 }
550
551
554 public Company getWrappedCompany() {
555 return _company;
556 }
557
558 public Company getWrappedModel() {
559 return _company;
560 }
561
562 public void resetOriginalValues() {
563 _company.resetOriginalValues();
564 }
565
566 private Company _company;
567 }