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