001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.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 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 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            */
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            * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long,
123            String, String, long, long, int, String, boolean, List, List,
124            List, List, List, ServiceContext)}
125            */
126            @Deprecated
127            public static com.liferay.portal.model.OrganizationSoap addOrganization(
128                    long parentOrganizationId, java.lang.String name,
129                    java.lang.String type, boolean recursable, long regionId,
130                    long countryId, long statusId, java.lang.String comments, boolean site,
131                    com.liferay.portal.model.AddressSoap[] addresses,
132                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
133                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
134                    com.liferay.portal.model.PhoneSoap[] phones,
135                    com.liferay.portal.model.WebsiteSoap[] websites,
136                    com.liferay.portal.service.ServiceContext serviceContext)
137                    throws RemoteException {
138                    try {
139                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
140                                            name, type, recursable, regionId, countryId, statusId,
141                                            comments, site,
142                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
143                                                    addresses),
144                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
145                                                    emailAddresses),
146                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
147                                                    orgLabors),
148                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
149                                                    phones),
150                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
151                                                    websites), serviceContext);
152    
153                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
154                    }
155                    catch (Exception e) {
156                            _log.error(e, e);
157    
158                            throw new RemoteException(e.getMessage());
159                    }
160            }
161    
162            /**
163            * Adds an organization.
164            *
165            * <p>
166            * This method handles the creation and bookkeeping of the organization
167            * including its resources, metadata, and internal data structures.
168            * </p>
169            *
170            * @param parentOrganizationId the primary key of the organization's
171            parent organization
172            * @param name the organization's name
173            * @param type the organization's type
174            * @param recursable whether the permissions of the organization are to
175            be inherited by its suborganizations
176            * @param regionId the primary key of the organization's region
177            * @param countryId the primary key of the organization's country
178            * @param statusId the organization's workflow status
179            * @param comments the comments about the organization
180            * @param site whether the organization is to be associated with a main
181            site
182            * @param serviceContext the service context to be applied (optionally
183            <code>null</code>). Can set asset category IDs, asset tag
184            names, and expando bridge attributes for the organization.
185            * @return the organization
186            * @throws PortalException if the parent organization with the primary
187            key could not be found, if the organization information was
188            invalid, or if the user did not have permission to add the
189            organization
190            * @deprecated As of 6.2.0, replaced by {@link #addOrganization(long,
191            String, String, long, long, int, String, boolean,
192            ServiceContext)}
193            */
194            @Deprecated
195            public static com.liferay.portal.model.OrganizationSoap addOrganization(
196                    long parentOrganizationId, java.lang.String name,
197                    java.lang.String type, boolean recursable, long regionId,
198                    long countryId, long statusId, java.lang.String comments, boolean site,
199                    com.liferay.portal.service.ServiceContext serviceContext)
200                    throws RemoteException {
201                    try {
202                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
203                                            name, type, recursable, regionId, countryId, statusId,
204                                            comments, site, serviceContext);
205    
206                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
207                    }
208                    catch (Exception e) {
209                            _log.error(e, e);
210    
211                            throw new RemoteException(e.getMessage());
212                    }
213            }
214    
215            /**
216            * Adds an organization with additional parameters.
217            *
218            * <p>
219            * This method handles the creation and bookkeeping of the organization
220            * including its resources, metadata, and internal data structures.
221            * </p>
222            *
223            * @param parentOrganizationId the primary key of the organization's parent
224            organization
225            * @param name the organization's name
226            * @param type the organization's type
227            * @param regionId the primary key of the organization's region
228            * @param countryId the primary key of the organization's country
229            * @param statusId the organization's workflow status
230            * @param comments the comments about the organization
231            * @param site whether the organization is to be associated with a main
232            site
233            * @param addresses the organization's addresses
234            * @param emailAddresses the organization's email addresses
235            * @param orgLabors the organization's hours of operation
236            * @param phones the organization's phone numbers
237            * @param websites the organization's websites
238            * @param serviceContext the service context to be applied (optionally
239            <code>null</code>). Can set asset category IDs, asset tag names,
240            and expando bridge attributes for the organization.
241            * @return the organization
242            * @throws PortalException if a parent organization with the primary key
243            could not be found, if the organization's information was
244            invalid, or if the user did not have permission to add the
245            organization
246            */
247            public static com.liferay.portal.model.OrganizationSoap addOrganization(
248                    long parentOrganizationId, java.lang.String name,
249                    java.lang.String type, long regionId, long countryId, long statusId,
250                    java.lang.String comments, boolean site,
251                    com.liferay.portal.model.AddressSoap[] addresses,
252                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
253                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
254                    com.liferay.portal.model.PhoneSoap[] phones,
255                    com.liferay.portal.model.WebsiteSoap[] websites,
256                    com.liferay.portal.service.ServiceContext serviceContext)
257                    throws RemoteException {
258                    try {
259                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
260                                            name, type, regionId, countryId, statusId, comments, site,
261                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
262                                                    addresses),
263                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
264                                                    emailAddresses),
265                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
266                                                    orgLabors),
267                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
268                                                    phones),
269                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
270                                                    websites), serviceContext);
271    
272                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
273                    }
274                    catch (Exception e) {
275                            _log.error(e, e);
276    
277                            throw new RemoteException(e.getMessage());
278                    }
279            }
280    
281            /**
282            * Adds an organization.
283            *
284            * <p>
285            * This method handles the creation and bookkeeping of the organization
286            * including its resources, metadata, and internal data structures.
287            * </p>
288            *
289            * @param parentOrganizationId the primary key of the organization's parent
290            organization
291            * @param name the organization's name
292            * @param type the organization's type
293            * @param regionId the primary key of the organization's region
294            * @param countryId the primary key of the organization's country
295            * @param statusId the organization's workflow status
296            * @param comments the comments about the organization
297            * @param site whether the organization is to be associated with a main
298            site
299            * @param serviceContext the service context to be applied (optionally
300            <code>null</code>). Can set asset category IDs, asset tag names,
301            and expando bridge attributes for the organization.
302            * @return the organization
303            * @throws PortalException if the parent organization with the primary key
304            could not be found, if the organization information was invalid,
305            or if the user did not have permission to add the organization
306            */
307            public static com.liferay.portal.model.OrganizationSoap addOrganization(
308                    long parentOrganizationId, java.lang.String name,
309                    java.lang.String type, long regionId, long countryId, long statusId,
310                    java.lang.String comments, boolean site,
311                    com.liferay.portal.service.ServiceContext serviceContext)
312                    throws RemoteException {
313                    try {
314                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.addOrganization(parentOrganizationId,
315                                            name, type, regionId, countryId, statusId, comments, site,
316                                            serviceContext);
317    
318                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
319                    }
320                    catch (Exception e) {
321                            _log.error(e, e);
322    
323                            throw new RemoteException(e.getMessage());
324                    }
325            }
326    
327            /**
328            * Assigns the password policy to the organizations, removing any other
329            * currently assigned password policies.
330            *
331            * @param passwordPolicyId the primary key of the password policy
332            * @param organizationIds the primary keys of the organizations
333            * @throws PortalException if the user did not have permission to update the
334            password policy
335            */
336            public static void addPasswordPolicyOrganizations(long passwordPolicyId,
337                    long[] organizationIds) throws RemoteException {
338                    try {
339                            OrganizationServiceUtil.addPasswordPolicyOrganizations(passwordPolicyId,
340                                    organizationIds);
341                    }
342                    catch (Exception e) {
343                            _log.error(e, e);
344    
345                            throw new RemoteException(e.getMessage());
346                    }
347            }
348    
349            /**
350            * Deletes the organization's logo.
351            *
352            * @param organizationId the primary key of the organization
353            * @throws PortalException if an organization with the primary key could not
354            be found, if the organization's logo could not be found, or if
355            the user did not have permission to update the organization
356            */
357            public static void deleteLogo(long organizationId)
358                    throws RemoteException {
359                    try {
360                            OrganizationServiceUtil.deleteLogo(organizationId);
361                    }
362                    catch (Exception e) {
363                            _log.error(e, e);
364    
365                            throw new RemoteException(e.getMessage());
366                    }
367            }
368    
369            /**
370            * Deletes the organization. The organization's associated resources and
371            * assets are also deleted.
372            *
373            * @param organizationId the primary key of the organization
374            * @throws PortalException if an organization with the primary key could not
375            be found, if the user did not have permission to delete the
376            organization, if the organization had a workflow in approved
377            status, or if the organization was a parent organization
378            */
379            public static void deleteOrganization(long organizationId)
380                    throws RemoteException {
381                    try {
382                            OrganizationServiceUtil.deleteOrganization(organizationId);
383                    }
384                    catch (Exception e) {
385                            _log.error(e, e);
386    
387                            throw new RemoteException(e.getMessage());
388                    }
389            }
390    
391            /**
392            * Returns the organization with the primary key.
393            *
394            * @param organizationId the primary key of the organization
395            * @return the organization with the primary key, or <code>null</code> if an
396            organization with the primary key could not be found or if the
397            user did not have permission to view the organization
398            * @throws PortalException if a portal exception occurred
399            */
400            public static com.liferay.portal.model.OrganizationSoap fetchOrganization(
401                    long organizationId) throws RemoteException {
402                    try {
403                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.fetchOrganization(organizationId);
404    
405                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
406                    }
407                    catch (Exception e) {
408                            _log.error(e, e);
409    
410                            throw new RemoteException(e.getMessage());
411                    }
412            }
413    
414            /**
415            * Returns all the organizations which the user has permission to manage.
416            *
417            * @param actionId the permitted action
418            * @param max the maximum number of the organizations to be considered
419            * @return the organizations which the user has permission to manage
420            * @throws PortalException if a portal exception occurred
421            * @deprecated As of 6.2.0, replaced by {@link #getOrganizations(long, long,
422            int, int)}
423            */
424            @Deprecated
425            public static com.liferay.portal.model.OrganizationSoap[] getManageableOrganizations(
426                    java.lang.String actionId, int max) throws RemoteException {
427                    try {
428                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getManageableOrganizations(actionId,
429                                            max);
430    
431                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
432                    }
433                    catch (Exception e) {
434                            _log.error(e, e);
435    
436                            throw new RemoteException(e.getMessage());
437                    }
438            }
439    
440            /**
441            * Returns the organization with the primary key.
442            *
443            * @param organizationId the primary key of the organization
444            * @return the organization with the primary key
445            * @throws PortalException if an organization with the primary key could not
446            be found or if the user did not have permission to view the
447            organization
448            */
449            public static com.liferay.portal.model.OrganizationSoap getOrganization(
450                    long organizationId) throws RemoteException {
451                    try {
452                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.getOrganization(organizationId);
453    
454                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
455                    }
456                    catch (Exception e) {
457                            _log.error(e, e);
458    
459                            throw new RemoteException(e.getMessage());
460                    }
461            }
462    
463            /**
464            * Returns the primary key of the organization with the name.
465            *
466            * @param companyId the primary key of the organization's company
467            * @param name the organization's name
468            * @return the primary key of the organization with the name, or
469            <code>0</code> if the organization could not be found
470            * @throws PortalException if the user did not have permission to view the
471            organization
472            */
473            public static long getOrganizationId(long companyId, java.lang.String name)
474                    throws RemoteException {
475                    try {
476                            long returnValue = OrganizationServiceUtil.getOrganizationId(companyId,
477                                            name);
478    
479                            return returnValue;
480                    }
481                    catch (Exception e) {
482                            _log.error(e, e);
483    
484                            throw new RemoteException(e.getMessage());
485                    }
486            }
487    
488            /**
489            * Returns all the organizations belonging to the parent organization.
490            *
491            * @param companyId the primary key of the organizations' company
492            * @param parentOrganizationId the primary key of the organizations' parent
493            organization
494            * @return the organizations belonging to the parent organization
495            */
496            public static com.liferay.portal.model.OrganizationSoap[] getOrganizations(
497                    long companyId, long parentOrganizationId) throws RemoteException {
498                    try {
499                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getOrganizations(companyId,
500                                            parentOrganizationId);
501    
502                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
503                    }
504                    catch (Exception e) {
505                            _log.error(e, e);
506    
507                            throw new RemoteException(e.getMessage());
508                    }
509            }
510    
511            /**
512            * Returns a range of all the organizations belonging to the parent
513            * organization.
514            *
515            * <p>
516            * Useful when paginating results. Returns a maximum of <code>end -
517            * start</code> instances. <code>start</code> and <code>end</code> are not
518            * primary keys, they are indexes in the result set. Thus, <code>0</code>
519            * refers to the first result in the set. Setting both <code>start</code>
520            * and <code>end</code> to {@link
521            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
522            * result set.
523            * </p>
524            *
525            * @param companyId the primary key of the organizations' company
526            * @param parentOrganizationId the primary key of the organizations' parent
527            organization
528            * @param start the lower bound of the range of organizations to return
529            * @param end the upper bound of the range of organizations to return (not
530            inclusive)
531            * @return the range of organizations belonging to the parent organization
532            */
533            public static com.liferay.portal.model.OrganizationSoap[] getOrganizations(
534                    long companyId, long parentOrganizationId, int start, int end)
535                    throws RemoteException {
536                    try {
537                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getOrganizations(companyId,
538                                            parentOrganizationId, start, end);
539    
540                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
541                    }
542                    catch (Exception e) {
543                            _log.error(e, e);
544    
545                            throw new RemoteException(e.getMessage());
546                    }
547            }
548    
549            /**
550            * Returns the number of organizations belonging to the parent organization.
551            *
552            * @param companyId the primary key of the organizations' company
553            * @param parentOrganizationId the primary key of the organizations' parent
554            organization
555            * @return the number of organizations belonging to the parent organization
556            */
557            public static int getOrganizationsCount(long companyId,
558                    long parentOrganizationId) throws RemoteException {
559                    try {
560                            int returnValue = OrganizationServiceUtil.getOrganizationsCount(companyId,
561                                            parentOrganizationId);
562    
563                            return returnValue;
564                    }
565                    catch (Exception e) {
566                            _log.error(e, e);
567    
568                            throw new RemoteException(e.getMessage());
569                    }
570            }
571    
572            /**
573            * Returns all the organizations with which the user is explicitly
574            * associated.
575            *
576            * <p>
577            * A user is considered to be <i>explicitly</i> associated with an
578            * organization if his account is individually created within the
579            * organization or if the user is later added as a member.
580            * </p>
581            *
582            * @param userId the primary key of the user
583            * @return the organizations with which the user is explicitly associated
584            * @throws PortalException if a user with the primary key could not be found
585            */
586            public static com.liferay.portal.model.OrganizationSoap[] getUserOrganizations(
587                    long userId) throws RemoteException {
588                    try {
589                            java.util.List<com.liferay.portal.model.Organization> returnValue = OrganizationServiceUtil.getUserOrganizations(userId);
590    
591                            return com.liferay.portal.model.OrganizationSoap.toSoapModels(returnValue);
592                    }
593                    catch (Exception e) {
594                            _log.error(e, e);
595    
596                            throw new RemoteException(e.getMessage());
597                    }
598            }
599    
600            /**
601            * Sets the organizations in the group, removing and adding organizations to
602            * the group as necessary.
603            *
604            * @param groupId the primary key of the group
605            * @param organizationIds the primary keys of the organizations
606            * @throws PortalException if a group or organization with the primary key
607            could not be found or if the user did not have permission to
608            assign group members
609            */
610            public static void setGroupOrganizations(long groupId,
611                    long[] organizationIds) throws RemoteException {
612                    try {
613                            OrganizationServiceUtil.setGroupOrganizations(groupId,
614                                    organizationIds);
615                    }
616                    catch (Exception e) {
617                            _log.error(e, e);
618    
619                            throw new RemoteException(e.getMessage());
620                    }
621            }
622    
623            /**
624            * Removes the organizations from the group.
625            *
626            * @param groupId the primary key of the group
627            * @param organizationIds the primary keys of the organizations
628            * @throws PortalException if a group or organization with the primary key
629            could not be found or if the user did not have permission to
630            assign group members
631            */
632            public static void unsetGroupOrganizations(long groupId,
633                    long[] organizationIds) throws RemoteException {
634                    try {
635                            OrganizationServiceUtil.unsetGroupOrganizations(groupId,
636                                    organizationIds);
637                    }
638                    catch (Exception e) {
639                            _log.error(e, e);
640    
641                            throw new RemoteException(e.getMessage());
642                    }
643            }
644    
645            /**
646            * Removes the organizations from the password policy.
647            *
648            * @param passwordPolicyId the primary key of the password policy
649            * @param organizationIds the primary keys of the organizations
650            * @throws PortalException if a password policy or organization with the
651            primary key could not be found, or if the user did not have
652            permission to update the password policy
653            */
654            public static void unsetPasswordPolicyOrganizations(long passwordPolicyId,
655                    long[] organizationIds) throws RemoteException {
656                    try {
657                            OrganizationServiceUtil.unsetPasswordPolicyOrganizations(passwordPolicyId,
658                                    organizationIds);
659                    }
660                    catch (Exception e) {
661                            _log.error(e, e);
662    
663                            throw new RemoteException(e.getMessage());
664                    }
665            }
666    
667            /**
668            * Updates the organization with additional parameters.
669            *
670            * @param organizationId the primary key of the organization
671            * @param parentOrganizationId the primary key of the organization's
672            parent organization
673            * @param name the organization's name
674            * @param type the organization's type
675            * @param recursable whether the permissions of the organization are to
676            be inherited by its suborganizations
677            * @param regionId the primary key of the organization's region
678            * @param countryId the primary key of the organization's country
679            * @param statusId the organization's workflow status
680            * @param comments the comments about the organization
681            * @param site whether the organization is to be associated with a main
682            site
683            * @param addresses the organization's addresses
684            * @param emailAddresses the organization's email addresses
685            * @param orgLabors the organization's hours of operation
686            * @param phones the organization's phone numbers
687            * @param websites the organization's websites
688            * @param serviceContext the service context to be applied (optionally
689            <code>null</code>). Can set asset category IDs and asset tag
690            names for the organization, and merge expando bridge
691            attributes for the organization.
692            * @return the organization
693            * @throws PortalException if an organization or parent organization
694            with the primary key could not be found, if the user did not
695            have permission to update the organization information, or if
696            the new information was invalid
697            * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
698            long, String, String, long, long, int, String, boolean,
699            byte[], boolean, List, List, List, List, List,
700            ServiceContext)}
701            */
702            @Deprecated
703            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
704                    long organizationId, long parentOrganizationId, java.lang.String name,
705                    java.lang.String type, boolean recursable, long regionId,
706                    long countryId, long statusId, java.lang.String comments, boolean site,
707                    com.liferay.portal.model.AddressSoap[] addresses,
708                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
709                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
710                    com.liferay.portal.model.PhoneSoap[] phones,
711                    com.liferay.portal.model.WebsiteSoap[] websites,
712                    com.liferay.portal.service.ServiceContext serviceContext)
713                    throws RemoteException {
714                    try {
715                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
716                                            parentOrganizationId, name, type, recursable, regionId,
717                                            countryId, statusId, comments, site,
718                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
719                                                    addresses),
720                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
721                                                    emailAddresses),
722                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
723                                                    orgLabors),
724                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
725                                                    phones),
726                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
727                                                    websites), serviceContext);
728    
729                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
730                    }
731                    catch (Exception e) {
732                            _log.error(e, e);
733    
734                            throw new RemoteException(e.getMessage());
735                    }
736            }
737    
738            /**
739            * Updates the organization.
740            *
741            * @param organizationId the primary key of the organization
742            * @param parentOrganizationId the primary key of the organization's
743            parent organization
744            * @param name the organization's name
745            * @param type the organization's type
746            * @param recursable whether permissions of the organization are to be
747            inherited by its suborganizations
748            * @param regionId the primary key of the organization's region
749            * @param countryId the primary key of the organization's country
750            * @param statusId the organization's workflow status
751            * @param comments the comments about the organization
752            * @param site whether the organization is to be associated with a main
753            site
754            * @param serviceContext the service context to be applied (optionally
755            <code>null</code>). Can set asset category IDs and asset tag
756            names for the organization, and merge expando bridge
757            attributes for the organization.
758            * @return the organization
759            * @throws PortalException if an organization or parent organization
760            with the primary key could not be found, if the user did not
761            have permission to update the organization, or if the new
762            information was invalid
763            * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
764            long, String, String, long, long, int, String, boolean,
765            ServiceContext)}
766            */
767            @Deprecated
768            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
769                    long organizationId, long parentOrganizationId, java.lang.String name,
770                    java.lang.String type, boolean recursable, long regionId,
771                    long countryId, long statusId, java.lang.String comments, boolean site,
772                    com.liferay.portal.service.ServiceContext serviceContext)
773                    throws RemoteException {
774                    try {
775                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
776                                            parentOrganizationId, name, type, recursable, regionId,
777                                            countryId, statusId, comments, site, serviceContext);
778    
779                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
780                    }
781                    catch (Exception e) {
782                            _log.error(e, e);
783    
784                            throw new RemoteException(e.getMessage());
785                    }
786            }
787    
788            /**
789            * Updates the organization with additional parameters.
790            *
791            * @param organizationId the primary key of the organization
792            * @param parentOrganizationId the primary key of the organization's parent
793            organization
794            * @param name the organization's name
795            * @param type the organization's type
796            * @param regionId the primary key of the organization's region
797            * @param countryId the primary key of the organization's country
798            * @param statusId the organization's workflow status
799            * @param comments the comments about the organization
800            * @param logo whether to update the ogranization's logo
801            * @param logoBytes the new logo image data
802            * @param site whether the organization is to be associated with a main
803            site
804            * @param addresses the organization's addresses
805            * @param emailAddresses the organization's email addresses
806            * @param orgLabors the organization's hours of operation
807            * @param phones the organization's phone numbers
808            * @param websites the organization's websites
809            * @param serviceContext the service context to be applied (optionally
810            <code>null</code>). Can set asset category IDs and asset tag
811            names for the organization, and merge expando bridge attributes
812            for the organization.
813            * @return the organization
814            * @throws PortalException if an organization or parent organization with
815            the primary key could not be found, if the user did not have
816            permission to update the organization information, or if the new
817            information was invalid
818            */
819            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
820                    long organizationId, long parentOrganizationId, java.lang.String name,
821                    java.lang.String type, long regionId, long countryId, long statusId,
822                    java.lang.String comments, boolean logo, byte[] logoBytes,
823                    boolean site, com.liferay.portal.model.AddressSoap[] addresses,
824                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
825                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
826                    com.liferay.portal.model.PhoneSoap[] phones,
827                    com.liferay.portal.model.WebsiteSoap[] websites,
828                    com.liferay.portal.service.ServiceContext serviceContext)
829                    throws RemoteException {
830                    try {
831                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
832                                            parentOrganizationId, name, type, regionId, countryId,
833                                            statusId, comments, logo, logoBytes, site,
834                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
835                                                    addresses),
836                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
837                                                    emailAddresses),
838                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
839                                                    orgLabors),
840                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
841                                                    phones),
842                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
843                                                    websites), serviceContext);
844    
845                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
846                    }
847                    catch (Exception e) {
848                            _log.error(e, e);
849    
850                            throw new RemoteException(e.getMessage());
851                    }
852            }
853    
854            /**
855            * Updates the organization with additional parameters.
856            *
857            * @param organizationId the primary key of the organization
858            * @param parentOrganizationId the primary key of the organization's
859            parent organization
860            * @param name the organization's name
861            * @param type the organization's type
862            * @param regionId the primary key of the organization's region
863            * @param countryId the primary key of the organization's country
864            * @param statusId the organization's workflow status
865            * @param comments the comments about the organization
866            * @param site whether the organization is to be associated with a main
867            site
868            * @param addresses the organization's addresses
869            * @param emailAddresses the organization's email addresses
870            * @param orgLabors the organization's hours of operation
871            * @param phones the organization's phone numbers
872            * @param websites the organization's websites
873            * @param serviceContext the service context to be applied (optionally
874            <code>null</code>). Can set asset category IDs and asset tag
875            names for the organization, and merge expando bridge
876            attributes for the organization.
877            * @return the organization
878            * @throws PortalException if an organization or parent organization
879            with the primary key could not be found, if the user did not
880            have permission to update the organization information, or if
881            the new information was invalid
882            * @deprecated As of 7.0.0, replaced by {@link #updateOrganization(long,
883            long, String, String, long, long, int, String, boolean,
884            byte[], boolean, List, List, List, List, List,
885            ServiceContext)}
886            */
887            @Deprecated
888            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
889                    long organizationId, long parentOrganizationId, java.lang.String name,
890                    java.lang.String type, long regionId, long countryId, long statusId,
891                    java.lang.String comments, boolean site,
892                    com.liferay.portal.model.AddressSoap[] addresses,
893                    com.liferay.portal.model.EmailAddressSoap[] emailAddresses,
894                    com.liferay.portal.model.OrgLaborSoap[] orgLabors,
895                    com.liferay.portal.model.PhoneSoap[] phones,
896                    com.liferay.portal.model.WebsiteSoap[] websites,
897                    com.liferay.portal.service.ServiceContext serviceContext)
898                    throws RemoteException {
899                    try {
900                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
901                                            parentOrganizationId, name, type, regionId, countryId,
902                                            statusId, comments, site,
903                                            com.liferay.portal.model.impl.AddressModelImpl.toModels(
904                                                    addresses),
905                                            com.liferay.portal.model.impl.EmailAddressModelImpl.toModels(
906                                                    emailAddresses),
907                                            com.liferay.portal.model.impl.OrgLaborModelImpl.toModels(
908                                                    orgLabors),
909                                            com.liferay.portal.model.impl.PhoneModelImpl.toModels(
910                                                    phones),
911                                            com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
912                                                    websites), serviceContext);
913    
914                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
915                    }
916                    catch (Exception e) {
917                            _log.error(e, e);
918    
919                            throw new RemoteException(e.getMessage());
920                    }
921            }
922    
923            /**
924            * Updates the organization.
925            *
926            * @param organizationId the primary key of the organization
927            * @param parentOrganizationId the primary key of the organization's parent
928            organization
929            * @param name the organization's name
930            * @param type the organization's type
931            * @param regionId the primary key of the organization's region
932            * @param countryId the primary key of the organization's country
933            * @param statusId the organization's workflow status
934            * @param comments the comments about the organization
935            * @param site whether the organization is to be associated with a main
936            site
937            * @param serviceContext the service context to be applied (optionally
938            <code>null</code>). Can set asset category IDs and asset tag
939            names for the organization, and merge expando bridge attributes
940            for the organization.
941            * @return the organization
942            * @throws PortalException if an organization or parent organization with
943            the primary key could not be found, if the user did not have
944            permission to update the organization, or if the new information
945            was invalid
946            */
947            public static com.liferay.portal.model.OrganizationSoap updateOrganization(
948                    long organizationId, long parentOrganizationId, java.lang.String name,
949                    java.lang.String type, long regionId, long countryId, long statusId,
950                    java.lang.String comments, boolean site,
951                    com.liferay.portal.service.ServiceContext serviceContext)
952                    throws RemoteException {
953                    try {
954                            com.liferay.portal.model.Organization returnValue = OrganizationServiceUtil.updateOrganization(organizationId,
955                                            parentOrganizationId, name, type, regionId, countryId,
956                                            statusId, comments, site, serviceContext);
957    
958                            return com.liferay.portal.model.OrganizationSoap.toSoapModel(returnValue);
959                    }
960                    catch (Exception e) {
961                            _log.error(e, e);
962    
963                            throw new RemoteException(e.getMessage());
964                    }
965            }
966    
967            private static Log _log = LogFactoryUtil.getLog(OrganizationServiceSoap.class);
968    }