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 @Override
397 public java.lang.String toString() {
398 return _company.toString();
399 }
400
401 public java.lang.String toXmlString() {
402 return _company.toXmlString();
403 }
404
405 public void persist()
406 throws com.liferay.portal.kernel.exception.SystemException {
407 _company.persist();
408 }
409
410 public com.liferay.portal.model.Account getAccount()
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 return _company.getAccount();
414 }
415
416 public java.lang.String getAdminName() {
417 return _company.getAdminName();
418 }
419
420 public java.lang.String getAuthType()
421 throws com.liferay.portal.kernel.exception.SystemException {
422 return _company.getAuthType();
423 }
424
425 public com.liferay.portal.model.User getDefaultUser()
426 throws com.liferay.portal.kernel.exception.PortalException,
427 com.liferay.portal.kernel.exception.SystemException {
428 return _company.getDefaultUser();
429 }
430
431 public java.lang.String getDefaultWebId() {
432 return _company.getDefaultWebId();
433 }
434
435 public java.lang.String getEmailAddress() {
436 return _company.getEmailAddress();
437 }
438
439 public com.liferay.portal.model.Group getGroup()
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException {
442 return _company.getGroup();
443 }
444
445 public java.security.Key getKeyObj() {
446 return _company.getKeyObj();
447 }
448
449 public java.util.Locale getLocale()
450 throws com.liferay.portal.kernel.exception.PortalException,
451 com.liferay.portal.kernel.exception.SystemException {
452 return _company.getLocale();
453 }
454
455 public java.lang.String getName()
456 throws com.liferay.portal.kernel.exception.PortalException,
457 com.liferay.portal.kernel.exception.SystemException {
458 return _company.getName();
459 }
460
461 public java.lang.String getPortalURL(long groupId)
462 throws com.liferay.portal.kernel.exception.PortalException,
463 com.liferay.portal.kernel.exception.SystemException {
464 return _company.getPortalURL(groupId);
465 }
466
467 public java.lang.String getShardName()
468 throws com.liferay.portal.kernel.exception.PortalException,
469 com.liferay.portal.kernel.exception.SystemException {
470 return _company.getShardName();
471 }
472
473 public java.lang.String getShortName()
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException {
476 return _company.getShortName();
477 }
478
479 public java.util.TimeZone getTimeZone()
480 throws com.liferay.portal.kernel.exception.PortalException,
481 com.liferay.portal.kernel.exception.SystemException {
482 return _company.getTimeZone();
483 }
484
485 public java.lang.String getVirtualHostname() {
486 return _company.getVirtualHostname();
487 }
488
489 public boolean hasCompanyMx(java.lang.String emailAddress)
490 throws com.liferay.portal.kernel.exception.SystemException {
491 return _company.hasCompanyMx(emailAddress);
492 }
493
494 public boolean isAutoLogin()
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return _company.isAutoLogin();
497 }
498
499 public boolean isSendPassword()
500 throws com.liferay.portal.kernel.exception.SystemException {
501 return _company.isSendPassword();
502 }
503
504 public boolean isSendPasswordResetLink()
505 throws com.liferay.portal.kernel.exception.SystemException {
506 return _company.isSendPasswordResetLink();
507 }
508
509 public boolean isSiteLogo()
510 throws com.liferay.portal.kernel.exception.SystemException {
511 return _company.isSiteLogo();
512 }
513
514 public boolean isStrangers()
515 throws com.liferay.portal.kernel.exception.SystemException {
516 return _company.isStrangers();
517 }
518
519 public boolean isStrangersVerify()
520 throws com.liferay.portal.kernel.exception.SystemException {
521 return _company.isStrangersVerify();
522 }
523
524 public boolean isStrangersWithMx()
525 throws com.liferay.portal.kernel.exception.SystemException {
526 return _company.isStrangersWithMx();
527 }
528
529 public void setKeyObj(java.security.Key keyObj) {
530 _company.setKeyObj(keyObj);
531 }
532
533
536 public Company getWrappedCompany() {
537 return _company;
538 }
539
540 public Company getWrappedModel() {
541 return _company;
542 }
543
544 public void resetOriginalValues() {
545 _company.resetOriginalValues();
546 }
547
548 private Company _company;
549 }