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