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.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link OrganizationService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see OrganizationService
024     * @generated
025     */
026    @ProviderType
027    public class OrganizationServiceWrapper implements OrganizationService,
028            ServiceWrapper<OrganizationService> {
029            public OrganizationServiceWrapper(OrganizationService organizationService) {
030                    _organizationService = organizationService;
031            }
032    
033            /**
034            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            @Override
039            public java.lang.String getBeanIdentifier() {
040                    return _organizationService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            @Override
049            public void setBeanIdentifier(java.lang.String beanIdentifier) {
050                    _organizationService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            /**
054            * Adds the organizations to the group.
055            *
056            * @param groupId the primary key of the group
057            * @param organizationIds the primary keys of the organizations
058            * @throws PortalException if a group or organization with the primary key
059            could not be found or if the user did not have permission to
060            assign group members
061            * @throws SystemException if a system exception occurred
062            */
063            @Override
064            public void addGroupOrganizations(long groupId, long[] organizationIds)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _organizationService.addGroupOrganizations(groupId, organizationIds);
068            }
069    
070            /**
071            * Adds an organization with additional parameters.
072            *
073            * <p>
074            * This method handles the creation and bookkeeping of the organization
075            * including its resources, metadata, and internal data structures.
076            * </p>
077            *
078            * @param parentOrganizationId the primary key of the organization's
079            parent organization
080            * @param name the organization's name
081            * @param type the organization's type
082            * @param recursable whether the permissions of the organization are to
083            be inherited by its suborganizations
084            * @param regionId the primary key of the organization's region
085            * @param countryId the primary key of the organization's country
086            * @param statusId the organization's workflow status
087            * @param comments the comments about the organization
088            * @param site whether the organization is to be associated with a main
089            site
090            * @param addresses the organization's addresses
091            * @param emailAddresses the organization's email addresses
092            * @param orgLabors the organization's hours of operation
093            * @param phones the organization's phone numbers
094            * @param websites the organization's websites
095            * @param serviceContext the service context to be applied (optionally
096            <code>null</code>). Can set asset category IDs, asset tag
097            names, and expando bridge attributes for the organization.
098            * @return the organization
099            * @throws PortalException if a parent organization with the primary key
100            could not be found, if the organization's information was
101            invalid, or if the user did not have permission to add the
102            organization
103            * @throws SystemException if a system exception occurred
104            * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long,
105            String, String, long, long, int, String, boolean,
106            java.util.List, java.util.List, java.util.List,
107            java.util.List, java.util.List, ServiceContext)}
108            */
109            @Override
110            public com.liferay.portal.model.Organization addOrganization(
111                    long parentOrganizationId, java.lang.String name,
112                    java.lang.String type, boolean recursable, long regionId,
113                    long countryId, int statusId, java.lang.String comments, boolean site,
114                    java.util.List<com.liferay.portal.model.Address> addresses,
115                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
116                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
117                    java.util.List<com.liferay.portal.model.Phone> phones,
118                    java.util.List<com.liferay.portal.model.Website> websites,
119                    com.liferay.portal.service.ServiceContext serviceContext)
120                    throws com.liferay.portal.kernel.exception.PortalException,
121                            com.liferay.portal.kernel.exception.SystemException {
122                    return _organizationService.addOrganization(parentOrganizationId, name,
123                            type, recursable, regionId, countryId, statusId, comments, site,
124                            addresses, emailAddresses, orgLabors, phones, websites,
125                            serviceContext);
126            }
127    
128            /**
129            * Adds an organization.
130            *
131            * <p>
132            * This method handles the creation and bookkeeping of the organization
133            * including its resources, metadata, and internal data structures.
134            * </p>
135            *
136            * @param parentOrganizationId the primary key of the organization's
137            parent organization
138            * @param name the organization's name
139            * @param type the organization's type
140            * @param recursable whether the permissions of the organization are to
141            be inherited by its suborganizations
142            * @param regionId the primary key of the organization's region
143            * @param countryId the primary key of the organization's country
144            * @param statusId the organization's workflow status
145            * @param comments the comments about the organization
146            * @param site whether the organization is to be associated with a main
147            site
148            * @param serviceContext the service context to be applied (optionally
149            <code>null</code>). Can set asset category IDs, asset tag
150            names, and expando bridge attributes for the organization.
151            * @return the organization
152            * @throws PortalException if the parent organization with the primary
153            key could not be found, if the organization information was
154            invalid, or if the user did not have permission to add the
155            organization
156            * @throws SystemException if a system exception occurred
157            * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long,
158            String, String, long, long, int, String, boolean,
159            ServiceContext)}
160            */
161            @Override
162            public com.liferay.portal.model.Organization addOrganization(
163                    long parentOrganizationId, java.lang.String name,
164                    java.lang.String type, boolean recursable, long regionId,
165                    long countryId, int statusId, java.lang.String comments, boolean site,
166                    com.liferay.portal.service.ServiceContext serviceContext)
167                    throws com.liferay.portal.kernel.exception.PortalException,
168                            com.liferay.portal.kernel.exception.SystemException {
169                    return _organizationService.addOrganization(parentOrganizationId, name,
170                            type, recursable, regionId, countryId, statusId, comments, site,
171                            serviceContext);
172            }
173    
174            /**
175            * Adds an organization with additional parameters.
176            *
177            * <p>
178            * This method handles the creation and bookkeeping of the organization
179            * including its resources, metadata, and internal data structures.
180            * </p>
181            *
182            * @param parentOrganizationId the primary key of the organization's parent
183            organization
184            * @param name the organization's name
185            * @param type the organization's type
186            * @param regionId the primary key of the organization's region
187            * @param countryId the primary key of the organization's country
188            * @param statusId the organization's workflow status
189            * @param comments the comments about the organization
190            * @param site whether the organization is to be associated with a main
191            site
192            * @param addresses the organization's addresses
193            * @param emailAddresses the organization's email addresses
194            * @param orgLabors the organization's hours of operation
195            * @param phones the organization's phone numbers
196            * @param websites the organization's websites
197            * @param serviceContext the service context to be applied (optionally
198            <code>null</code>). Can set asset category IDs, asset tag names,
199            and expando bridge attributes for the organization.
200            * @return the organization
201            * @throws PortalException if a parent organization with the primary key
202            could not be found, if the organization's information was
203            invalid, or if the user did not have permission to add the
204            organization
205            * @throws SystemException if a system exception occurred
206            */
207            @Override
208            public com.liferay.portal.model.Organization addOrganization(
209                    long parentOrganizationId, java.lang.String name,
210                    java.lang.String type, long regionId, long countryId, int statusId,
211                    java.lang.String comments, boolean site,
212                    java.util.List<com.liferay.portal.model.Address> addresses,
213                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
214                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
215                    java.util.List<com.liferay.portal.model.Phone> phones,
216                    java.util.List<com.liferay.portal.model.Website> websites,
217                    com.liferay.portal.service.ServiceContext serviceContext)
218                    throws com.liferay.portal.kernel.exception.PortalException,
219                            com.liferay.portal.kernel.exception.SystemException {
220                    return _organizationService.addOrganization(parentOrganizationId, name,
221                            type, regionId, countryId, statusId, comments, site, addresses,
222                            emailAddresses, orgLabors, phones, websites, serviceContext);
223            }
224    
225            /**
226            * Adds an organization.
227            *
228            * <p>
229            * This method handles the creation and bookkeeping of the organization
230            * including its resources, metadata, and internal data structures.
231            * </p>
232            *
233            * @param parentOrganizationId the primary key of the organization's parent
234            organization
235            * @param name the organization's name
236            * @param type the organization's type
237            * @param regionId the primary key of the organization's region
238            * @param countryId the primary key of the organization's country
239            * @param statusId the organization's workflow status
240            * @param comments the comments about the organization
241            * @param site whether the organization is to be associated with a main
242            site
243            * @param serviceContext the service context to be applied (optionally
244            <code>null</code>). Can set asset category IDs, asset tag names,
245            and expando bridge attributes for the organization.
246            * @return the organization
247            * @throws PortalException if the parent organization with the primary key
248            could not be found, if the organization information was invalid,
249            or if the user did not have permission to add the organization
250            * @throws SystemException if a system exception occurred
251            */
252            @Override
253            public com.liferay.portal.model.Organization addOrganization(
254                    long parentOrganizationId, java.lang.String name,
255                    java.lang.String type, long regionId, long countryId, int statusId,
256                    java.lang.String comments, boolean site,
257                    com.liferay.portal.service.ServiceContext serviceContext)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    return _organizationService.addOrganization(parentOrganizationId, name,
261                            type, regionId, countryId, statusId, comments, site, serviceContext);
262            }
263    
264            /**
265            * Assigns the password policy to the organizations, removing any other
266            * currently assigned password policies.
267            *
268            * @param passwordPolicyId the primary key of the password policy
269            * @param organizationIds the primary keys of the organizations
270            * @throws PortalException if the user did not have permission to update the
271            password policy
272            * @throws SystemException if a system exception occurred
273            */
274            @Override
275            public void addPasswordPolicyOrganizations(long passwordPolicyId,
276                    long[] organizationIds)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    _organizationService.addPasswordPolicyOrganizations(passwordPolicyId,
280                            organizationIds);
281            }
282    
283            /**
284            * Deletes the logo of the organization.
285            *
286            * @param organizationId the primary key of the organization
287            * @throws PortalException if an organization with the primary key could not
288            be found, if the organization's logo could not be found, or if
289            the user did not have permission to update the organization
290            * @throws SystemException if a system exception occurred
291            */
292            @Override
293            public void deleteLogo(long organizationId)
294                    throws com.liferay.portal.kernel.exception.PortalException,
295                            com.liferay.portal.kernel.exception.SystemException {
296                    _organizationService.deleteLogo(organizationId);
297            }
298    
299            /**
300            * Deletes the organization. The organization's associated resources and
301            * assets are also deleted.
302            *
303            * @param organizationId the primary key of the organization
304            * @throws PortalException if an organization with the primary key could not
305            be found, if the user did not have permission to delete the
306            organization, if the organization had a workflow in approved
307            status, or if the organization was a parent organization
308            * @throws SystemException if a system exception occurred
309            */
310            @Override
311            public void deleteOrganization(long organizationId)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _organizationService.deleteOrganization(organizationId);
315            }
316    
317            /**
318            * Returns all the organizations which the user has permission to manage.
319            *
320            * @param actionId the permitted action
321            * @param max the maximum number of the organizations to be considered
322            * @return the organizations which the user has permission to manage
323            * @throws PortalException if a portal exception occurred
324            * @throws SystemException if a system exception occurred
325            * @deprecated As of 6.2.0, replaced by {@link #getOrganizations(long, long,
326            int, int)}
327            */
328            @Override
329            public java.util.List<com.liferay.portal.model.Organization> getManageableOrganizations(
330                    java.lang.String actionId, int max)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return _organizationService.getManageableOrganizations(actionId, max);
334            }
335    
336            /**
337            * Returns the organization with the primary key.
338            *
339            * @param organizationId the primary key of the organization
340            * @return the organization with the primary key
341            * @throws PortalException if an organization with the primary key could not
342            be found or if the user did not have permission to view the
343            organization
344            * @throws SystemException if a system exception occurred
345            */
346            @Override
347            public com.liferay.portal.model.Organization getOrganization(
348                    long organizationId)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _organizationService.getOrganization(organizationId);
352            }
353    
354            /**
355            * Returns the primary key of the organization with the name.
356            *
357            * @param companyId the primary key of the organization's company
358            * @param name the organization's name
359            * @return the primary key of the organization with the name, or
360            <code>0</code> if the organization could not be found
361            * @throws PortalException if the user did not have permission to view the
362            organization
363            * @throws SystemException if a system exception occurred
364            */
365            @Override
366            public long getOrganizationId(long companyId, java.lang.String name)
367                    throws com.liferay.portal.kernel.exception.PortalException,
368                            com.liferay.portal.kernel.exception.SystemException {
369                    return _organizationService.getOrganizationId(companyId, name);
370            }
371    
372            /**
373            * Returns all the organizations belonging to the parent organization.
374            *
375            * @param companyId the primary key of the organizations' company
376            * @param parentOrganizationId the primary key of the organizations' parent
377            organization
378            * @return the organizations belonging to the parent organization
379            * @throws SystemException if a system exception occurred
380            */
381            @Override
382            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
383                    long companyId, long parentOrganizationId)
384                    throws com.liferay.portal.kernel.exception.SystemException {
385                    return _organizationService.getOrganizations(companyId,
386                            parentOrganizationId);
387            }
388    
389            /**
390            * Returns a range of all the organizations belonging to the parent
391            * organization.
392            *
393            * <p>
394            * Useful when paginating results. Returns a maximum of <code>end -
395            * start</code> instances. <code>start</code> and <code>end</code> are not
396            * primary keys, they are indexes in the result set. Thus, <code>0</code>
397            * refers to the first result in the set. Setting both <code>start</code>
398            * and <code>end</code> to {@link
399            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
400            * result set.
401            * </p>
402            *
403            * @param companyId the primary key of the organizations' company
404            * @param parentOrganizationId the primary key of the organizations' parent
405            organization
406            * @param start the lower bound of the range of organizations to return
407            * @param end the upper bound of the range of organizations to return (not
408            inclusive)
409            * @return the range of organizations belonging to the parent organization
410            * @throws SystemException if a system exception occurred
411            */
412            @Override
413            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
414                    long companyId, long parentOrganizationId, int start, int end)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _organizationService.getOrganizations(companyId,
417                            parentOrganizationId, start, end);
418            }
419    
420            /**
421            * Returns the number of organizations belonging to the parent organization.
422            *
423            * @param companyId the primary key of the organizations' company
424            * @param parentOrganizationId the primary key of the organizations' parent
425            organization
426            * @return the number of organizations belonging to the parent organization
427            * @throws SystemException if a system exception occurred
428            */
429            @Override
430            public int getOrganizationsCount(long companyId, long parentOrganizationId)
431                    throws com.liferay.portal.kernel.exception.SystemException {
432                    return _organizationService.getOrganizationsCount(companyId,
433                            parentOrganizationId);
434            }
435    
436            /**
437            * Returns all the organizations associated with the user.
438            *
439            * @param userId the primary key of the user
440            * @return the organizations associated with the user
441            * @throws PortalException if a user with the primary key could not be found
442            * @throws SystemException if a system exception occurred
443            */
444            @Override
445            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
446                    long userId)
447                    throws com.liferay.portal.kernel.exception.PortalException,
448                            com.liferay.portal.kernel.exception.SystemException {
449                    return _organizationService.getUserOrganizations(userId);
450            }
451    
452            /**
453            * Sets the organizations in the group, removing and adding organizations to
454            * the group as necessary.
455            *
456            * @param groupId the primary key of the group
457            * @param organizationIds the primary keys of the organizations
458            * @throws PortalException if a group or organization with the primary key
459            could not be found or if the user did not have permission to
460            assign group members
461            * @throws SystemException if a system exception occurred
462            */
463            @Override
464            public void setGroupOrganizations(long groupId, long[] organizationIds)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException {
467                    _organizationService.setGroupOrganizations(groupId, organizationIds);
468            }
469    
470            /**
471            * Removes the organizations from the group.
472            *
473            * @param groupId the primary key of the group
474            * @param organizationIds the primary keys of the organizations
475            * @throws PortalException if a group or organization with the primary key
476            could not be found or if the user did not have permission to
477            assign group members
478            * @throws SystemException if a system exception occurred
479            */
480            @Override
481            public void unsetGroupOrganizations(long groupId, long[] organizationIds)
482                    throws com.liferay.portal.kernel.exception.PortalException,
483                            com.liferay.portal.kernel.exception.SystemException {
484                    _organizationService.unsetGroupOrganizations(groupId, organizationIds);
485            }
486    
487            /**
488            * Removes the organizations from the password policy.
489            *
490            * @param passwordPolicyId the primary key of the password policy
491            * @param organizationIds the primary keys of the organizations
492            * @throws PortalException if a password policy or organization with the
493            primary key could not be found, or if the user did not have
494            permission to update the password policy
495            * @throws SystemException if a system exception occurred
496            */
497            @Override
498            public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
499                    long[] organizationIds)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException {
502                    _organizationService.unsetPasswordPolicyOrganizations(passwordPolicyId,
503                            organizationIds);
504            }
505    
506            /**
507            * Updates the organization with additional parameters.
508            *
509            * @param organizationId the primary key of the organization
510            * @param parentOrganizationId the primary key of the organization's
511            parent organization
512            * @param name the organization's name
513            * @param type the organization's type
514            * @param recursable whether the permissions of the organization are to
515            be inherited by its suborganizations
516            * @param regionId the primary key of the organization's region
517            * @param countryId the primary key of the organization's country
518            * @param statusId the organization's workflow status
519            * @param comments the comments about the organization
520            * @param site whether the organization is to be associated with a main
521            site
522            * @param addresses the organization's addresses
523            * @param emailAddresses the organization's email addresses
524            * @param orgLabors the organization's hours of operation
525            * @param phones the organization's phone numbers
526            * @param websites the organization's websites
527            * @param serviceContext the service context to be applied (optionally
528            <code>null</code>). Can set asset category IDs and asset tag
529            names for the organization, and merge expando bridge
530            attributes for the organization.
531            * @return the organization
532            * @throws PortalException if an organization or parent organization
533            with the primary key could not be found, if the user did not
534            have permission to update the organization information, or if
535            the new information was invalid
536            * @throws SystemException if a system exception occurred
537            * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
538            long, String, String, long, long, int, String, boolean,
539            java.util.List, java.util.List, java.util.List,
540            java.util.List, java.util.List, ServiceContext)}
541            */
542            @Override
543            public com.liferay.portal.model.Organization updateOrganization(
544                    long organizationId, long parentOrganizationId, java.lang.String name,
545                    java.lang.String type, boolean recursable, long regionId,
546                    long countryId, int statusId, java.lang.String comments, boolean site,
547                    java.util.List<com.liferay.portal.model.Address> addresses,
548                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
549                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
550                    java.util.List<com.liferay.portal.model.Phone> phones,
551                    java.util.List<com.liferay.portal.model.Website> websites,
552                    com.liferay.portal.service.ServiceContext serviceContext)
553                    throws com.liferay.portal.kernel.exception.PortalException,
554                            com.liferay.portal.kernel.exception.SystemException {
555                    return _organizationService.updateOrganization(organizationId,
556                            parentOrganizationId, name, type, recursable, regionId, countryId,
557                            statusId, comments, site, addresses, emailAddresses, orgLabors,
558                            phones, websites, serviceContext);
559            }
560    
561            /**
562            * Updates the organization.
563            *
564            * @param organizationId the primary key of the organization
565            * @param parentOrganizationId the primary key of the organization's
566            parent organization
567            * @param name the organization's name
568            * @param type the organization's type
569            * @param recursable whether permissions of the organization are to be
570            inherited by its suborganizations
571            * @param regionId the primary key of the organization's region
572            * @param countryId the primary key of the organization's country
573            * @param statusId the organization's workflow status
574            * @param comments the comments about the organization
575            * @param site whether the organization is to be associated with a main
576            site
577            * @param serviceContext the service context to be applied (optionally
578            <code>null</code>). Can set asset category IDs and asset tag
579            names for the organization, and merge expando bridge
580            attributes for the organization.
581            * @return the organization
582            * @throws PortalException if an organization or parent organization
583            with the primary key could not be found, if the user did not
584            have permission to update the organization, or if the new
585            information was invalid
586            * @throws SystemException if a system exception occurred
587            * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
588            long, String, String, long, long, int, String, boolean,
589            ServiceContext)}
590            */
591            @Override
592            public com.liferay.portal.model.Organization updateOrganization(
593                    long organizationId, long parentOrganizationId, java.lang.String name,
594                    java.lang.String type, boolean recursable, long regionId,
595                    long countryId, int statusId, java.lang.String comments, boolean site,
596                    com.liferay.portal.service.ServiceContext serviceContext)
597                    throws com.liferay.portal.kernel.exception.PortalException,
598                            com.liferay.portal.kernel.exception.SystemException {
599                    return _organizationService.updateOrganization(organizationId,
600                            parentOrganizationId, name, type, recursable, regionId, countryId,
601                            statusId, comments, site, serviceContext);
602            }
603    
604            /**
605            * Updates the organization with additional parameters.
606            *
607            * @param organizationId the primary key of the organization
608            * @param parentOrganizationId the primary key of the organization's parent
609            organization
610            * @param name the organization's name
611            * @param type the organization's type
612            * @param regionId the primary key of the organization's region
613            * @param countryId the primary key of the organization's country
614            * @param statusId the organization's workflow status
615            * @param comments the comments about the organization
616            * @param site whether the organization is to be associated with a main
617            site
618            * @param addresses the organization's addresses
619            * @param emailAddresses the organization's email addresses
620            * @param orgLabors the organization's hours of operation
621            * @param phones the organization's phone numbers
622            * @param websites the organization's websites
623            * @param serviceContext the service context to be applied (optionally
624            <code>null</code>). Can set asset category IDs and asset tag
625            names for the organization, and merge expando bridge attributes
626            for the organization.
627            * @return the organization
628            * @throws PortalException if an organization or parent organization with
629            the primary key could not be found, if the user did not have
630            permission to update the organization information, or if the new
631            information was invalid
632            * @throws SystemException if a system exception occurred
633            */
634            @Override
635            public com.liferay.portal.model.Organization updateOrganization(
636                    long organizationId, long parentOrganizationId, java.lang.String name,
637                    java.lang.String type, long regionId, long countryId, int statusId,
638                    java.lang.String comments, boolean site,
639                    java.util.List<com.liferay.portal.model.Address> addresses,
640                    java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
641                    java.util.List<com.liferay.portal.model.OrgLabor> orgLabors,
642                    java.util.List<com.liferay.portal.model.Phone> phones,
643                    java.util.List<com.liferay.portal.model.Website> websites,
644                    com.liferay.portal.service.ServiceContext serviceContext)
645                    throws com.liferay.portal.kernel.exception.PortalException,
646                            com.liferay.portal.kernel.exception.SystemException {
647                    return _organizationService.updateOrganization(organizationId,
648                            parentOrganizationId, name, type, regionId, countryId, statusId,
649                            comments, site, addresses, emailAddresses, orgLabors, phones,
650                            websites, serviceContext);
651            }
652    
653            /**
654            * Updates the organization.
655            *
656            * @param organizationId the primary key of the organization
657            * @param parentOrganizationId the primary key of the organization's parent
658            organization
659            * @param name the organization's name
660            * @param type the organization's type
661            * @param regionId the primary key of the organization's region
662            * @param countryId the primary key of the organization's country
663            * @param statusId the organization's workflow status
664            * @param comments the comments about the organization
665            * @param site whether the organization is to be associated with a main
666            site
667            * @param serviceContext the service context to be applied (optionally
668            <code>null</code>). Can set asset category IDs and asset tag
669            names for the organization, and merge expando bridge attributes
670            for the organization.
671            * @return the organization
672            * @throws PortalException if an organization or parent organization with
673            the primary key could not be found, if the user did not have
674            permission to update the organization, or if the new information
675            was invalid
676            * @throws SystemException if a system exception occurred
677            */
678            @Override
679            public com.liferay.portal.model.Organization updateOrganization(
680                    long organizationId, long parentOrganizationId, java.lang.String name,
681                    java.lang.String type, long regionId, long countryId, int statusId,
682                    java.lang.String comments, boolean site,
683                    com.liferay.portal.service.ServiceContext serviceContext)
684                    throws com.liferay.portal.kernel.exception.PortalException,
685                            com.liferay.portal.kernel.exception.SystemException {
686                    return _organizationService.updateOrganization(organizationId,
687                            parentOrganizationId, name, type, regionId, countryId, statusId,
688                            comments, site, serviceContext);
689            }
690    
691            /**
692             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
693             */
694            public OrganizationService getWrappedOrganizationService() {
695                    return _organizationService;
696            }
697    
698            /**
699             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
700             */
701            public void setWrappedOrganizationService(
702                    OrganizationService organizationService) {
703                    _organizationService = organizationService;
704            }
705    
706            @Override
707            public OrganizationService getWrappedService() {
708                    return _organizationService;
709            }
710    
711            @Override
712            public void setWrappedService(OrganizationService organizationService) {
713                    _organizationService = organizationService;
714            }
715    
716            private OrganizationService _organizationService;
717    }