001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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            * Determines 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            * Gets 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            * Gets 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            * Gets 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            * Gets 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 void setEscapedModel(boolean escapedModel) {
303                    _organization.setEscapedModel(escapedModel);
304            }
305    
306            public java.io.Serializable getPrimaryKeyObj() {
307                    return _organization.getPrimaryKeyObj();
308            }
309    
310            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
311                    _organization.setPrimaryKeyObj(primaryKeyObj);
312            }
313    
314            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
315                    return _organization.getExpandoBridge();
316            }
317    
318            public void setExpandoBridgeAttributes(
319                    com.liferay.portal.service.ServiceContext serviceContext) {
320                    _organization.setExpandoBridgeAttributes(serviceContext);
321            }
322    
323            @Override
324            public java.lang.Object clone() {
325                    return new OrganizationWrapper((Organization)_organization.clone());
326            }
327    
328            public int compareTo(com.liferay.portal.model.Organization organization) {
329                    return _organization.compareTo(organization);
330            }
331    
332            @Override
333            public int hashCode() {
334                    return _organization.hashCode();
335            }
336    
337            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.Organization> toCacheModel() {
338                    return _organization.toCacheModel();
339            }
340    
341            public com.liferay.portal.model.Organization toEscapedModel() {
342                    return new OrganizationWrapper(_organization.toEscapedModel());
343            }
344    
345            @Override
346            public java.lang.String toString() {
347                    return _organization.toString();
348            }
349    
350            public java.lang.String toXmlString() {
351                    return _organization.toXmlString();
352            }
353    
354            public void persist()
355                    throws com.liferay.portal.kernel.exception.SystemException {
356                    _organization.persist();
357            }
358    
359            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    return _organization.getAncestors();
363            }
364    
365            public com.liferay.portal.model.Organization getParentOrganization()
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException {
368                    return _organization.getParentOrganization();
369            }
370    
371            public com.liferay.portal.model.Address getAddress() {
372                    return _organization.getAddress();
373            }
374    
375            public java.util.List<com.liferay.portal.model.Address> getAddresses()
376                    throws com.liferay.portal.kernel.exception.SystemException {
377                    return _organization.getAddresses();
378            }
379    
380            public java.lang.String[] getChildrenTypes() {
381                    return _organization.getChildrenTypes();
382            }
383    
384            public java.util.List<com.liferay.portal.model.Organization> getDescendants()
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _organization.getDescendants();
387            }
388    
389            public com.liferay.portal.model.Group getGroup() {
390                    return _organization.getGroup();
391            }
392    
393            public long getLogoId() {
394                    return _organization.getLogoId();
395            }
396    
397            public javax.portlet.PortletPreferences getPreferences()
398                    throws com.liferay.portal.kernel.exception.SystemException {
399                    return _organization.getPreferences();
400            }
401    
402            public int getPrivateLayoutsPageCount() {
403                    return _organization.getPrivateLayoutsPageCount();
404            }
405    
406            public int getPublicLayoutsPageCount() {
407                    return _organization.getPublicLayoutsPageCount();
408            }
409    
410            public java.util.Set<java.lang.String> getReminderQueryQuestions(
411                    java.util.Locale locale)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _organization.getReminderQueryQuestions(locale);
414            }
415    
416            public java.util.Set<java.lang.String> getReminderQueryQuestions(
417                    java.lang.String languageId)
418                    throws com.liferay.portal.kernel.exception.SystemException {
419                    return _organization.getReminderQueryQuestions(languageId);
420            }
421    
422            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations()
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    return _organization.getSuborganizations();
425            }
426    
427            public int getSuborganizationsSize()
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    return _organization.getSuborganizationsSize();
430            }
431    
432            public int getTypeOrder() {
433                    return _organization.getTypeOrder();
434            }
435    
436            public boolean hasPrivateLayouts() {
437                    return _organization.hasPrivateLayouts();
438            }
439    
440            public boolean hasPublicLayouts() {
441                    return _organization.hasPublicLayouts();
442            }
443    
444            public boolean hasSuborganizations()
445                    throws com.liferay.portal.kernel.exception.SystemException {
446                    return _organization.hasSuborganizations();
447            }
448    
449            public boolean isParentable() {
450                    return _organization.isParentable();
451            }
452    
453            public boolean isRoot() {
454                    return _organization.isRoot();
455            }
456    
457            public Organization getWrappedOrganization() {
458                    return _organization;
459            }
460    
461            public void resetOriginalValues() {
462                    _organization.resetOriginalValues();
463            }
464    
465            private Organization _organization;
466    }