001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.util.HashMap;
018    import java.util.Map;
019    
020    /**
021     * <p>
022     * This class is a wrapper for {@link Company}.
023     * </p>
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       Company
027     * @generated
028     */
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            /**
122            * Returns the primary key of this company.
123            *
124            * @return the primary key of this company
125            */
126            public long getPrimaryKey() {
127                    return _company.getPrimaryKey();
128            }
129    
130            /**
131            * Sets the primary key of this company.
132            *
133            * @param primaryKey the primary key of this company
134            */
135            public void setPrimaryKey(long primaryKey) {
136                    _company.setPrimaryKey(primaryKey);
137            }
138    
139            /**
140            * Returns the company ID of this company.
141            *
142            * @return the company ID of this company
143            */
144            public long getCompanyId() {
145                    return _company.getCompanyId();
146            }
147    
148            /**
149            * Sets the company ID of this company.
150            *
151            * @param companyId the company ID of this company
152            */
153            public void setCompanyId(long companyId) {
154                    _company.setCompanyId(companyId);
155            }
156    
157            /**
158            * Returns the account ID of this company.
159            *
160            * @return the account ID of this company
161            */
162            public long getAccountId() {
163                    return _company.getAccountId();
164            }
165    
166            /**
167            * Sets the account ID of this company.
168            *
169            * @param accountId the account ID of this company
170            */
171            public void setAccountId(long accountId) {
172                    _company.setAccountId(accountId);
173            }
174    
175            /**
176            * Returns the web ID of this company.
177            *
178            * @return the web ID of this company
179            */
180            public java.lang.String getWebId() {
181                    return _company.getWebId();
182            }
183    
184            /**
185            * Sets the web ID of this company.
186            *
187            * @param webId the web ID of this company
188            */
189            public void setWebId(java.lang.String webId) {
190                    _company.setWebId(webId);
191            }
192    
193            /**
194            * Returns the key of this company.
195            *
196            * @return the key of this company
197            */
198            public java.lang.String getKey() {
199                    return _company.getKey();
200            }
201    
202            /**
203            * Sets the key of this company.
204            *
205            * @param key the key of this company
206            */
207            public void setKey(java.lang.String key) {
208                    _company.setKey(key);
209            }
210    
211            /**
212            * Returns the mx of this company.
213            *
214            * @return the mx of this company
215            */
216            public java.lang.String getMx() {
217                    return _company.getMx();
218            }
219    
220            /**
221            * Sets the mx of this company.
222            *
223            * @param mx the mx of this company
224            */
225            public void setMx(java.lang.String mx) {
226                    _company.setMx(mx);
227            }
228    
229            /**
230            * Returns the home u r l of this company.
231            *
232            * @return the home u r l of this company
233            */
234            public java.lang.String getHomeURL() {
235                    return _company.getHomeURL();
236            }
237    
238            /**
239            * Sets the home u r l of this company.
240            *
241            * @param homeURL the home u r l of this company
242            */
243            public void setHomeURL(java.lang.String homeURL) {
244                    _company.setHomeURL(homeURL);
245            }
246    
247            /**
248            * Returns the logo ID of this company.
249            *
250            * @return the logo ID of this company
251            */
252            public long getLogoId() {
253                    return _company.getLogoId();
254            }
255    
256            /**
257            * Sets the logo ID of this company.
258            *
259            * @param logoId the logo ID of this company
260            */
261            public void setLogoId(long logoId) {
262                    _company.setLogoId(logoId);
263            }
264    
265            /**
266            * Returns the system of this company.
267            *
268            * @return the system of this company
269            */
270            public boolean getSystem() {
271                    return _company.getSystem();
272            }
273    
274            /**
275            * Returns <code>true</code> if this company is system.
276            *
277            * @return <code>true</code> if this company is system; <code>false</code> otherwise
278            */
279            public boolean isSystem() {
280                    return _company.isSystem();
281            }
282    
283            /**
284            * Sets whether this company is system.
285            *
286            * @param system the system of this company
287            */
288            public void setSystem(boolean system) {
289                    _company.setSystem(system);
290            }
291    
292            /**
293            * Returns the max users of this company.
294            *
295            * @return the max users of this company
296            */
297            public int getMaxUsers() {
298                    return _company.getMaxUsers();
299            }
300    
301            /**
302            * Sets the max users of this company.
303            *
304            * @param maxUsers the max users of this company
305            */
306            public void setMaxUsers(int maxUsers) {
307                    _company.setMaxUsers(maxUsers);
308            }
309    
310            /**
311            * Returns the active of this company.
312            *
313            * @return the active of this company
314            */
315            public boolean getActive() {
316                    return _company.getActive();
317            }
318    
319            /**
320            * Returns <code>true</code> if this company is active.
321            *
322            * @return <code>true</code> if this company is active; <code>false</code> otherwise
323            */
324            public boolean isActive() {
325                    return _company.isActive();
326            }
327    
328            /**
329            * Sets whether this company is active.
330            *
331            * @param active the active of this company
332            */
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            /**
552             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
553             */
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    }