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