001    /**
002     * Copyright (c) 2000-2011 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    /**
018     * <p>
019     * This class is a wrapper for {@link Organization}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       Organization
024     * @generated
025     */
026    public class OrganizationWrapper implements Organization {
027            public OrganizationWrapper(Organization organization) {
028                    _organization = organization;
029            }
030    
031            public Class<?> getModelClass() {
032                    return Organization.class;
033            }
034    
035            public String getModelClassName() {
036                    return Organization.class.getName();
037            }
038    
039            /**
040            * Returns the primary key of this organization.
041            *
042            * @return the primary key of this organization
043            */
044            public long getPrimaryKey() {
045                    return _organization.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this organization.
050            *
051            * @param primaryKey the primary key of this organization
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _organization.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Returns the organization ID of this organization.
059            *
060            * @return the organization ID of this organization
061            */
062            public long getOrganizationId() {
063                    return _organization.getOrganizationId();
064            }
065    
066            /**
067            * Sets the organization ID of this organization.
068            *
069            * @param organizationId the organization ID of this organization
070            */
071            public void setOrganizationId(long organizationId) {
072                    _organization.setOrganizationId(organizationId);
073            }
074    
075            /**
076            * Returns the company ID of this organization.
077            *
078            * @return the company ID of this organization
079            */
080            public long getCompanyId() {
081                    return _organization.getCompanyId();
082            }
083    
084            /**
085            * Sets the company ID of this organization.
086            *
087            * @param companyId the company ID of this organization
088            */
089            public void setCompanyId(long companyId) {
090                    _organization.setCompanyId(companyId);
091            }
092    
093            /**
094            * Returns the parent organization ID of this organization.
095            *
096            * @return the parent organization ID of this organization
097            */
098            public long getParentOrganizationId() {
099                    return _organization.getParentOrganizationId();
100            }
101    
102            /**
103            * Sets the parent organization ID of this organization.
104            *
105            * @param parentOrganizationId the parent organization ID of this organization
106            */
107            public void setParentOrganizationId(long parentOrganizationId) {
108                    _organization.setParentOrganizationId(parentOrganizationId);
109            }
110    
111            /**
112            * Returns the left organization ID of this organization.
113            *
114            * @return the left organization ID of this organization
115            */
116            public long getLeftOrganizationId() {
117                    return _organization.getLeftOrganizationId();
118            }
119    
120            /**
121            * Sets the left organization ID of this organization.
122            *
123            * @param leftOrganizationId the left organization ID of this organization
124            */
125            public void setLeftOrganizationId(long leftOrganizationId) {
126                    _organization.setLeftOrganizationId(leftOrganizationId);
127            }
128    
129            /**
130            * Returns the right organization ID of this organization.
131            *
132            * @return the right organization ID of this organization
133            */
134            public long getRightOrganizationId() {
135                    return _organization.getRightOrganizationId();
136            }
137    
138            /**
139            * Sets the right organization ID of this organization.
140            *
141            * @param rightOrganizationId the right organization ID of this organization
142            */
143            public void setRightOrganizationId(long rightOrganizationId) {
144                    _organization.setRightOrganizationId(rightOrganizationId);
145            }
146    
147            /**
148            * Returns the name of this organization.
149            *
150            * @return the name of this organization
151            */
152            public java.lang.String getName() {
153                    return _organization.getName();
154            }
155    
156            /**
157            * Sets the name of this organization.
158            *
159            * @param name the name of this organization
160            */
161            public void setName(java.lang.String name) {
162                    _organization.setName(name);
163            }
164    
165            /**
166            * Returns the type of this organization.
167            *
168            * @return the type of this organization
169            */
170            public java.lang.String getType() {
171                    return _organization.getType();
172            }
173    
174            /**
175            * Sets the type of this organization.
176            *
177            * @param type the type of this organization
178            */
179            public void setType(java.lang.String type) {
180                    _organization.setType(type);
181            }
182    
183            /**
184            * Returns the recursable of this organization.
185            *
186            * @return the recursable of this organization
187            */
188            public boolean getRecursable() {
189                    return _organization.getRecursable();
190            }
191    
192            /**
193            * Returns <code>true</code> if this organization is recursable.
194            *
195            * @return <code>true</code> if this organization is recursable; <code>false</code> otherwise
196            */
197            public boolean isRecursable() {
198                    return _organization.isRecursable();
199            }
200    
201            /**
202            * Sets whether this organization is recursable.
203            *
204            * @param recursable the recursable of this organization
205            */
206            public void setRecursable(boolean recursable) {
207                    _organization.setRecursable(recursable);
208            }
209    
210            /**
211            * Returns the region ID of this organization.
212            *
213            * @return the region ID of this organization
214            */
215            public long getRegionId() {
216                    return _organization.getRegionId();
217            }
218    
219            /**
220            * Sets the region ID of this organization.
221            *
222            * @param regionId the region ID of this organization
223            */
224            public void setRegionId(long regionId) {
225                    _organization.setRegionId(regionId);
226            }
227    
228            /**
229            * Returns the country ID of this organization.
230            *
231            * @return the country ID of this organization
232            */
233            public long getCountryId() {
234                    return _organization.getCountryId();
235            }
236    
237            /**
238            * Sets the country ID of this organization.
239            *
240            * @param countryId the country ID of this organization
241            */
242            public void setCountryId(long countryId) {
243                    _organization.setCountryId(countryId);
244            }
245    
246            /**
247            * Returns the status ID of this organization.
248            *
249            * @return the status ID of this organization
250            */
251            public int getStatusId() {
252                    return _organization.getStatusId();
253            }
254    
255            /**
256            * Sets the status ID of this organization.
257            *
258            * @param statusId the status ID of this organization
259            */
260            public void setStatusId(int statusId) {
261                    _organization.setStatusId(statusId);
262            }
263    
264            /**
265            * Returns the comments of this organization.
266            *
267            * @return the comments of this organization
268            */
269            public java.lang.String getComments() {
270                    return _organization.getComments();
271            }
272    
273            /**
274            * Sets the comments of this organization.
275            *
276            * @param comments the comments of this organization
277            */
278            public void setComments(java.lang.String comments) {
279                    _organization.setComments(comments);
280            }
281    
282            public boolean isNew() {
283                    return _organization.isNew();
284            }
285    
286            public void setNew(boolean n) {
287                    _organization.setNew(n);
288            }
289    
290            public boolean isCachedModel() {
291                    return _organization.isCachedModel();
292            }
293    
294            public void setCachedModel(boolean cachedModel) {
295                    _organization.setCachedModel(cachedModel);
296            }
297    
298            public boolean isEscapedModel() {
299                    return _organization.isEscapedModel();
300            }
301    
302            public java.io.Serializable getPrimaryKeyObj() {
303                    return _organization.getPrimaryKeyObj();
304            }
305    
306            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
307                    _organization.setPrimaryKeyObj(primaryKeyObj);
308            }
309    
310            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
311                    return _organization.getExpandoBridge();
312            }
313    
314            public void setExpandoBridgeAttributes(
315                    com.liferay.portal.service.ServiceContext serviceContext) {
316                    _organization.setExpandoBridgeAttributes(serviceContext);
317            }
318    
319            @Override
320            public java.lang.Object clone() {
321                    return new OrganizationWrapper((Organization)_organization.clone());
322            }
323    
324            public int compareTo(com.liferay.portal.model.Organization organization) {
325                    return _organization.compareTo(organization);
326            }
327    
328            @Override
329            public int hashCode() {
330                    return _organization.hashCode();
331            }
332    
333            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Organization> toCacheModel() {
334                    return _organization.toCacheModel();
335            }
336    
337            public com.liferay.portal.model.Organization toEscapedModel() {
338                    return new OrganizationWrapper(_organization.toEscapedModel());
339            }
340    
341            @Override
342            public java.lang.String toString() {
343                    return _organization.toString();
344            }
345    
346            public java.lang.String toXmlString() {
347                    return _organization.toXmlString();
348            }
349    
350            public void persist()
351                    throws com.liferay.portal.kernel.exception.SystemException {
352                    _organization.persist();
353            }
354    
355            public com.liferay.portal.model.Address getAddress() {
356                    return _organization.getAddress();
357            }
358    
359            public java.util.List<com.liferay.portal.model.Address> getAddresses()
360                    throws com.liferay.portal.kernel.exception.SystemException {
361                    return _organization.getAddresses();
362            }
363    
364            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return _organization.getAncestors();
368            }
369    
370            public java.lang.String[] getChildrenTypes() {
371                    return _organization.getChildrenTypes();
372            }
373    
374            public java.util.List<com.liferay.portal.model.Organization> getDescendants()
375                    throws com.liferay.portal.kernel.exception.SystemException {
376                    return _organization.getDescendants();
377            }
378    
379            public com.liferay.portal.model.Group getGroup() {
380                    return _organization.getGroup();
381            }
382    
383            public long getLogoId() {
384                    return _organization.getLogoId();
385            }
386    
387            public com.liferay.portal.model.Organization getParentOrganization()
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return _organization.getParentOrganization();
391            }
392    
393            public javax.portlet.PortletPreferences getPreferences()
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return _organization.getPreferences();
396            }
397    
398            public int getPrivateLayoutsPageCount() {
399                    return _organization.getPrivateLayoutsPageCount();
400            }
401    
402            public int getPublicLayoutsPageCount() {
403                    return _organization.getPublicLayoutsPageCount();
404            }
405    
406            public java.util.Set<java.lang.String> getReminderQueryQuestions(
407                    java.util.Locale locale)
408                    throws com.liferay.portal.kernel.exception.SystemException {
409                    return _organization.getReminderQueryQuestions(locale);
410            }
411    
412            public java.util.Set<java.lang.String> getReminderQueryQuestions(
413                    java.lang.String languageId)
414                    throws com.liferay.portal.kernel.exception.SystemException {
415                    return _organization.getReminderQueryQuestions(languageId);
416            }
417    
418            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations()
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return _organization.getSuborganizations();
421            }
422    
423            public int getSuborganizationsSize()
424                    throws com.liferay.portal.kernel.exception.SystemException {
425                    return _organization.getSuborganizationsSize();
426            }
427    
428            public int getTypeOrder() {
429                    return _organization.getTypeOrder();
430            }
431    
432            public boolean hasPrivateLayouts() {
433                    return _organization.hasPrivateLayouts();
434            }
435    
436            public boolean hasPublicLayouts() {
437                    return _organization.hasPublicLayouts();
438            }
439    
440            public boolean hasSuborganizations()
441                    throws com.liferay.portal.kernel.exception.SystemException {
442                    return _organization.hasSuborganizations();
443            }
444    
445            public boolean isParentable() {
446                    return _organization.isParentable();
447            }
448    
449            public boolean isRoot() {
450                    return _organization.isRoot();
451            }
452    
453            public Organization getWrappedOrganization() {
454                    return _organization;
455            }
456    
457            public void resetOriginalValues() {
458                    _organization.resetOriginalValues();
459            }
460    
461            private Organization _organization;
462    }