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