001    /**
002     * Copyright (c) 2000-2012 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.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            /**
534             * @deprecated Renamed to {@link #getWrappedModel}
535             */
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    }