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