001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link OrganizationLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       OrganizationLocalService
024     * @generated
025     */
026    public class OrganizationLocalServiceWrapper implements OrganizationLocalService,
027            ServiceWrapper<OrganizationLocalService> {
028            public OrganizationLocalServiceWrapper(
029                    OrganizationLocalService organizationLocalService) {
030                    _organizationLocalService = organizationLocalService;
031            }
032    
033            /**
034            * Adds the organization to the database. Also notifies the appropriate model listeners.
035            *
036            * @param organization the organization
037            * @return the organization that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.Organization addOrganization(
041                    com.liferay.portal.model.Organization organization)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _organizationLocalService.addOrganization(organization);
044            }
045    
046            /**
047            * Creates a new organization with the primary key. Does not add the organization to the database.
048            *
049            * @param organizationId the primary key for the new organization
050            * @return the new organization
051            */
052            public com.liferay.portal.model.Organization createOrganization(
053                    long organizationId) {
054                    return _organizationLocalService.createOrganization(organizationId);
055            }
056    
057            /**
058            * Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param organizationId the primary key of the organization
061            * @return the organization that was removed
062            * @throws PortalException if a organization with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public com.liferay.portal.model.Organization deleteOrganization(
066                    long organizationId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _organizationLocalService.deleteOrganization(organizationId);
070            }
071    
072            /**
073            * Deletes the organization from the database. Also notifies the appropriate model listeners.
074            *
075            * @param organization the organization
076            * @return the organization that was removed
077            * @throws PortalException
078            * @throws SystemException if a system exception occurred
079            */
080            public com.liferay.portal.model.Organization deleteOrganization(
081                    com.liferay.portal.model.Organization organization)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return _organizationLocalService.deleteOrganization(organization);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _organizationLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _organizationLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _organizationLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _organizationLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _organizationLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portal.model.Organization fetchOrganization(
163                    long organizationId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _organizationLocalService.fetchOrganization(organizationId);
166            }
167    
168            /**
169            * Returns the organization with the primary key.
170            *
171            * @param organizationId the primary key of the organization
172            * @return the organization
173            * @throws PortalException if a organization with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portal.model.Organization getOrganization(
177                    long organizationId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _organizationLocalService.getOrganization(organizationId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _organizationLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns a range of all the organizations.
192            *
193            * <p>
194            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
195            * </p>
196            *
197            * @param start the lower bound of the range of organizations
198            * @param end the upper bound of the range of organizations (not inclusive)
199            * @return the range of organizations
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _organizationLocalService.getOrganizations(start, end);
206            }
207    
208            /**
209            * Returns the number of organizations.
210            *
211            * @return the number of organizations
212            * @throws SystemException if a system exception occurred
213            */
214            public int getOrganizationsCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _organizationLocalService.getOrganizationsCount();
217            }
218    
219            /**
220            * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param organization the organization
223            * @return the organization that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portal.model.Organization updateOrganization(
227                    com.liferay.portal.model.Organization organization)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _organizationLocalService.updateOrganization(organization);
230            }
231    
232            /**
233            * Returns the Spring bean ID for this bean.
234            *
235            * @return the Spring bean ID for this bean
236            */
237            public java.lang.String getBeanIdentifier() {
238                    return _organizationLocalService.getBeanIdentifier();
239            }
240    
241            /**
242            * Sets the Spring bean ID for this bean.
243            *
244            * @param beanIdentifier the Spring bean ID for this bean
245            */
246            public void setBeanIdentifier(java.lang.String beanIdentifier) {
247                    _organizationLocalService.setBeanIdentifier(beanIdentifier);
248            }
249    
250            /**
251            * Adds the organizations to the group.
252            *
253            * @param groupId the primary key of the group
254            * @param organizationIds the primary keys of the organizations
255            * @throws PortalException if a group or organization with the primary key
256            could not be found
257            * @throws SystemException if a system exception occurred
258            */
259            public void addGroupOrganizations(long groupId, long[] organizationIds)
260                    throws com.liferay.portal.kernel.exception.PortalException,
261                            com.liferay.portal.kernel.exception.SystemException {
262                    _organizationLocalService.addGroupOrganizations(groupId, organizationIds);
263            }
264    
265            /**
266            * Adds an organization.
267            *
268            * <p>
269            * This method handles the creation and bookkeeping of the organization
270            * including its resources, metadata, and internal data structures. It is
271            * not necessary to make a subsequent call to {@link
272            * #addOrganizationResources(long, Organization)}.
273            * </p>
274            *
275            * @param userId the primary key of the creator/owner of the organization
276            * @param parentOrganizationId the primary key of the organization's parent
277            organization
278            * @param name the organization's name
279            * @param type the organization's type
280            * @param recursable whether the permissions of the organization are to be
281            inherited by its sub-organizations
282            * @param regionId the primary key of the organization's region
283            * @param countryId the primary key of the organization's country
284            * @param statusId the organization's workflow status
285            * @param comments the comments about the organization
286            * @param site whether the organization is to be associated with a main
287            site
288            * @param serviceContext the organization's service context (optionally
289            <code>null</code>). Can set asset category IDs, asset tag names,
290            and expando bridge attributes for the organization.
291            * @return the organization
292            * @throws PortalException if a creator or parent organization with the
293            primary key could not be found or if the organization's
294            information was invalid
295            * @throws SystemException if a system exception occurred
296            */
297            public com.liferay.portal.model.Organization addOrganization(long userId,
298                    long parentOrganizationId, java.lang.String name,
299                    java.lang.String type, boolean recursable, long regionId,
300                    long countryId, int statusId, java.lang.String comments, boolean site,
301                    com.liferay.portal.service.ServiceContext serviceContext)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    return _organizationLocalService.addOrganization(userId,
305                            parentOrganizationId, name, type, recursable, regionId, countryId,
306                            statusId, comments, site, serviceContext);
307            }
308    
309            /**
310            * Adds a resource for each type of permission available on the
311            * organization.
312            *
313            * @param userId the primary key of the creator/owner of the organization
314            * @param organization the organization
315            * @throws PortalException if a portal exception occurred
316            * @throws SystemException if a system exception occurred
317            */
318            public void addOrganizationResources(long userId,
319                    com.liferay.portal.model.Organization organization)
320                    throws com.liferay.portal.kernel.exception.PortalException,
321                            com.liferay.portal.kernel.exception.SystemException {
322                    _organizationLocalService.addOrganizationResources(userId, organization);
323            }
324    
325            /**
326            * Assigns the password policy to the organizations, removing any other
327            * currently assigned password policies.
328            *
329            * @param passwordPolicyId the primary key of the password policy
330            * @param organizationIds the primary keys of the organizations
331            * @throws SystemException if a system exception occurred
332            */
333            public void addPasswordPolicyOrganizations(long passwordPolicyId,
334                    long[] organizationIds)
335                    throws com.liferay.portal.kernel.exception.SystemException {
336                    _organizationLocalService.addPasswordPolicyOrganizations(passwordPolicyId,
337                            organizationIds);
338            }
339    
340            /**
341            * Deletes the logo of the organization.
342            *
343            * @param organizationId the primary key of the organization
344            * @throws PortalException if an organization or parent organization with
345            the primary key could not be found or if the organization's logo
346            could not be found
347            * @throws SystemException if a system exception occurred
348            */
349            public void deleteLogo(long organizationId)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _organizationLocalService.deleteLogo(organizationId);
353            }
354    
355            /**
356            * Returns all the organizations belonging to the group.
357            *
358            * @param groupId the primary key of the group
359            * @return the organizations belonging to the group
360            * @throws SystemException if a system exception occurred
361            */
362            public java.util.List<com.liferay.portal.model.Organization> getGroupOrganizations(
363                    long groupId)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return _organizationLocalService.getGroupOrganizations(groupId);
366            }
367    
368            /**
369            * Returns the organization with the name.
370            *
371            * @param companyId the primary key of the organization's company
372            * @param name the organization's name
373            * @return the organization with the name
374            * @throws PortalException if the organization with the name could not be
375            found
376            * @throws SystemException if a system exception occurred
377            */
378            public com.liferay.portal.model.Organization getOrganization(
379                    long companyId, java.lang.String name)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return _organizationLocalService.getOrganization(companyId, name);
383            }
384    
385            /**
386            * Returns the primary key of the organization with the name.
387            *
388            * @param companyId the primary key of the organization's company
389            * @param name the organization's name
390            * @return the primary key of the organization with the name, or
391            <code>0</code> if the organization could not be found
392            * @throws SystemException if a system exception occurred
393            */
394            public long getOrganizationId(long companyId, java.lang.String name)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _organizationLocalService.getOrganizationId(companyId, name);
397            }
398    
399            /**
400            * Returns all the organizations belonging to the parent organization.
401            *
402            * @param companyId the primary key of the organization's company
403            * @param parentOrganizationId the primary key of the organization's parent
404            organization
405            * @return the organizations belonging to the parent organization
406            * @throws SystemException if a system exception occurred
407            */
408            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
409                    long companyId, long parentOrganizationId)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _organizationLocalService.getOrganizations(companyId,
412                            parentOrganizationId);
413            }
414    
415            /**
416            * Returns a range of all the organizations belonging to the parent
417            * organization.
418            *
419            * <p>
420            * Useful when paginating results. Returns a maximum of <code>end -
421            * start</code> instances. <code>start</code> and <code>end</code> are not
422            * primary keys, they are indexes in the result set. Thus, <code>0</code>
423            * refers to the first result in the set. Setting both <code>start</code>
424            * and <code>end</code> to {@link
425            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
426            * result set.
427            * </p>
428            *
429            * @param companyId the primary key of the organization's company
430            * @param parentOrganizationId the primary key of the organization's parent
431            organization
432            * @param start the lower bound of the range of organizations to return
433            * @param end the upper bound of the range of organizations to return (not
434            inclusive)
435            * @return the range of organizations belonging to the parent organization
436            * @throws SystemException if a system exception occurred
437            * @see com.liferay.portal.service.persistence.OrganizationPersistence#findByC_P(
438            long, long, int, int)
439            */
440            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
441                    long companyId, long parentOrganizationId, int start, int end)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return _organizationLocalService.getOrganizations(companyId,
444                            parentOrganizationId, start, end);
445            }
446    
447            /**
448            * Returns the organizations with the primary keys.
449            *
450            * @param organizationIds the primary keys of the organizations
451            * @return the organizations with the primary keys
452            * @throws PortalException if any one of the organizations could not be
453            found
454            * @throws SystemException if a system exception occurred
455            */
456            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
457                    long[] organizationIds)
458                    throws com.liferay.portal.kernel.exception.PortalException,
459                            com.liferay.portal.kernel.exception.SystemException {
460                    return _organizationLocalService.getOrganizations(organizationIds);
461            }
462    
463            /**
464            * Returns the number of organizations belonging to the parent organization.
465            *
466            * @param companyId the primary key of the organization's company
467            * @param parentOrganizationId the primary key of the organization's parent
468            organization
469            * @return the number of organizations belonging to the parent organization
470            * @throws SystemException if a system exception occurred
471            */
472            public int getOrganizationsCount(long companyId, long parentOrganizationId)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return _organizationLocalService.getOrganizationsCount(companyId,
475                            parentOrganizationId);
476            }
477    
478            /**
479            * Returns the parent organizations in order by closest ancestor. The list
480            * starts with the organization itself.
481            *
482            * @param organizationId the primary key of the organization
483            * @return the parent organizations in order by closest ancestor
484            * @throws PortalException if an organization with the primary key could not
485            be found
486            * @throws SystemException if a system exception occurred
487            */
488            public java.util.List<com.liferay.portal.model.Organization> getParentOrganizations(
489                    long organizationId)
490                    throws com.liferay.portal.kernel.exception.PortalException,
491                            com.liferay.portal.kernel.exception.SystemException {
492                    return _organizationLocalService.getParentOrganizations(organizationId);
493            }
494    
495            /**
496            * Returns the sub-organizations of the organizations.
497            *
498            * @param organizations the organizations from which to get
499            sub-organizations
500            * @return the sub-organizations of the organizations
501            * @throws SystemException if a system exception occurred
502            */
503            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations(
504                    java.util.List<com.liferay.portal.model.Organization> organizations)
505                    throws com.liferay.portal.kernel.exception.SystemException {
506                    return _organizationLocalService.getSuborganizations(organizations);
507            }
508    
509            /**
510            * Returns the intersection of <code>allOrganizations</code> and
511            * <code>availableOrganizations</code>.
512            *
513            * @param allOrganizations the organizations to check for availability
514            * @param availableOrganizations the available organizations
515            * @return the intersection of <code>allOrganizations</code> and
516            <code>availableOrganizations</code>
517            */
518            public java.util.List<com.liferay.portal.model.Organization> getSubsetOrganizations(
519                    java.util.List<com.liferay.portal.model.Organization> allOrganizations,
520                    java.util.List<com.liferay.portal.model.Organization> availableOrganizations) {
521                    return _organizationLocalService.getSubsetOrganizations(allOrganizations,
522                            availableOrganizations);
523            }
524    
525            /**
526            * Returns all the organizations associated with the user.
527            *
528            * @param userId the primary key of the user
529            * @return the organizations associated with the user
530            * @throws PortalException if a user with the primary key could not be found
531            * @throws SystemException if a system exception occurred
532            */
533            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
534                    long userId)
535                    throws com.liferay.portal.kernel.exception.PortalException,
536                            com.liferay.portal.kernel.exception.SystemException {
537                    return _organizationLocalService.getUserOrganizations(userId);
538            }
539    
540            /**
541            * Returns all the organizations associated with the user. If
542            * includeAdministrative is <code>true</code>, the result includes those
543            * organizations that are not directly associated to the user but he is an
544            * administrator or an owner of the organization.
545            *
546            * @param userId the primary key of the user
547            * @param includeAdministrative whether to includes organizations that are
548            indirectly associated to the user because he is an administrator
549            or an owner of the organization
550            * @return the organizations associated with the user
551            * @throws PortalException if a user with the primary key could not be found
552            * @throws SystemException if a system exception occurred
553            */
554            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
555                    long userId, boolean includeAdministrative)
556                    throws com.liferay.portal.kernel.exception.PortalException,
557                            com.liferay.portal.kernel.exception.SystemException {
558                    return _organizationLocalService.getUserOrganizations(userId,
559                            includeAdministrative);
560            }
561    
562            /**
563            * Returns a range of all the organizations associated with the user.
564            *
565            * <p>
566            * Useful when paginating results. Returns a maximum of <code>end -
567            * start</code> instances. <code>start</code> and <code>end</code> are not
568            * primary keys, they are indexes in the result set. Thus, <code>0</code>
569            * refers to the first result in the set. Setting both <code>start</code>
570            * and <code>end</code> to {@link
571            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
572            * result set.
573            * </p>
574            *
575            * @param userId the primary key of the user
576            * @param start the lower bound of the range of organizations to return
577            * @param end the upper bound of the range of organizations to return (not
578            inclusive)
579            * @return the range organizations associated with the user
580            * @throws PortalException if a user with the primary key could not be found
581            * @throws SystemException if a system exception occurred
582            */
583            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
584                    long userId, int start, int end)
585                    throws com.liferay.portal.kernel.exception.PortalException,
586                            com.liferay.portal.kernel.exception.SystemException {
587                    return _organizationLocalService.getUserOrganizations(userId, start, end);
588            }
589    
590            /**
591            * Returns the number of organizations associated with the user.
592            *
593            * @param userId the primary key of the user
594            * @return the number of organizations associated with the user
595            * @throws SystemException if a system exception occurred
596            */
597            public int getUserOrganizationsCount(long userId)
598                    throws com.liferay.portal.kernel.exception.SystemException {
599                    return _organizationLocalService.getUserOrganizationsCount(userId);
600            }
601    
602            /**
603            * Returns <code>true</code> if the organization belongs to the group.
604            *
605            * @param groupId the primary key of the group
606            * @param organizationId the primary key of the organization
607            * @return <code>true</code> if the organization belongs to the group;
608            <code>false</code> otherwise
609            * @throws SystemException if a system exception occurred
610            */
611            public boolean hasGroupOrganization(long groupId, long organizationId)
612                    throws com.liferay.portal.kernel.exception.SystemException {
613                    return _organizationLocalService.hasGroupOrganization(groupId,
614                            organizationId);
615            }
616    
617            /**
618            * Returns <code>true</code> if the password policy has been assigned to the
619            * organization.
620            *
621            * @param passwordPolicyId the primary key of the password policy
622            * @param organizationId the primary key of the organization
623            * @return <code>true</code> if the password policy has been assigned to the
624            organization; <code>false</code> otherwise
625            * @throws SystemException if a system exception occurred
626            */
627            public boolean hasPasswordPolicyOrganization(long passwordPolicyId,
628                    long organizationId)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return _organizationLocalService.hasPasswordPolicyOrganization(passwordPolicyId,
631                            organizationId);
632            }
633    
634            /**
635            * Returns <code>true</code> if the user is a member of the organization.
636            * This method is usually called to determine if the user has view access to
637            * a resource belonging to the organization.
638            *
639            * @param userId the primary key of the user
640            * @param organizationId the primary key of the organization
641            * @return <code>true</code> if the user has access to the organization;
642            <code>false</code> otherwise
643            * @throws SystemException if a system exception occurred
644            */
645            public boolean hasUserOrganization(long userId, long organizationId)
646                    throws com.liferay.portal.kernel.exception.SystemException {
647                    return _organizationLocalService.hasUserOrganization(userId,
648                            organizationId);
649            }
650    
651            /**
652            * Returns <code>true</code> if the user is a member of the organization,
653            * optionally focusing on sub-organizations or the specified organization.
654            * This method is usually called to determine if the user has view access to
655            * a resource belonging to the organization.
656            *
657            * <p>
658            *
659            * <ol>
660            * <li>
661            * If <code>inheritSuborganizations=<code>false</code></code>:
662            * the method checks whether the user belongs to the organization specified
663            * by <code>organizationId</code>. The parameter
664            * <code>includeSpecifiedOrganization</code> is ignored.
665            * </li>
666            * <li>
667            * The parameter <code>includeSpecifiedOrganization</code> is
668            * ignored unless <code>inheritSuborganizations</code> is also
669            * <code>true</code>.
670            * </li>
671            * <li>
672            * If <code>inheritSuborganizations=<code>true</code></code> and
673            * <code>includeSpecifiedOrganization=<code>false</code></code>: the method
674            * checks
675            * whether the user belongs to one of the child organizations of the one
676            * specified by <code>organizationId</code>.
677            * </li>
678            * <li>
679            * If <code>inheritSuborganizations=<code>true</code></code> and
680            * <code>includeSpecifiedOrganization=<code>true</code></code>: the method
681            * checks whether
682            * the user belongs to the organization specified by
683            * <code>organizationId</code> or any of
684            * its child organizations.
685            * </li>
686            * </ol>
687            *
688            * <p>
689            *
690            * @param userId the primary key of the organization's user
691            * @param organizationId the primary key of the organization
692            * @param inheritSuborganizations if <code>true</code> sub-organizations
693            are considered in the determination
694            * @param includeSpecifiedOrganization if <code>true</code> the
695            organization specified by <code>organizationId</code> is
696            considered in the determination
697            * @return <code>true</code> if the user has access to the organization;
698            <code>false</code> otherwise
699            * @throws PortalException if an organization with the primary key could not
700            be found
701            * @throws SystemException if a system exception occurred
702            * @see com.liferay.portal.service.persistence.OrganizationFinder
703            */
704            public boolean hasUserOrganization(long userId, long organizationId,
705                    boolean inheritSuborganizations, boolean includeSpecifiedOrganization)
706                    throws com.liferay.portal.kernel.exception.PortalException,
707                            com.liferay.portal.kernel.exception.SystemException {
708                    return _organizationLocalService.hasUserOrganization(userId,
709                            organizationId, inheritSuborganizations,
710                            includeSpecifiedOrganization);
711            }
712    
713            /**
714            * Rebuilds the organizations tree.
715            *
716            * <p>
717            * Only call this method if the tree has become stale through operations
718            * other than normal CRUD. Under normal circumstances the tree is
719            * automatically rebuilt whenever necessary.
720            * </p>
721            *
722            * @param companyId the primary key of the organization's company
723            * @throws PortalException if an organization with the primary key could not
724            be found
725            * @throws SystemException if a system exception occurred
726            */
727            public void rebuildTree(long companyId)
728                    throws com.liferay.portal.kernel.exception.PortalException,
729                            com.liferay.portal.kernel.exception.SystemException {
730                    _organizationLocalService.rebuildTree(companyId);
731            }
732    
733            /**
734            * Returns a range of all the organizations of the company.
735            *
736            * <p>
737            * Useful when paginating results. Returns a maximum of <code>end -
738            * start</code> instances. <code>start</code> and <code>end</code> are not
739            * primary keys, they are indexes in the result set. Thus, <code>0</code>
740            * refers to the first result in the set. Setting both <code>start</code>
741            * and <code>end</code> to {@link
742            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
743            * result set.
744            * </p>
745            *
746            * @param companyId the primary key of the company
747            * @param params the finder parameters (optionally <code>null</code>). For
748            more information see {@link
749            com.liferay.portlet.usersadmin.util.OrganizationIndexer}
750            * @param start the lower bound of the range of organizations to return
751            * @param end the upper bound of the range of organizations to return (not
752            inclusive)
753            * @return the range of all the organizations of the company
754            * @throws SystemException if a system exception occurred
755            */
756            public java.util.List<com.liferay.portal.model.Organization> search(
757                    long companyId,
758                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
759                    int start, int end)
760                    throws com.liferay.portal.kernel.exception.SystemException {
761                    return _organizationLocalService.search(companyId, params, start, end);
762            }
763    
764            /**
765            * Returns an ordered range of all the organizations that match the
766            * keywords, using the indexer. It is preferable to use this method instead
767            * of the non-indexed version whenever possible for performance reasons.
768            *
769            * <p>
770            * Useful when paginating results. Returns a maximum of <code>end -
771            * start</code> instances. <code>start</code> and <code>end</code> are not
772            * primary keys, they are indexes in the result set. Thus, <code>0</code>
773            * refers to the first result in the set. Setting both <code>start</code>
774            * and <code>end</code> to {@link
775            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
776            * result set.
777            * </p>
778            *
779            * @param companyId the primary key of the organization's company
780            * @param parentOrganizationId the primary key of the organization's parent
781            organization
782            * @param keywords the keywords (space separated), which may occur in the
783            organization's name, street, city, zipcode, type, region or
784            country (optionally <code>null</code>)
785            * @param params the finder parameters (optionally <code>null</code>). For
786            more information see {@link
787            com.liferay.portlet.usersadmin.util.OrganizationIndexer}
788            * @param start the lower bound of the range of organizations to return
789            * @param end the upper bound of the range of organizations to return (not
790            inclusive)
791            * @param sort the field and direction by which to sort (optionally
792            <code>null</code>)
793            * @return the matching organizations ordered by name
794            * @throws SystemException if a system exception occurred
795            * @see com.liferay.portlet.usersadmin.util.OrganizationIndexer
796            */
797            public com.liferay.portal.kernel.search.Hits search(long companyId,
798                    long parentOrganizationId, java.lang.String keywords,
799                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
800                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
801                    throws com.liferay.portal.kernel.exception.SystemException {
802                    return _organizationLocalService.search(companyId,
803                            parentOrganizationId, keywords, params, start, end, sort);
804            }
805    
806            /**
807            * Returns a name ordered range of all the organizations that match the
808            * keywords, type, region, and country, without using the indexer. It is
809            * preferable to use the indexed version {@link #search(long, long, String,
810            * LinkedHashMap, int, int, Sort)} instead of this method wherever possible
811            * for performance reasons.
812            *
813            * <p>
814            * Useful when paginating results. Returns a maximum of <code>end -
815            * start</code> instances. <code>start</code> and <code>end</code> are not
816            * primary keys, they are indexes in the result set. Thus, <code>0</code>
817            * refers to the first result in the set. Setting both <code>start</code>
818            * and <code>end</code> to {@link
819            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
820            * result set.
821            * </p>
822            *
823            * @param companyId the primary key of the organization's company
824            * @param parentOrganizationId the primary key of the organization's parent
825            organization
826            * @param keywords the keywords (space separated), which may occur in the
827            organization's name, street, city, or zipcode (optionally
828            <code>null</code>)
829            * @param type the organization's type (optionally <code>null</code>)
830            * @param regionId the primary key of the organization's region (optionally
831            <code>null</code>)
832            * @param countryId the primary key of the organization's country
833            (optionally <code>null</code>)
834            * @param params the finder params. For more information see {@link
835            com.liferay.portal.service.persistence.OrganizationFinder}
836            * @param start the lower bound of the range of organizations to return
837            * @param end the upper bound of the range of organizations to return (not
838            inclusive)
839            * @return the matching organizations ordered by name
840            * @throws SystemException if a system exception occurred
841            * @see com.liferay.portal.service.persistence.OrganizationFinder
842            */
843            public java.util.List<com.liferay.portal.model.Organization> search(
844                    long companyId, long parentOrganizationId, java.lang.String keywords,
845                    java.lang.String type, java.lang.Long regionId,
846                    java.lang.Long countryId,
847                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
848                    int start, int end)
849                    throws com.liferay.portal.kernel.exception.SystemException {
850                    return _organizationLocalService.search(companyId,
851                            parentOrganizationId, keywords, type, regionId, countryId, params,
852                            start, end);
853            }
854    
855            /**
856            * Returns an ordered range of all the organizations that match the
857            * keywords, type, region, and country, without using the indexer. It is
858            * preferable to use the indexed version {@link #search(long, long, String,
859            * String, String, String, String, String, String, LinkedHashMap, boolean,
860            * int, int, Sort)} instead of this method wherever possible for performance
861            * reasons.
862            *
863            * <p>
864            * Useful when paginating results. Returns a maximum of <code>end -
865            * start</code> instances. <code>start</code> and <code>end</code> are not
866            * primary keys, they are indexes in the result set. Thus, <code>0</code>
867            * refers to the first result in the set. Setting both <code>start</code>
868            * and <code>end</code> to {@link
869            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
870            * result set.
871            * </p>
872            *
873            * @param companyId the primary key of the organization's company
874            * @param parentOrganizationId the primary key of the organization's parent
875            organization
876            * @param keywords the keywords (space separated), which may occur in the
877            organization's name, street, city, or zipcode (optionally
878            <code>null</code>)
879            * @param type the organization's type (optionally <code>null</code>)
880            * @param regionId the primary key of the organization's region (optionally
881            <code>null</code>)
882            * @param countryId the primary key of the organization's country
883            (optionally <code>null</code>)
884            * @param params the finder params. For more information see {@link
885            com.liferay.portal.service.persistence.OrganizationFinder}
886            * @param start the lower bound of the range of organizations to return
887            * @param end the upper bound of the range of organizations to return (not
888            inclusive)
889            * @param obc the comparator to order the organizations (optionally
890            <code>null</code>)
891            * @return the matching organizations ordered by comparator <code>obc</code>
892            * @throws SystemException if a system exception occurred
893            * @see com.liferay.portal.service.persistence.OrganizationFinder
894            */
895            public java.util.List<com.liferay.portal.model.Organization> search(
896                    long companyId, long parentOrganizationId, java.lang.String keywords,
897                    java.lang.String type, java.lang.Long regionId,
898                    java.lang.Long countryId,
899                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
900                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
901                    throws com.liferay.portal.kernel.exception.SystemException {
902                    return _organizationLocalService.search(companyId,
903                            parentOrganizationId, keywords, type, regionId, countryId, params,
904                            start, end, obc);
905            }
906    
907            /**
908            * Returns a name ordered range of all the organizations with the type,
909            * region, and country, and whose name, street, city, and zipcode match the
910            * keywords specified for them, without using the indexer. It is preferable
911            * to use the indexed version {@link #search(long, long, String, String,
912            * String, String, String, String, String, LinkedHashMap, boolean, int, int,
913            * Sort)} instead of this method wherever possible for performance reasons.
914            *
915            * <p>
916            * Useful when paginating results. Returns a maximum of <code>end -
917            * start</code> instances. <code>start</code> and <code>end</code> are not
918            * primary keys, they are indexes in the result set. Thus, <code>0</code>
919            * refers to the first result in the set. Setting both <code>start</code>
920            * and <code>end</code> to {@link
921            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
922            * result set.
923            * </p>
924            *
925            * @param companyId the primary key of the organization's company
926            * @param parentOrganizationId the primary key of the organization's parent
927            * @param name the name keywords (space separated, optionally
928            <code>null</code>)
929            * @param type the organization's type (optionally <code>null</code>)
930            * @param street the street keywords (optionally <code>null</code>)
931            * @param city the city keywords (optionally <code>null</code>)
932            * @param zip the zipcode keywords (optionally <code>null</code>)
933            * @param regionId the primary key of the organization's region (optionally
934            <code>null</code>)
935            * @param countryId the primary key of the organization's country
936            (optionally <code>null</code>)
937            * @param params the finder parameters (optionally <code>null</code>). For
938            more information see {@link
939            com.liferay.portal.service.persistence.OrganizationFinder}
940            * @param andOperator whether every field must match its keywords, or just
941            one field. For example, &quot;organizations with the name
942            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
943            the name 'Employees' or the city 'Chicago'&quot;.
944            * @param start the lower bound of the range of organizations to return
945            * @param end the upper bound of the range of organizations to return (not
946            inclusive)
947            * @return the matching organizations ordered by name
948            * @throws SystemException if a system exception occurred
949            * @see com.liferay.portal.service.persistence.OrganizationFinder
950            */
951            public java.util.List<com.liferay.portal.model.Organization> search(
952                    long companyId, long parentOrganizationId, java.lang.String name,
953                    java.lang.String type, java.lang.String street, java.lang.String city,
954                    java.lang.String zip, java.lang.Long regionId,
955                    java.lang.Long countryId,
956                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
957                    boolean andOperator, int start, int end)
958                    throws com.liferay.portal.kernel.exception.SystemException {
959                    return _organizationLocalService.search(companyId,
960                            parentOrganizationId, name, type, street, city, zip, regionId,
961                            countryId, params, andOperator, start, end);
962            }
963    
964            /**
965            * Returns an ordered range of all the organizations with the type, region,
966            * and country, and whose name, street, city, and zipcode match the keywords
967            * specified for them, without using the indexer. It is preferable to use
968            * the indexed version {@link #search(long, long, String, String, String,
969            * String, String, String, String, LinkedHashMap, boolean, int, int, Sort)}
970            * instead of this method wherever possible for performance reasons.
971            *
972            * <p>
973            * Useful when paginating results. Returns a maximum of <code>end -
974            * start</code> instances. <code>start</code> and <code>end</code> are not
975            * primary keys, they are indexes in the result set. Thus, <code>0</code>
976            * refers to the first result in the set. Setting both <code>start</code>
977            * and <code>end</code> to {@link
978            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
979            * result set.
980            * </p>
981            *
982            * @param companyId the primary key of the organization's company
983            * @param parentOrganizationId the primary key of the organization's parent
984            organization
985            * @param name the name keywords (space separated, optionally
986            <code>null</code>)
987            * @param type the organization's type (optionally <code>null</code>)
988            * @param street the street keywords (optionally <code>null</code>)
989            * @param city the city keywords (optionally <code>null</code>)
990            * @param zip the zipcode keywords (optionally <code>null</code>)
991            * @param regionId the primary key of the organization's region (optionally
992            <code>null</code>)
993            * @param countryId the primary key of the organization's country
994            (optionally <code>null</code>)
995            * @param params the finder parameters (optionally <code>null</code>). For
996            more information see {@link
997            com.liferay.portal.service.persistence.OrganizationFinder}
998            * @param andOperator whether every field must match its keywords, or just
999            one field. For example, &quot;organizations with the name
1000            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
1001            the name 'Employees' or the city 'Chicago'&quot;.
1002            * @param start the lower bound of the range of organizations to return
1003            * @param end the upper bound of the range of organizations to return (not
1004            inclusive)
1005            * @param obc the comparator to order the organizations (optionally
1006            <code>null</code>)
1007            * @return the matching organizations ordered by comparator <code>obc</code>
1008            * @throws SystemException if a system exception occurred
1009            * @see com.liferay.portal.service.persistence.OrganizationFinder
1010            */
1011            public java.util.List<com.liferay.portal.model.Organization> search(
1012                    long companyId, long parentOrganizationId, java.lang.String name,
1013                    java.lang.String type, java.lang.String street, java.lang.String city,
1014                    java.lang.String zip, java.lang.Long regionId,
1015                    java.lang.Long countryId,
1016                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1017                    boolean andOperator, int start, int end,
1018                    com.liferay.portal.kernel.util.OrderByComparator obc)
1019                    throws com.liferay.portal.kernel.exception.SystemException {
1020                    return _organizationLocalService.search(companyId,
1021                            parentOrganizationId, name, type, street, city, zip, regionId,
1022                            countryId, params, andOperator, start, end, obc);
1023            }
1024    
1025            /**
1026            * Returns an ordered range of all the organizations whose name, type, or
1027            * location fields match the keywords specified for them, using the indexer.
1028            * It is preferable to use this method instead of the non-indexed version
1029            * whenever possible for performance reasons.
1030            *
1031            * <p>
1032            * Useful when paginating results. Returns a maximum of <code>end -
1033            * start</code> instances. <code>start</code> and <code>end</code> are not
1034            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1035            * refers to the first result in the set. Setting both <code>start</code>
1036            * and <code>end</code> to {@link
1037            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1038            * result set.
1039            * </p>
1040            *
1041            * @param companyId the primary key of the organization's company
1042            * @param parentOrganizationId the primary key of the organization's parent
1043            organization
1044            * @param name the name keywords (space separated, optionally
1045            <code>null</code>)
1046            * @param type the type keywords (optionally <code>null</code>)
1047            * @param street the street keywords (optionally <code>null</code>)
1048            * @param city the city keywords (optionally <code>null</code>)
1049            * @param zip the zipcode keywords (optionally <code>null</code>)
1050            * @param region the region keywords (optionally <code>null</code>)
1051            * @param country the country keywords (optionally <code>null</code>)
1052            * @param params the finder parameters (optionally <code>null</code>). For
1053            more information see {@link
1054            com.liferay.portlet.usersadmin.util.OrganizationIndexer}.
1055            * @param andSearch whether every field must match its keywords or just one
1056            field
1057            * @param start the lower bound of the range of organizations to return
1058            * @param end the upper bound of the range of organizations to return (not
1059            inclusive)
1060            * @param sort the field and direction by which to sort (optionally
1061            <code>null</code>)
1062            * @return the matching organizations ordered by <code>sort</code>
1063            * @throws SystemException if a system exception occurred
1064            * @see com.liferay.portlet.usersadmin.util.OrganizationIndexer
1065            */
1066            public com.liferay.portal.kernel.search.Hits search(long companyId,
1067                    long parentOrganizationId, java.lang.String name,
1068                    java.lang.String type, java.lang.String street, java.lang.String city,
1069                    java.lang.String zip, java.lang.String region,
1070                    java.lang.String country,
1071                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1072                    boolean andSearch, int start, int end,
1073                    com.liferay.portal.kernel.search.Sort sort)
1074                    throws com.liferay.portal.kernel.exception.SystemException {
1075                    return _organizationLocalService.search(companyId,
1076                            parentOrganizationId, name, type, street, city, zip, region,
1077                            country, params, andSearch, start, end, sort);
1078            }
1079    
1080            /**
1081            * Returns the number of organizations that match the keywords, type,
1082            * region, and country.
1083            *
1084            * @param companyId the primary key of the organization's company
1085            * @param parentOrganizationId the primary key of the organization's parent
1086            organization
1087            * @param keywords the keywords (space separated), which may occur in the
1088            organization's name, street, city, or zipcode (optionally
1089            <code>null</code>)
1090            * @param type the organization's type (optionally <code>null</code>)
1091            * @param regionId the primary key of the organization's region (optionally
1092            <code>null</code>)
1093            * @param countryId the primary key of the organization's country
1094            (optionally <code>null</code>)
1095            * @param params the finder parameters (optionally <code>null</code>). For
1096            more information see {@link
1097            com.liferay.portal.service.persistence.OrganizationFinder}
1098            * @return the number of matching organizations
1099            * @throws SystemException if a system exception occurred
1100            * @see com.liferay.portal.service.persistence.OrganizationFinder
1101            */
1102            public int searchCount(long companyId, long parentOrganizationId,
1103                    java.lang.String keywords, java.lang.String type,
1104                    java.lang.Long regionId, java.lang.Long countryId,
1105                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
1106                    throws com.liferay.portal.kernel.exception.SystemException {
1107                    return _organizationLocalService.searchCount(companyId,
1108                            parentOrganizationId, keywords, type, regionId, countryId, params);
1109            }
1110    
1111            /**
1112            * Returns the number of organizations with the type, region, and country,
1113            * and whose name, street, city, and zipcode match the keywords specified
1114            * for them.
1115            *
1116            * @param companyId the primary key of the organization's company
1117            * @param parentOrganizationId the primary key of the organization's parent
1118            organization
1119            * @param name the name keywords (space separated, optionally
1120            <code>null</code>)
1121            * @param type the organization's type (optionally <code>null</code>)
1122            * @param street the street keywords (optionally <code>null</code>)
1123            * @param city the city keywords (optionally <code>null</code>)
1124            * @param zip the zipcode keywords (optionally <code>null</code>)
1125            * @param regionId the primary key of the organization's region (optionally
1126            <code>null</code>)
1127            * @param countryId the primary key of the organization's country
1128            (optionally <code>null</code>)
1129            * @param params the finder parameters (optionally <code>null</code>). For
1130            more information see {@link
1131            com.liferay.portal.service.persistence.OrganizationFinder}
1132            * @param andOperator whether every field must match its keywords, or just
1133            one field. For example, &quot;organizations with the name
1134            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
1135            the name 'Employees' or the city 'Chicago'&quot;.
1136            * @return the number of matching organizations
1137            * @throws SystemException if a system exception occurred
1138            * @see com.liferay.portal.service.persistence.OrganizationFinder
1139            */
1140            public int searchCount(long companyId, long parentOrganizationId,
1141                    java.lang.String name, java.lang.String type, java.lang.String street,
1142                    java.lang.String city, java.lang.String zip, java.lang.Long regionId,
1143                    java.lang.Long countryId,
1144                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1145                    boolean andOperator)
1146                    throws com.liferay.portal.kernel.exception.SystemException {
1147                    return _organizationLocalService.searchCount(companyId,
1148                            parentOrganizationId, name, type, street, city, zip, regionId,
1149                            countryId, params, andOperator);
1150            }
1151    
1152            /**
1153            * Sets the organizations in the group, removing and adding organizations to
1154            * the group as necessary.
1155            *
1156            * @param groupId the primary key of the group
1157            * @param organizationIds the primary keys of the organizations
1158            * @throws PortalException if a portal exception occurred
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public void setGroupOrganizations(long groupId, long[] organizationIds)
1162                    throws com.liferay.portal.kernel.exception.PortalException,
1163                            com.liferay.portal.kernel.exception.SystemException {
1164                    _organizationLocalService.setGroupOrganizations(groupId, organizationIds);
1165            }
1166    
1167            /**
1168            * Removes the organizations from the group.
1169            *
1170            * @param groupId the primary key of the group
1171            * @param organizationIds the primary keys of the organizations
1172            * @throws PortalException if a portal exception occurred
1173            * @throws SystemException if a system exception occurred
1174            */
1175            public void unsetGroupOrganizations(long groupId, long[] organizationIds)
1176                    throws com.liferay.portal.kernel.exception.PortalException,
1177                            com.liferay.portal.kernel.exception.SystemException {
1178                    _organizationLocalService.unsetGroupOrganizations(groupId,
1179                            organizationIds);
1180            }
1181    
1182            /**
1183            * Removes the organizations from the password policy.
1184            *
1185            * @param passwordPolicyId the primary key of the password policy
1186            * @param organizationIds the primary keys of the organizations
1187            * @throws SystemException if a system exception occurred
1188            */
1189            public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
1190                    long[] organizationIds)
1191                    throws com.liferay.portal.kernel.exception.SystemException {
1192                    _organizationLocalService.unsetPasswordPolicyOrganizations(passwordPolicyId,
1193                            organizationIds);
1194            }
1195    
1196            /**
1197            * Updates the organization's asset with the new asset categories and tag
1198            * names, removing and adding asset categories and tag names as necessary.
1199            *
1200            * @param userId the primary key of the user
1201            * @param organization the organization
1202            * @param assetCategoryIds the primary keys of the asset categories
1203            * @param assetTagNames the asset tag names
1204            * @throws PortalException if a user with the primary key could not be found
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public void updateAsset(long userId,
1208                    com.liferay.portal.model.Organization organization,
1209                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
1210                    throws com.liferay.portal.kernel.exception.PortalException,
1211                            com.liferay.portal.kernel.exception.SystemException {
1212                    _organizationLocalService.updateAsset(userId, organization,
1213                            assetCategoryIds, assetTagNames);
1214            }
1215    
1216            /**
1217            * Updates the organization.
1218            *
1219            * @param companyId the primary key of the organization's company
1220            * @param organizationId the primary key of the organization
1221            * @param parentOrganizationId the primary key of organization's parent
1222            organization
1223            * @param name the organization's name
1224            * @param type the organization's type
1225            * @param recursable whether permissions of the organization are to be
1226            inherited by its sub-organizations
1227            * @param regionId the primary key of the organization's region
1228            * @param countryId the primary key of the organization's country
1229            * @param statusId the organization's workflow status
1230            * @param comments the comments about the organization
1231            * @param site whether the organization is to be associated with a main
1232            site
1233            * @param serviceContext the organization's service context (optionally
1234            <code>null</code>). Can set asset category IDs and asset tag
1235            names for the organization, and merge expando bridge attributes
1236            for the organization.
1237            * @return the organization
1238            * @throws PortalException if an organization or parent organization with
1239            the primary key could not be found or if the new information was
1240            invalid
1241            * @throws SystemException if a system exception occurred
1242            */
1243            public com.liferay.portal.model.Organization updateOrganization(
1244                    long companyId, long organizationId, long parentOrganizationId,
1245                    java.lang.String name, java.lang.String type, boolean recursable,
1246                    long regionId, long countryId, int statusId, java.lang.String comments,
1247                    boolean site, com.liferay.portal.service.ServiceContext serviceContext)
1248                    throws com.liferay.portal.kernel.exception.PortalException,
1249                            com.liferay.portal.kernel.exception.SystemException {
1250                    return _organizationLocalService.updateOrganization(companyId,
1251                            organizationId, parentOrganizationId, name, type, recursable,
1252                            regionId, countryId, statusId, comments, site, serviceContext);
1253            }
1254    
1255            /**
1256             * @deprecated Renamed to {@link #getWrappedService}
1257             */
1258            public OrganizationLocalService getWrappedOrganizationLocalService() {
1259                    return _organizationLocalService;
1260            }
1261    
1262            /**
1263             * @deprecated Renamed to {@link #setWrappedService}
1264             */
1265            public void setWrappedOrganizationLocalService(
1266                    OrganizationLocalService organizationLocalService) {
1267                    _organizationLocalService = organizationLocalService;
1268            }
1269    
1270            public OrganizationLocalService getWrappedService() {
1271                    return _organizationLocalService;
1272            }
1273    
1274            public void setWrappedService(
1275                    OrganizationLocalService organizationLocalService) {
1276                    _organizationLocalService = organizationLocalService;
1277            }
1278    
1279            private OrganizationLocalService _organizationLocalService;
1280    }