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