001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.http;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.log.Log;
020    import com.liferay.portal.kernel.log.LogFactoryUtil;
021    import com.liferay.portal.service.OrganizationServiceUtil;
022    
023    import java.rmi.RemoteException;
024    
025    /**
026     * Provides the SOAP utility for the
027     * {@link com.liferay.portal.service.OrganizationServiceUtil} service utility. The
028     * static methods of this class calls the same methods of the service utility.
029     * However, the signatures are different because it is difficult for SOAP to
030     * support certain types.
031     *
032     * <p>
033     * ServiceBuilder follows certain rules in translating the methods. For example,
034     * if the method in the service utility returns a {@link java.util.List}, that
035     * is translated to an array of {@link com.liferay.portal.model.OrganizationSoap}.
036     * If the method in the service utility returns a
037     * {@link com.liferay.portal.model.Organization}, that is translated to a
038     * {@link com.liferay.portal.model.OrganizationSoap}. Methods that SOAP cannot
039     * safely wire are skipped.
040     * </p>
041     *
042     * <p>
043     * The benefits of using the SOAP utility is that it is cross platform
044     * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
045     * even Perl, to call the generated services. One drawback of SOAP is that it is
046     * slow because it needs to serialize all calls into a text format (XML).
047     * </p>
048     *
049     * <p>
050     * You can see a list of services at http://localhost:8080/api/axis. Set the
051     * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
052     * security.
053     * </p>
054     *
055     * <p>
056     * The SOAP utility is only generated for remote services.
057     * </p>
058     *
059     * @author Brian Wing Shun Chan
060     * @see OrganizationServiceHttp
061     * @see com.liferay.portal.model.OrganizationSoap
062     * @see com.liferay.portal.service.OrganizationServiceUtil
063     * @generated
064     */
065    @ProviderType
066    public class OrganizationServiceSoap {
067            /**
068            * Adds the organizations to the group.
069            *
070            * @param groupId the primary key of the group
071            * @param organizationIds the primary keys of the organizations
072            * @throws PortalException if a group or organization with the primary key
073            could not be found or if the user did not have permission to
074            assign group members
075            * @throws SystemException if a system exception occurred
076            */
077            public static void addGroupOrganizations(long groupId,
078                    long[] organizationIds) throws RemoteException {
079                    try {
080                            OrganizationServiceUtil.addGroupOrganizations(groupId,
081                                    organizationIds);
082                    }
083                    catch (Exception e) {
084                            _log.error(e, e);
085    
086                            throw new RemoteException(e.getMessage());
087                    }
088            }
089    
090            /**
091            * Adds an organization with additional parameters.
092            *
093            * <p>
094            * This method handles the creation and bookkeeping of the organization
095            * including its resources, metadata, and internal data structures.
096            * </p>
097            *
098            * @param parentOrganizationId the primary key of the organization's
099            parent organization
100            * @param name the organization's name
101            * @param type the organization's type
102            * @param recursable whether the permissions of the organization are to
103            be inherited by its suborganizations
104            * @param regionId the primary key of the organization's region
105            * @param countryId the primary key of the organization's country
106            * @param statusId the organization's workflow status
107            * @param comments the comments about the organization
108            * @param site whether the organization is to be associated with a main
109            site
110            * @param addresses the organization's addresses
111            * @param emailAddresses the organization's email addresses
112            * @param orgLabors the organization's hours of operation
113            * @param phones the organization's phone numbers
114            * @param websites the organization's websites
115            * @param serviceContext the service context to be applied (optionally
116            <code>null</code>). Can set asset category IDs, asset tag
117            names, and expando bridge attributes for the organization.
118            * @return the organization
119            * @throws PortalException if a parent organization with the primary key
120            could not be found, if the organization's information was
121            invalid, or if the user did not have permission to add the
122            organization
123            * @throws SystemException if a system exception occurred
124            * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long,
125            String, String, long, long, int, String, boolean,
126            java.util.List, java.util.List, java.util.List,
127            java.util.List, java.util.List, ServiceContext)}
128            */
129            public static com.liferay.portal.model.OrganizationSoap addOrganization(
130                    long parentOrganizationId, java.lang.String name,
131                    java.lang.String type, boolean recursable, long regionId,
132                    long countryId, int statusId, java.lang.String comments, boolean site,
133                    com.liferay.portal.model.AddressSoap[] addresses,
134                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
135                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
136                    com.liferay.portal.model.PhoneSoap[] phones,
137                    com.liferay.portal.model.WebsiteSoap[] websites,
138                    com.liferay.portal.service.ServiceContext serviceContext)
139                    throws RemoteException {
140                    try {
141                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
142                                            name, type, recursable, regionId, countryId, statusId,
143                                            comments, site,
144                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
145                                                    addresses),
146                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
147                                                    emailAddresses),
148                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
149                                                    orgLabors),
150                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
151                                                    phones),
152                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
153                                                    websites), serviceContext);
154    
155                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
156                    }
157                    catch (Exception e) {
158                            _log.error(e, e);
159    
160                            throw new RemoteException(e.getMessage());
161                    }
162            }
163    
164            /**
165            * Adds an organization.
166            *
167            * <p>
168            * This method handles the creation and bookkeeping of the organization
169            * including its resources, metadata, and internal data structures.
170            * </p>
171            *
172            * @param parentOrganizationId the primary key of the organization's
173            parent organization
174            * @param name the organization's name
175            * @param type the organization's type
176            * @param recursable whether the permissions of the organization are to
177            be inherited by its suborganizations
178            * @param regionId the primary key of the organization's region
179            * @param countryId the primary key of the organization's country
180            * @param statusId the organization's workflow status
181            * @param comments the comments about the organization
182            * @param site whether the organization is to be associated with a main
183            site
184            * @param serviceContext the service context to be applied (optionally
185            <code>null</code>). Can set asset category IDs, asset tag
186            names, and expando bridge attributes for the organization.
187            * @return the organization
188            * @throws PortalException if the parent organization with the primary
189            key could not be found, if the organization information was
190            invalid, or if the user did not have permission to add the
191            organization
192            * @throws SystemException if a system exception occurred
193            * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long,
194            String, String, long, long, int, String, boolean,
195            ServiceContext)}
196            */
197            public static com.liferay.portal.model.OrganizationSoap addOrganization(
198                    long parentOrganizationId, java.lang.String name,
199                    java.lang.String type, boolean recursable, long regionId,
200                    long countryId, int statusId, java.lang.String comments, boolean site,
201                    com.liferay.portal.service.ServiceContext serviceContext)
202                    throws RemoteException {
203                    try {
204                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
205                                            name, type, recursable, regionId, countryId, statusId,
206                                            comments, site, serviceContext);
207    
208                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
209                    }
210                    catch (Exception e) {
211                            _log.error(e, e);
212    
213                            throw new RemoteException(e.getMessage());
214                    }
215            }
216    
217            /**
218            * Adds an organization with additional parameters.
219            *
220            * <p>
221            * This method handles the creation and bookkeeping of the organization
222            * including its resources, metadata, and internal data structures.
223            * </p>
224            *
225            * @param parentOrganizationId the primary key of the organization's parent
226            organization
227            * @param name the organization's name
228            * @param type the organization's type
229            * @param regionId the primary key of the organization's region
230            * @param countryId the primary key of the organization's country
231            * @param statusId the organization's workflow status
232            * @param comments the comments about the organization
233            * @param site whether the organization is to be associated with a main
234            site
235            * @param addresses the organization's addresses
236            * @param emailAddresses the organization's email addresses
237            * @param orgLabors the organization's hours of operation
238            * @param phones the organization's phone numbers
239            * @param websites the organization's websites
240            * @param serviceContext the service context to be applied (optionally
241            <code>null</code>). Can set asset category IDs, asset tag names,
242            and expando bridge attributes for the organization.
243            * @return the organization
244            * @throws PortalException if a parent organization with the primary key
245            could not be found, if the organization's information was
246            invalid, or if the user did not have permission to add the
247            organization
248            * @throws SystemException if a system exception occurred
249            */
250            public static com.liferay.portal.model.OrganizationSoap addOrganization(
251                    long parentOrganizationId, java.lang.String name,
252                    java.lang.String type, long regionId, long countryId, int statusId,
253                    java.lang.String comments, boolean site,
254                    com.liferay.portal.model.AddressSoap[] addresses,
255                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
256                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
257                    com.liferay.portal.model.PhoneSoap[] phones,
258                    com.liferay.portal.model.WebsiteSoap[] websites,
259                    com.liferay.portal.service.ServiceContext serviceContext)
260                    throws RemoteException {
261                    try {
262                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
263                                            name, type, regionId, countryId, statusId, comments, site,
264                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
265                                                    addresses),
266                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
267                                                    emailAddresses),
268                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
269                                                    orgLabors),
270                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
271                                                    phones),
272                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
273                                                    websites), serviceContext);
274    
275                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
276                    }
277                    catch (Exception e) {
278                            _log.error(e, e);
279    
280                            throw new RemoteException(e.getMessage());
281                    }
282            }
283    
284            /**
285            * Adds an organization.
286            *
287            * <p>
288            * This method handles the creation and bookkeeping of the organization
289            * including its resources, metadata, and internal data structures.
290            * </p>
291            *
292            * @param parentOrganizationId the primary key of the organization's parent
293            organization
294            * @param name the organization's name
295            * @param type the organization's type
296            * @param regionId the primary key of the organization's region
297            * @param countryId the primary key of the organization's country
298            * @param statusId the organization's workflow status
299            * @param comments the comments about the organization
300            * @param site whether the organization is to be associated with a main
301            site
302            * @param serviceContext the service context to be applied (optionally
303            <code>null</code>). Can set asset category IDs, asset tag names,
304            and expando bridge attributes for the organization.
305            * @return the organization
306            * @throws PortalException if the parent organization with the primary key
307            could not be found, if the organization information was invalid,
308            or if the user did not have permission to add the organization
309            * @throws SystemException if a system exception occurred
310            */
311            public static com.liferay.portal.model.OrganizationSoap addOrganization(
312                    long parentOrganizationId, java.lang.String name,
313                    java.lang.String type, long regionId, long countryId, int statusId,
314                    java.lang.String comments, boolean site,
315                    com.liferay.portal.service.ServiceContext serviceContext)
316                    throws RemoteException {
317                    try {
318                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
319                                            name, type, regionId, countryId, statusId, comments, site,
320                                            serviceContext);
321    
322                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
323                    }
324                    catch (Exception e) {
325                            _log.error(e, e);
326    
327                            throw new RemoteException(e.getMessage());
328                    }
329            }
330    
331            /**
332            * Assigns the password policy to the organizations, removing any other
333            * currently assigned password policies.
334            *
335            * @param passwordPolicyId the primary key of the password policy
336            * @param organizationIds the primary keys of the organizations
337            * @throws PortalException if the user did not have permission to update the
338            password policy
339            * @throws SystemException if a system exception occurred
340            */
341            public static void addPasswordPolicyOrganizations(long passwordPolicyId,
342                    long[] organizationIds) throws RemoteException {
343                    try {
344                            OrganizationServiceUtil.addPasswordPolicyOrganizations(passwordPolicyId,
345                                    organizationIds);
346                    }
347                    catch (Exception e) {
348                            _log.error(e, e);
349    
350                            throw new RemoteException(e.getMessage());
351                    }
352            }
353    
354            /**
355            * Deletes the logo of the organization.
356            *
357            * @param organizationId the primary key of the organization
358            * @throws PortalException if an organization with the primary key could not
359            be found, if the organization's logo could not be found, or if
360            the user did not have permission to update the organization
361            * @throws SystemException if a system exception occurred
362            */
363            public static void deleteLogo(long organizationId)
364                    throws RemoteException {
365                    try {
366                            OrganizationServiceUtil.deleteLogo(organizationId);
367                    }
368                    catch (Exception e) {
369                            _log.error(e, e);
370    
371                            throw new RemoteException(e.getMessage());
372                    }
373            }
374    
375            /**
376            * Deletes the organization. The organization's associated resources and
377            * assets are also deleted.
378            *
379            * @param organizationId the primary key of the organization
380            * @throws PortalException if an organization with the primary key could not
381            be found, if the user did not have permission to delete the
382            organization, if the organization had a workflow in approved
383            status, or if the organization was a parent organization
384            * @throws SystemException if a system exception occurred
385            */
386            public static void deleteOrganization(long organizationId)
387                    throws RemoteException {
388                    try {
389                            OrganizationServiceUtil.deleteOrganization(organizationId);
390                    }
391                    catch (Exception e) {
392                            _log.error(e, e);
393    
394                            throw new RemoteException(e.getMessage());
395                    }
396            }
397    
398            /**
399            * Returns all the organizations which the user has permission to manage.
400            *
401            * @param actionId the permitted action
402            * @param max the maximum number of the organizations to be considered
403            * @return the organizations which the user has permission to manage
404            * @throws PortalException if a portal exception occurred
405            * @throws SystemException if a system exception occurred
406            * @deprecated As of 6.2.0, replaced by {@link #getOrganizations(long, long,
407            int, int)}
408            */
409            public static com.liferay.portal.model.OrganizationSoap[] getManageableOrganizations(
410                    java.lang.String actionId, int max) throws RemoteException {
411                    try {
412                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getManageableOrganizations(actionId,
413                                            max);
414    
415                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
416                    }
417                    catch (Exception e) {
418                            _log.error(e, e);
419    
420                            throw new RemoteException(e.getMessage());
421                    }
422            }
423    
424            /**
425            * Returns the organization with the primary key.
426            *
427            * @param organizationId the primary key of the organization
428            * @return the organization with the primary key
429            * @throws PortalException if an organization with the primary key could not
430            be found or if the user did not have permission to view the
431            organization
432            * @throws SystemException if a system exception occurred
433            */
434            public static com.liferay.portal.model.OrganizationSoap getOrganization(
435                    long organizationId) throws RemoteException {
436                    try {
437                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.getOrganization(organizationId);
438    
439                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
440                    }
441                    catch (Exception e) {
442                            _log.error(e, e);
443    
444                            throw new RemoteException(e.getMessage());
445                    }
446            }
447    
448            /**
449            * Returns the primary key of the organization with the name.
450            *
451            * @param companyId the primary key of the organization's company
452            * @param name the organization's name
453            * @return the primary key of the organization with the name, or
454            <code>0</code> if the organization could not be found
455            * @throws PortalException if the user did not have permission to view the
456            organization
457            * @throws SystemException if a system exception occurred
458            */
459            public static long getOrganizationId(long companyId, java.lang.String name)
460                    throws RemoteException {
461                    try {
462                            long returnValue = OrganizationServiceUtil.getOrganizationId(companyId,
463                                            name);
464    
465                            return returnValue;
466                    }
467                    catch (Exception e) {
468                            _log.error(e, e);
469    
470                            throw new RemoteException(e.getMessage());
471                    }
472            }
473    
474            /**
475            * Returns all the organizations belonging to the parent organization.
476            *
477            * @param companyId the primary key of the organizations' company
478            * @param parentOrganizationId the primary key of the organizations' parent
479            organization
480            * @return the organizations belonging to the parent organization
481            * @throws SystemException if a system exception occurred
482            */
483            public static com.liferay.portal.model.OrganizationSoap[] getOrganizations(
484                    long companyId, long parentOrganizationId) throws RemoteException {
485                    try {
486                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getOrganizations(companyId,
487                                            parentOrganizationId);
488    
489                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
490                    }
491                    catch (Exception e) {
492                            _log.error(e, e);
493    
494                            throw new RemoteException(e.getMessage());
495                    }
496            }
497    
498            /**
499            * Returns a range of all the organizations belonging to the parent
500            * organization.
501            *
502            * <p>
503            * Useful when paginating results. Returns a maximum of <code>end -
504            * start</code> instances. <code>start</code> and <code>end</code> are not
505            * primary keys, they are indexes in the result set. Thus, <code>0</code>
506            * refers to the first result in the set. Setting both <code>start</code>
507            * and <code>end</code> to {@link
508            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
509            * result set.
510            * </p>
511            *
512            * @param companyId the primary key of the organizations' company
513            * @param parentOrganizationId the primary key of the organizations' parent
514            organization
515            * @param start the lower bound of the range of organizations to return
516            * @param end the upper bound of the range of organizations to return (not
517            inclusive)
518            * @return the range of organizations belonging to the parent organization
519            * @throws SystemException if a system exception occurred
520            */
521            public static com.liferay.portal.model.OrganizationSoap[] getOrganizations(
522                    long companyId, long parentOrganizationId, int start, int end)
523                    throws RemoteException {
524                    try {
525                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getOrganizations(companyId,
526                                            parentOrganizationId, start, end);
527    
528                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
529                    }
530                    catch (Exception e) {
531                            _log.error(e, e);
532    
533                            throw new RemoteException(e.getMessage());
534                    }
535            }
536    
537            /**
538            * Returns the number of organizations belonging to the parent organization.
539            *
540            * @param companyId the primary key of the organizations' company
541            * @param parentOrganizationId the primary key of the organizations' parent
542            organization
543            * @return the number of organizations belonging to the parent organization
544            * @throws SystemException if a system exception occurred
545            */
546            public static int getOrganizationsCount(long companyId,
547                    long parentOrganizationId) throws RemoteException {
548                    try {
549                            int returnValue = OrganizationServiceUtil.getOrganizationsCount(companyId,
550                                            parentOrganizationId);
551    
552                            return returnValue;
553                    }
554                    catch (Exception e) {
555                            _log.error(e, e);
556    
557                            throw new RemoteException(e.getMessage());
558                    }
559            }
560    
561            /**
562            * Returns all the organizations associated with the user.
563            *
564            * @param userId the primary key of the user
565            * @return the organizations associated with the user
566            * @throws PortalException if a user with the primary key could not be found
567            * @throws SystemException if a system exception occurred
568            */
569            public static com.liferay.portal.model.OrganizationSoap[] getUserOrganizations(
570                    long userId) throws RemoteException {
571                    try {
572                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getUserOrganizations(userId);
573    
574                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
575                    }
576                    catch (Exception e) {
577                            _log.error(e, e);
578    
579                            throw new RemoteException(e.getMessage());
580                    }
581            }
582    
583            /**
584            * Sets the organizations in the group, removing and adding organizations to
585            * the group as necessary.
586            *
587            * @param groupId the primary key of the group
588            * @param organizationIds the primary keys of the organizations
589            * @throws PortalException if a group or organization with the primary key
590            could not be found or if the user did not have permission to
591            assign group members
592            * @throws SystemException if a system exception occurred
593            */
594            public static void setGroupOrganizations(long groupId,
595                    long[] organizationIds) throws RemoteException {
596                    try {
597                            OrganizationServiceUtil.setGroupOrganizations(groupId,
598                                    organizationIds);
599                    }
600                    catch (Exception e) {
601                            _log.error(e, e);
602    
603                            throw new RemoteException(e.getMessage());
604                    }
605            }
606    
607            /**
608            * Removes the organizations from the group.
609            *
610            * @param groupId the primary key of the group
611            * @param organizationIds the primary keys of the organizations
612            * @throws PortalException if a group or organization with the primary key
613            could not be found or if the user did not have permission to
614            assign group members
615            * @throws SystemException if a system exception occurred
616            */
617            public static void unsetGroupOrganizations(long groupId,
618                    long[] organizationIds) throws RemoteException {
619                    try {
620                            OrganizationServiceUtil.unsetGroupOrganizations(groupId,
621                                    organizationIds);
622                    }
623                    catch (Exception e) {
624                            _log.error(e, e);
625    
626                            throw new RemoteException(e.getMessage());
627                    }
628            }
629    
630            /**
631            * Removes the organizations from the password policy.
632            *
633            * @param passwordPolicyId the primary key of the password policy
634            * @param organizationIds the primary keys of the organizations
635            * @throws PortalException if a password policy or organization with the
636            primary key could not be found, or if the user did not have
637            permission to update the password policy
638            * @throws SystemException if a system exception occurred
639            */
640            public static void unsetPasswordPolicyOrganizations(long passwordPolicyId,
641                    long[] organizationIds) throws RemoteException {
642                    try {
643                            OrganizationServiceUtil.unsetPasswordPolicyOrganizations(passwordPolicyId,
644                                    organizationIds);
645                    }
646                    catch (Exception e) {
647                            _log.error(e, e);
648    
649                            throw new RemoteException(e.getMessage());
650                    }
651            }
652    
653            /**
654            * Updates the organization with additional parameters.
655            *
656            * @param organizationId the primary key of the organization
657            * @param parentOrganizationId the primary key of the organization's
658            parent organization
659            * @param name the organization's name
660            * @param type the organization's type
661            * @param recursable whether the permissions of the organization are to
662            be inherited by its suborganizations
663            * @param regionId the primary key of the organization's region
664            * @param countryId the primary key of the organization's country
665            * @param statusId the organization's workflow status
666            * @param comments the comments about the organization
667            * @param site whether the organization is to be associated with a main
668            site
669            * @param addresses the organization's addresses
670            * @param emailAddresses the organization's email addresses
671            * @param orgLabors the organization's hours of operation
672            * @param phones the organization's phone numbers
673            * @param websites the organization's websites
674            * @param serviceContext the service context to be applied (optionally
675            <code>null</code>). Can set asset category IDs and asset tag
676            names for the organization, and merge expando bridge
677            attributes for the organization.
678            * @return the organization
679            * @throws PortalException if an organization or parent organization
680            with the primary key could not be found, if the user did not
681            have permission to update the organization information, or if
682            the new information was invalid
683            * @throws SystemException if a system exception occurred
684            * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
685            long, String, String, long, long, int, String, boolean,
686            java.util.List, java.util.List, java.util.List,
687            java.util.List, java.util.List, ServiceContext)}
688            */
689            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
690                    long organizationId, long parentOrganizationId, java.lang.String name,
691                    java.lang.String type, boolean recursable, long regionId,
692                    long countryId, int statusId, java.lang.String comments, boolean site,
693                    com.liferay.portal.model.AddressSoap[] addresses,
694                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
695                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
696                    com.liferay.portal.model.PhoneSoap[] phones,
697                    com.liferay.portal.model.WebsiteSoap[] websites,
698                    com.liferay.portal.service.ServiceContext serviceContext)
699                    throws RemoteException {
700                    try {
701                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
702                                            parentOrganizationId, name, type, recursable, regionId,
703                                            countryId, statusId, comments, site,
704                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
705                                                    addresses),
706                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
707                                                    emailAddresses),
708                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
709                                                    orgLabors),
710                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
711                                                    phones),
712                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
713                                                    websites), serviceContext);
714    
715                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
716                    }
717                    catch (Exception e) {
718                            _log.error(e, e);
719    
720                            throw new RemoteException(e.getMessage());
721                    }
722            }
723    
724            /**
725            * Updates the organization.
726            *
727            * @param organizationId the primary key of the organization
728            * @param parentOrganizationId the primary key of the organization's
729            parent organization
730            * @param name the organization's name
731            * @param type the organization's type
732            * @param recursable whether permissions of the organization are to be
733            inherited by its suborganizations
734            * @param regionId the primary key of the organization's region
735            * @param countryId the primary key of the organization's country
736            * @param statusId the organization's workflow status
737            * @param comments the comments about the organization
738            * @param site whether the organization is to be associated with a main
739            site
740            * @param serviceContext the service context to be applied (optionally
741            <code>null</code>). Can set asset category IDs and asset tag
742            names for the organization, and merge expando bridge
743            attributes for the organization.
744            * @return the organization
745            * @throws PortalException if an organization or parent organization
746            with the primary key could not be found, if the user did not
747            have permission to update the organization, or if the new
748            information was invalid
749            * @throws SystemException if a system exception occurred
750            * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
751            long, String, String, long, long, int, String, boolean,
752            ServiceContext)}
753            */
754            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
755                    long organizationId, long parentOrganizationId, java.lang.String name,
756                    java.lang.String type, boolean recursable, long regionId,
757                    long countryId, int statusId, java.lang.String comments, boolean site,
758                    com.liferay.portal.service.ServiceContext serviceContext)
759                    throws RemoteException {
760                    try {
761                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
762                                            parentOrganizationId, name, type, recursable, regionId,
763                                            countryId, statusId, comments, site, serviceContext);
764    
765                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
766                    }
767                    catch (Exception e) {
768                            _log.error(e, e);
769    
770                            throw new RemoteException(e.getMessage());
771                    }
772            }
773    
774            /**
775            * Updates the organization with additional parameters.
776            *
777            * @param organizationId the primary key of the organization
778            * @param parentOrganizationId the primary key of the organization's parent
779            organization
780            * @param name the organization's name
781            * @param type the organization's type
782            * @param regionId the primary key of the organization's region
783            * @param countryId the primary key of the organization's country
784            * @param statusId the organization's workflow status
785            * @param comments the comments about the organization
786            * @param site whether the organization is to be associated with a main
787            site
788            * @param addresses the organization's addresses
789            * @param emailAddresses the organization's email addresses
790            * @param orgLabors the organization's hours of operation
791            * @param phones the organization's phone numbers
792            * @param websites the organization's websites
793            * @param serviceContext the service context to be applied (optionally
794            <code>null</code>). Can set asset category IDs and asset tag
795            names for the organization, and merge expando bridge attributes
796            for the organization.
797            * @return the organization
798            * @throws PortalException if an organization or parent organization with
799            the primary key could not be found, if the user did not have
800            permission to update the organization information, or if the new
801            information was invalid
802            * @throws SystemException if a system exception occurred
803            */
804            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
805                    long organizationId, long parentOrganizationId, java.lang.String name,
806                    java.lang.String type, long regionId, long countryId, int statusId,
807                    java.lang.String comments, boolean site,
808                    com.liferay.portal.model.AddressSoap[] addresses,
809                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
810                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
811                    com.liferay.portal.model.PhoneSoap[] phones,
812                    com.liferay.portal.model.WebsiteSoap[] websites,
813                    com.liferay.portal.service.ServiceContext serviceContext)
814                    throws RemoteException {
815                    try {
816                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
817                                            parentOrganizationId, name, type, regionId, countryId,
818                                            statusId, comments, site,
819                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
820                                                    addresses),
821                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
822                                                    emailAddresses),
823                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
824                                                    orgLabors),
825                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
826                                                    phones),
827                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
828                                                    websites), serviceContext);
829    
830                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
831                    }
832                    catch (Exception e) {
833                            _log.error(e, e);
834    
835                            throw new RemoteException(e.getMessage());
836                    }
837            }
838    
839            /**
840            * Updates the organization.
841            *
842            * @param organizationId the primary key of the organization
843            * @param parentOrganizationId the primary key of the organization's parent
844            organization
845            * @param name the organization's name
846            * @param type the organization's type
847            * @param regionId the primary key of the organization's region
848            * @param countryId the primary key of the organization's country
849            * @param statusId the organization's workflow status
850            * @param comments the comments about the organization
851            * @param site whether the organization is to be associated with a main
852            site
853            * @param serviceContext the service context to be applied (optionally
854            <code>null</code>). Can set asset category IDs and asset tag
855            names for the organization, and merge expando bridge attributes
856            for the organization.
857            * @return the organization
858            * @throws PortalException if an organization or parent organization with
859            the primary key could not be found, if the user did not have
860            permission to update the organization, or if the new information
861            was invalid
862            * @throws SystemException if a system exception occurred
863            */
864            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
865                    long organizationId, long parentOrganizationId, java.lang.String name,
866                    java.lang.String type, long regionId, long countryId, int statusId,
867                    java.lang.String comments, boolean site,
868                    com.liferay.portal.service.ServiceContext serviceContext)
869                    throws RemoteException {
870                    try {
871                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
872                                            parentOrganizationId, name, type, regionId, countryId,
873                                            statusId, comments, site, serviceContext);
874    
875                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
876                    }
877                    catch (Exception e) {
878                            _log.error(e, e);
879    
880                            throw new RemoteException(e.getMessage());
881                    }
882            }
883    
884            private static Log _log = LogFactoryUtil.getLog(OrganizationServiceSoap.class);
885    }