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