001    /**
002     * Copyright (c) 2000-2011 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            public OrganizationLocalServiceWrapper(
028                    OrganizationLocalService organizationLocalService) {
029                    _organizationLocalService = organizationLocalService;
030            }
031    
032            /**
033            * Adds the organization to the database. Also notifies the appropriate model listeners.
034            *
035            * @param organization the organization
036            * @return the organization that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.Organization addOrganization(
040                    com.liferay.portal.model.Organization organization)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _organizationLocalService.addOrganization(organization);
043            }
044    
045            /**
046            * Creates a new organization with the primary key. Does not add the organization to the database.
047            *
048            * @param organizationId the primary key for the new organization
049            * @return the new organization
050            */
051            public com.liferay.portal.model.Organization createOrganization(
052                    long organizationId) {
053                    return _organizationLocalService.createOrganization(organizationId);
054            }
055    
056            /**
057            * Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners.
058            *
059            * @param organizationId the primary key of the organization
060            * @throws PortalException if a organization with the primary key could not be found
061            * @throws SystemException if a system exception occurred
062            */
063            public void deleteOrganization(long organizationId)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    _organizationLocalService.deleteOrganization(organizationId);
067            }
068    
069            /**
070            * Deletes the organization from the database. Also notifies the appropriate model listeners.
071            *
072            * @param organization the organization
073            * @throws PortalException
074            * @throws SystemException if a system exception occurred
075            */
076            public void deleteOrganization(
077                    com.liferay.portal.model.Organization organization)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    _organizationLocalService.deleteOrganization(organization);
081            }
082    
083            /**
084            * Performs a dynamic query on the database and returns the matching rows.
085            *
086            * @param dynamicQuery the dynamic query
087            * @return the matching rows
088            * @throws SystemException if a system exception occurred
089            */
090            @SuppressWarnings("rawtypes")
091            public java.util.List dynamicQuery(
092                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _organizationLocalService.dynamicQuery(dynamicQuery);
095            }
096    
097            /**
098            * Performs a dynamic query on the database and returns a range of the matching rows.
099            *
100            * <p>
101            * 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.
102            * </p>
103            *
104            * @param dynamicQuery the dynamic query
105            * @param start the lower bound of the range of model instances
106            * @param end the upper bound of the range of model instances (not inclusive)
107            * @return the range of matching rows
108            * @throws SystemException if a system exception occurred
109            */
110            @SuppressWarnings("rawtypes")
111            public java.util.List dynamicQuery(
112                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
113                    int end) throws com.liferay.portal.kernel.exception.SystemException {
114                    return _organizationLocalService.dynamicQuery(dynamicQuery, start, end);
115            }
116    
117            /**
118            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
119            *
120            * <p>
121            * 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.
122            * </p>
123            *
124            * @param dynamicQuery the dynamic query
125            * @param start the lower bound of the range of model instances
126            * @param end the upper bound of the range of model instances (not inclusive)
127            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
128            * @return the ordered range of matching rows
129            * @throws SystemException if a system exception occurred
130            */
131            @SuppressWarnings("rawtypes")
132            public java.util.List dynamicQuery(
133                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134                    int end,
135                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _organizationLocalService.dynamicQuery(dynamicQuery, start, end,
138                            orderByComparator);
139            }
140    
141            /**
142            * Returns the number of rows that match the dynamic query.
143            *
144            * @param dynamicQuery the dynamic query
145            * @return the number of rows that match the dynamic query
146            * @throws SystemException if a system exception occurred
147            */
148            public long dynamicQueryCount(
149                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _organizationLocalService.dynamicQueryCount(dynamicQuery);
152            }
153    
154            /**
155            * Returns the organization with the primary key.
156            *
157            * @param organizationId the primary key of the organization
158            * @return the organization
159            * @throws PortalException if a organization with the primary key could not be found
160            * @throws SystemException if a system exception occurred
161            */
162            public com.liferay.portal.model.Organization getOrganization(
163                    long organizationId)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _organizationLocalService.getOrganization(organizationId);
167            }
168    
169            public com.liferay.portal.model.PersistedModel getPersistedModel(
170                    java.io.Serializable primaryKeyObj)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _organizationLocalService.getPersistedModel(primaryKeyObj);
174            }
175    
176            /**
177            * Returns a range of all the organizations.
178            *
179            * <p>
180            * 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.
181            * </p>
182            *
183            * @param start the lower bound of the range of organizations
184            * @param end the upper bound of the range of organizations (not inclusive)
185            * @return the range of organizations
186            * @throws SystemException if a system exception occurred
187            */
188            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
189                    int start, int end)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return _organizationLocalService.getOrganizations(start, end);
192            }
193    
194            /**
195            * Returns the number of organizations.
196            *
197            * @return the number of organizations
198            * @throws SystemException if a system exception occurred
199            */
200            public int getOrganizationsCount()
201                    throws com.liferay.portal.kernel.exception.SystemException {
202                    return _organizationLocalService.getOrganizationsCount();
203            }
204    
205            /**
206            * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
207            *
208            * @param organization the organization
209            * @return the organization that was updated
210            * @throws SystemException if a system exception occurred
211            */
212            public com.liferay.portal.model.Organization updateOrganization(
213                    com.liferay.portal.model.Organization organization)
214                    throws com.liferay.portal.kernel.exception.SystemException {
215                    return _organizationLocalService.updateOrganization(organization);
216            }
217    
218            /**
219            * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
220            *
221            * @param organization the organization
222            * @param merge whether to merge the organization with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
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, boolean merge)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _organizationLocalService.updateOrganization(organization, merge);
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 specify the organization's asset category
290            IDs, asset tag names, and expando bridge attributes.
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, optionally
542            * including the organizations associated with the user groups to which the
543            * user belongs.
544            *
545            * @param userId the primary key of the user
546            * @param inheritUserGroups whether to include organizations associated
547            with the user groups to which the user belongs
548            * @return the organizations associated with the user
549            * @throws PortalException if a user with the primary key could not be found
550            * @throws SystemException if a system exception occurred
551            */
552            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
553                    long userId, boolean inheritUserGroups)
554                    throws com.liferay.portal.kernel.exception.PortalException,
555                            com.liferay.portal.kernel.exception.SystemException {
556                    return _organizationLocalService.getUserOrganizations(userId,
557                            inheritUserGroups);
558            }
559    
560            /**
561            * Returns a range of all the organizations associated with the user,
562            * optionally including the organizations associated with the user groups to
563            * which the user belongs.
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 inheritUserGroups whether to include organizations associated
577            with the user groups to which the user belongs
578            * @param start the lower bound of the range of organizations to return
579            * @param end the upper bound of the range of organizations to return (not
580            inclusive)
581            * @return the range organizations associated with the user
582            * @throws PortalException if a user with the primary key could not be found
583            * @throws SystemException if a system exception occurred
584            */
585            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
586                    long userId, boolean inheritUserGroups, int start, int end)
587                    throws com.liferay.portal.kernel.exception.PortalException,
588                            com.liferay.portal.kernel.exception.SystemException {
589                    return _organizationLocalService.getUserOrganizations(userId,
590                            inheritUserGroups, start, end);
591            }
592    
593            /**
594            * Returns a range of all the organizations associated with the user.
595            *
596            * <p>
597            * Useful when paginating results. Returns a maximum of <code>end -
598            * start</code> instances. <code>start</code> and <code>end</code> are not
599            * primary keys, they are indexes in the result set. Thus, <code>0</code>
600            * refers to the first result in the set. Setting both <code>start</code>
601            * and <code>end</code> to {@link
602            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
603            * result set.
604            * </p>
605            *
606            * @param userId the primary key of the user
607            * @param start the lower bound of the range of organizations to return
608            * @param end the upper bound of the range of organizations to return (not
609            inclusive)
610            * @return the range organizations associated with the user
611            * @throws PortalException if a user with the primary key could not be found
612            * @throws SystemException if a system exception occurred
613            */
614            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
615                    long userId, int start, int end)
616                    throws com.liferay.portal.kernel.exception.PortalException,
617                            com.liferay.portal.kernel.exception.SystemException {
618                    return _organizationLocalService.getUserOrganizations(userId, start, end);
619            }
620    
621            /**
622            * Returns the number of organizations associated with the user.
623            *
624            * @param userId the primary key of the user
625            * @return the number of organizations associated with the user
626            * @throws SystemException if a system exception occurred
627            */
628            public int getUserOrganizationsCount(long userId)
629                    throws com.liferay.portal.kernel.exception.SystemException {
630                    return _organizationLocalService.getUserOrganizationsCount(userId);
631            }
632    
633            /**
634            * Returns <code>true</code> if the organization belongs to the group.
635            *
636            * @param groupId the primary key of the group
637            * @param organizationId the primary key of the organization
638            * @return <code>true</code> if the organization belongs to the group;
639            <code>false</code> otherwise
640            * @throws SystemException if a system exception occurred
641            */
642            public boolean hasGroupOrganization(long groupId, long organizationId)
643                    throws com.liferay.portal.kernel.exception.SystemException {
644                    return _organizationLocalService.hasGroupOrganization(groupId,
645                            organizationId);
646            }
647    
648            /**
649            * Returns <code>true</code> if the password policy has been assigned to
650            * the organization.
651            *
652            * @param passwordPolicyId the primary key of the password policy
653            * @param organizationId the primary key of the organization
654            * @return <code>true</code> if the password policy has been assigned to
655            the organization; <code>false</code> otherwise
656            * @throws SystemException if a system exception occurred
657            */
658            public boolean hasPasswordPolicyOrganization(long passwordPolicyId,
659                    long organizationId)
660                    throws com.liferay.portal.kernel.exception.SystemException {
661                    return _organizationLocalService.hasPasswordPolicyOrganization(passwordPolicyId,
662                            organizationId);
663            }
664    
665            /**
666            * Returns <code>true</code> if the user is a member of the organization.
667            * This method is usually called to determine if the user has view access
668            * to a resource belonging to the organization.
669            *
670            * @param userId the primary key of the user
671            * @param organizationId the primary key of the organization
672            * @return <code>true</code> if the user has access to the organization;
673            <code>false</code> otherwise
674            * @throws SystemException if a system exception occurred
675            */
676            public boolean hasUserOrganization(long userId, long organizationId)
677                    throws com.liferay.portal.kernel.exception.SystemException {
678                    return _organizationLocalService.hasUserOrganization(userId,
679                            organizationId);
680            }
681    
682            /**
683            * Returns <code>true</code> if the user is a member of the organization,
684            * optionally focusing on sub-organizations, user groups, or the specified
685            * organization. This method is usually called to determine if the user has
686            * view access to a resource belonging to the organization.
687            *
688            * <p>
689            *
690            * <ol>
691            * <li>
692            * If <code>inheritSuborganizations=<code>false</code></code> and
693            * <code>inheritUserGroups=<code>false</code></code>: the method checks
694            * whether the user
695            * belongs to the organization specified by <code>organizationId</code>. The
696            * parameter
697            * <code>includeSpecifiedOrganization</code> is ignored.
698            * </li>
699            * <li>
700            * If <code>inheritUserGroups=<code>true</code></code>: the method checks
701            * whether the
702            * user belongs to a user group which has been made as a whole member of the
703            * the organization specified by <code>organizationId</code>. The parameter
704            * <code>includeSpecifiedOrganization</code> is
705            * ignored unless <code>inheritSuborganizations</code> is also
706            * <code>true</code>.
707            * </li>
708            * <li>
709            * If <code>inheritSuborganizations=<code>true</code></code> and
710            * <code>includeSpecifiedOrganization=<code>false</code></code>: the method
711            * checks
712            * whether the user belongs to one of the child organizations of the one
713            * specified by <code>organizationId</code>.
714            * </li>
715            * <li>
716            * If <code>inheritSuborganizations=<code>true</code></code> and
717            * <code>includeSpecifiedOrganization=<code>true</code></code>: the method
718            * checks whether
719            * the user belongs to the organization specified by
720            * <code>organizationId</code> or any of
721            * its child organizations.
722            * </li>
723            * </ol>
724            *
725            * <p>
726            *
727            * @param userId the primary key of the organization's user
728            * @param organizationId the primary key of the organization
729            * @param inheritSuborganizations if <code>true</code> sub-organizations
730            are considered in the determination
731            * @param inheritUserGroups if <code>true</code> organizations inherited
732            from the user groups to which the user belongs are considered in
733            the determination
734            * @param includeSpecifiedOrganization if <code>true</code> the
735            organization specified by <code>organizationId</code> is
736            considered in the determination.
737            * @return <code>true</code> if the user has access to the organization;
738            <code>false</code> otherwise
739            * @throws PortalException if an organization with the primary key could not
740            be found
741            * @throws SystemException if a system exception occurred
742            * @see com.liferay.portal.service.persistence.OrganizationFinder
743            */
744            public boolean hasUserOrganization(long userId, long organizationId,
745                    boolean inheritSuborganizations, boolean inheritUserGroups,
746                    boolean includeSpecifiedOrganization)
747                    throws com.liferay.portal.kernel.exception.PortalException,
748                            com.liferay.portal.kernel.exception.SystemException {
749                    return _organizationLocalService.hasUserOrganization(userId,
750                            organizationId, inheritSuborganizations, inheritUserGroups,
751                            includeSpecifiedOrganization);
752            }
753    
754            /**
755            * Rebuilds the organizations tree.
756            *
757            * <p>
758            * Only call this method if the tree has become stale through operations
759            * other than normal CRUD. Under normal circumstances the tree is
760            * automatically rebuilt whenever necessary.
761            * </p>
762            *
763            * @param companyId the primary key of the organization's company
764            * @param force whether to force the rebuild even if the tree is not stale
765            * @throws SystemException if a system exception occurred
766            * @see com.liferay.portal.service.persistence.OrganizationPersistence#rebuildTree(
767            long, boolean)
768            */
769            public void rebuildTree(long companyId, boolean force)
770                    throws com.liferay.portal.kernel.exception.SystemException {
771                    _organizationLocalService.rebuildTree(companyId, force);
772            }
773    
774            public java.util.List<com.liferay.portal.model.Organization> search(
775                    long companyId,
776                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
777                    int start, int end)
778                    throws com.liferay.portal.kernel.exception.SystemException {
779                    return _organizationLocalService.search(companyId, params, start, end);
780            }
781    
782            /**
783            * Returns an ordered range of all the organizations that match the
784            * keywords, using the indexer. It is preferable to use this method instead
785            * of the non-indexed version whenever possible for performance reasons.
786            *
787            * <p>
788            * Useful when paginating results. Returns a maximum of <code>end -
789            * start</code> instances. <code>start</code> and <code>end</code> are not
790            * primary keys, they are indexes in the result set. Thus, <code>0</code>
791            * refers to the first result in the set. Setting both <code>start</code>
792            * and <code>end</code> to {@link
793            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
794            * result set.
795            * </p>
796            *
797            * @param companyId the primary key of the organization's company
798            * @param parentOrganizationId the primary key of the organization's parent
799            organization
800            * @param keywords the keywords (space separated), which may occur in the
801            organization's name, street, city, zipcode, type, region or
802            country (optionally <code>null</code>)
803            * @param params the finder parameters (optionally <code>null</code>). For
804            more information see {@link
805            com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer}
806            * @param start the lower bound of the range of organizations to return
807            * @param end the upper bound of the range of organizations to return (not
808            inclusive)
809            * @param sort the field and direction by which to sort (optionally
810            <code>null</code>)
811            * @return the matching organizations ordered by name
812            * @throws SystemException if a system exception occurred
813            * @see com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer
814            */
815            public com.liferay.portal.kernel.search.Hits search(long companyId,
816                    long parentOrganizationId, java.lang.String keywords,
817                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
818                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
819                    throws com.liferay.portal.kernel.exception.SystemException {
820                    return _organizationLocalService.search(companyId,
821                            parentOrganizationId, keywords, params, start, end, sort);
822            }
823    
824            /**
825            * Returns a name ordered range of all the organizations that match the
826            * keywords, type, region, and country, without using the indexer. It is
827            * preferable to use the indexed version {@link #search(long, long, String,
828            * LinkedHashMap, int, int, Sort)} instead of this method wherever possible
829            * for performance reasons.
830            *
831            * <p>
832            * Useful when paginating results. Returns a maximum of <code>end -
833            * start</code> instances. <code>start</code> and <code>end</code> are not
834            * primary keys, they are indexes in the result set. Thus, <code>0</code>
835            * refers to the first result in the set. Setting both <code>start</code>
836            * and <code>end</code> to {@link
837            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
838            * result set.
839            * </p>
840            *
841            * @param companyId the primary key of the organization's company
842            * @param parentOrganizationId the primary key of the organization's parent
843            organization
844            * @param keywords the keywords (space separated), which may occur in the
845            organization's name, street, city, or zipcode (optionally
846            <code>null</code>)
847            * @param type the organization's type (optionally <code>null</code>)
848            * @param regionId the primary key of the organization's region (optionally
849            <code>null</code>)
850            * @param countryId the primary key of the organization's country
851            (optionally <code>null</code>)
852            * @param params the finder params. For more information see {@link
853            com.liferay.portal.service.persistence.OrganizationFinder}
854            * @param start the lower bound of the range of organizations to return
855            * @param end the upper bound of the range of organizations to return (not
856            inclusive)
857            * @return the matching organizations ordered by name
858            * @throws SystemException if a system exception occurred
859            * @see com.liferay.portal.service.persistence.OrganizationFinder
860            */
861            public java.util.List<com.liferay.portal.model.Organization> search(
862                    long companyId, long parentOrganizationId, java.lang.String keywords,
863                    java.lang.String type, java.lang.Long regionId,
864                    java.lang.Long countryId,
865                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
866                    int start, int end)
867                    throws com.liferay.portal.kernel.exception.SystemException {
868                    return _organizationLocalService.search(companyId,
869                            parentOrganizationId, keywords, type, regionId, countryId, params,
870                            start, end);
871            }
872    
873            /**
874            * Returns an ordered range of all the organizations that match the
875            * keywords, type, region, and country, without using the indexer. It is
876            * preferable to use the indexed version {@link #search(long, long, String,
877            * String, String, String, String, String, String, LinkedHashMap, boolean,
878            * int, int, Sort)} instead of this method wherever possible for performance
879            * reasons.
880            *
881            * <p>
882            * Useful when paginating results. Returns a maximum of <code>end -
883            * start</code> instances. <code>start</code> and <code>end</code> are not
884            * primary keys, they are indexes in the result set. Thus, <code>0</code>
885            * refers to the first result in the set. Setting both <code>start</code>
886            * and <code>end</code> to {@link
887            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
888            * result set.
889            * </p>
890            *
891            * @param companyId the primary key of the organization's company
892            * @param parentOrganizationId the primary key of the organization's parent
893            organization
894            * @param keywords the keywords (space separated), which may occur in the
895            organization's name, street, city, or zipcode (optionally
896            <code>null</code>)
897            * @param type the organization's type (optionally <code>null</code>)
898            * @param regionId the primary key of the organization's region (optionally
899            <code>null</code>)
900            * @param countryId the primary key of the organization's country
901            (optionally <code>null</code>)
902            * @param params the finder params. For more information see {@link
903            com.liferay.portal.service.persistence.OrganizationFinder}
904            * @param start the lower bound of the range of organizations to return
905            * @param end the upper bound of the range of organizations to return (not
906            inclusive)
907            * @param obc the comparator to order the organizations (optionally
908            <code>null</code>)
909            * @return the matching organizations ordered by comparator <code>obc</code>
910            * @throws SystemException if a system exception occurred
911            * @see com.liferay.portal.service.persistence.OrganizationFinder
912            */
913            public java.util.List<com.liferay.portal.model.Organization> search(
914                    long companyId, long parentOrganizationId, java.lang.String keywords,
915                    java.lang.String type, java.lang.Long regionId,
916                    java.lang.Long countryId,
917                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
918                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
919                    throws com.liferay.portal.kernel.exception.SystemException {
920                    return _organizationLocalService.search(companyId,
921                            parentOrganizationId, keywords, type, regionId, countryId, params,
922                            start, end, obc);
923            }
924    
925            /**
926            * Returns a name ordered range of all the organizations with the type,
927            * region, and country, and whose name, street, city, and zipcode match the
928            * keywords specified for them, without using the indexer. It is preferable
929            * to use the indexed version {@link #search(long, long, String, String,
930            * String, String, String, String, String, LinkedHashMap, boolean, int, int,
931            * Sort)} instead of this method wherever possible for performance reasons.
932            *
933            * <p>
934            * Useful when paginating results. Returns a maximum of <code>end -
935            * start</code> instances. <code>start</code> and <code>end</code> are not
936            * primary keys, they are indexes in the result set. Thus, <code>0</code>
937            * refers to the first result in the set. Setting both <code>start</code>
938            * and <code>end</code> to {@link
939            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
940            * result set.
941            * </p>
942            *
943            * @param companyId the primary key of the organization's company
944            * @param parentOrganizationId the primary key of the organization's parent
945            * @param name the name keywords (space separated, optionally
946            <code>null</code>)
947            * @param type the organization's type (optionally <code>null</code>)
948            * @param street the street keywords (optionally <code>null</code>)
949            * @param city the city keywords (optionally <code>null</code>)
950            * @param zip the zipcode keywords (optionally <code>null</code>)
951            * @param regionId the primary key of the organization's region (optionally
952            <code>null</code>)
953            * @param countryId the primary key of the organization's country
954            (optionally <code>null</code>)
955            * @param params the finder parameters (optionally <code>null</code>). For
956            more information see {@link
957            com.liferay.portal.service.persistence.OrganizationFinder}
958            * @param andOperator whether every field must match its keywords, or just
959            one field. For example, &quot;organizations with the name
960            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
961            the name 'Employees' or the city 'Chicago'&quot;.
962            * @param start the lower bound of the range of organizations to return
963            * @param end the upper bound of the range of organizations to return (not
964            inclusive)
965            * @return the matching organizations ordered by name
966            * @throws SystemException if a system exception occurred
967            * @see com.liferay.portal.service.persistence.OrganizationFinder
968            */
969            public java.util.List<com.liferay.portal.model.Organization> search(
970                    long companyId, long parentOrganizationId, java.lang.String name,
971                    java.lang.String type, java.lang.String street, java.lang.String city,
972                    java.lang.String zip, java.lang.Long regionId,
973                    java.lang.Long countryId,
974                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
975                    boolean andOperator, int start, int end)
976                    throws com.liferay.portal.kernel.exception.SystemException {
977                    return _organizationLocalService.search(companyId,
978                            parentOrganizationId, name, type, street, city, zip, regionId,
979                            countryId, params, andOperator, start, end);
980            }
981    
982            /**
983            * Returns an ordered range of all the organizations with the type, region,
984            * and country, and whose name, street, city, and zipcode match the keywords
985            * specified for them, without using the indexer. It is preferable to use
986            * the indexed version {@link #search(long, long, String, String, String,
987            * String, String, String, String, LinkedHashMap, boolean, int, int, Sort)}
988            * instead of this method wherever possible for performance reasons.
989            *
990            * <p>
991            * Useful when paginating results. Returns a maximum of <code>end -
992            * start</code> instances. <code>start</code> and <code>end</code> are not
993            * primary keys, they are indexes in the result set. Thus, <code>0</code>
994            * refers to the first result in the set. Setting both <code>start</code>
995            * and <code>end</code> to {@link
996            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
997            * result set.
998            * </p>
999            *
1000            * @param companyId the primary key of the organization's company
1001            * @param parentOrganizationId the primary key of the organization's parent
1002            organization
1003            * @param name the name keywords (space separated, optionally
1004            <code>null</code>)
1005            * @param type the organization's type (optionally <code>null</code>)
1006            * @param street the street keywords (optionally <code>null</code>)
1007            * @param city the city keywords (optionally <code>null</code>)
1008            * @param zip the zipcode keywords (optionally <code>null</code>)
1009            * @param regionId the primary key of the organization's region (optionally
1010            <code>null</code>)
1011            * @param countryId the primary key of the organization's country
1012            (optionally <code>null</code>)
1013            * @param params the finder parameters (optionally <code>null</code>). For
1014            more information see {@link
1015            com.liferay.portal.service.persistence.OrganizationFinder}
1016            * @param andOperator whether every field must match its keywords, or just
1017            one field. For example, &quot;organizations with the name
1018            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
1019            the name 'Employees' or the city 'Chicago'&quot;.
1020            * @param start the lower bound of the range of organizations to return
1021            * @param end the upper bound of the range of organizations to return (not
1022            inclusive)
1023            * @param obc the comparator to order the organizations (optionally
1024            <code>null</code>)
1025            * @return the matching organizations ordered by comparator <code>obc</code>
1026            * @throws SystemException if a system exception occurred
1027            * @see com.liferay.portal.service.persistence.OrganizationFinder
1028            */
1029            public java.util.List<com.liferay.portal.model.Organization> search(
1030                    long companyId, long parentOrganizationId, java.lang.String name,
1031                    java.lang.String type, java.lang.String street, java.lang.String city,
1032                    java.lang.String zip, java.lang.Long regionId,
1033                    java.lang.Long countryId,
1034                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1035                    boolean andOperator, int start, int end,
1036                    com.liferay.portal.kernel.util.OrderByComparator obc)
1037                    throws com.liferay.portal.kernel.exception.SystemException {
1038                    return _organizationLocalService.search(companyId,
1039                            parentOrganizationId, name, type, street, city, zip, regionId,
1040                            countryId, params, andOperator, start, end, obc);
1041            }
1042    
1043            /**
1044            * Returns an ordered range of all the organizations whose name, type, or
1045            * location fields match the keywords specified for them, using the indexer.
1046            * It is preferable to use this method instead of the non-indexed version
1047            * whenever possible for performance reasons.
1048            *
1049            * <p>
1050            * Useful when paginating results. Returns a maximum of <code>end -
1051            * start</code> instances. <code>start</code> and <code>end</code> are not
1052            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1053            * refers to the first result in the set. Setting both <code>start</code>
1054            * and <code>end</code> to {@link
1055            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
1056            * result set.
1057            * </p>
1058            *
1059            * @param companyId the primary key of the organization's company
1060            * @param parentOrganizationId the primary key of the organization's parent
1061            organization
1062            * @param name the name keywords (space separated, optionally
1063            <code>null</code>)
1064            * @param type the type keywords (optionally <code>null</code>)
1065            * @param street the street keywords (optionally <code>null</code>)
1066            * @param city the city keywords (optionally <code>null</code>)
1067            * @param zip the zipcode keywords (optionally <code>null</code>)
1068            * @param region the region keywords (optionally <code>null</code>)
1069            * @param country the country keywords (optionally <code>null</code>)
1070            * @param params the finder parameters (optionally <code>null</code>). For
1071            more information see {@link
1072            com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer}.
1073            * @param andSearch whether every field must match its keywords or just one
1074            field.
1075            * @param start the lower bound of the range of organizations to return
1076            * @param end the upper bound of the range of organizations to return (not
1077            inclusive)
1078            * @param sort the field and direction by which to sort (optionally
1079            <code>null</code>)
1080            * @return the matching organizations ordered by <code>sort</code>
1081            * @throws SystemException if a system exception occurred
1082            * @see com.liferay.portlet.enterpriseadmin.util.OrganizationIndexer
1083            */
1084            public com.liferay.portal.kernel.search.Hits search(long companyId,
1085                    long parentOrganizationId, java.lang.String name,
1086                    java.lang.String type, java.lang.String street, java.lang.String city,
1087                    java.lang.String zip, java.lang.String region,
1088                    java.lang.String country,
1089                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1090                    boolean andSearch, int start, int end,
1091                    com.liferay.portal.kernel.search.Sort sort)
1092                    throws com.liferay.portal.kernel.exception.SystemException {
1093                    return _organizationLocalService.search(companyId,
1094                            parentOrganizationId, name, type, street, city, zip, region,
1095                            country, params, andSearch, start, end, sort);
1096            }
1097    
1098            /**
1099            * Returns the number of organizations that match the keywords, type,
1100            * region, and country.
1101            *
1102            * @param companyId the primary key of the organization's company
1103            * @param parentOrganizationId the primary key of the organization's parent
1104            organization
1105            * @param keywords the keywords (space separated), which may occur in the
1106            organization's name, street, city, or zipcode (optionally
1107            <code>null</code>)
1108            * @param type the organization's type (optionally <code>null</code>)
1109            * @param regionId the primary key of the organization's region (optionally
1110            <code>null</code>)
1111            * @param countryId the primary key of the organization's country
1112            (optionally <code>null</code>)
1113            * @param params the finder parameters (optionally <code>null</code>). For
1114            more information see {@link
1115            com.liferay.portal.service.persistence.OrganizationFinder}
1116            * @return the number of matching organizations
1117            * @throws SystemException if a system exception occurred
1118            * @see com.liferay.portal.service.persistence.OrganizationFinder
1119            */
1120            public int searchCount(long companyId, long parentOrganizationId,
1121                    java.lang.String keywords, java.lang.String type,
1122                    java.lang.Long regionId, java.lang.Long countryId,
1123                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
1124                    throws com.liferay.portal.kernel.exception.SystemException {
1125                    return _organizationLocalService.searchCount(companyId,
1126                            parentOrganizationId, keywords, type, regionId, countryId, params);
1127            }
1128    
1129            /**
1130            * Returns the number of organizations with the type, region, and country,
1131            * and whose name, street, city, and zipcode match the keywords specified
1132            * for them.
1133            *
1134            * @param companyId the primary key of the organization's company
1135            * @param parentOrganizationId the primary key of the organization's parent
1136            organization
1137            * @param name the name keywords (space separated, optionally
1138            <code>null</code>)
1139            * @param type the organization's type (optionally <code>null</code>)
1140            * @param street the street keywords (optionally <code>null</code>)
1141            * @param city the city keywords (optionally <code>null</code>)
1142            * @param zip the zipcode keywords (optionally <code>null</code>)
1143            * @param regionId the primary key of the organization's region (optionally
1144            <code>null</code>)
1145            * @param countryId the primary key of the organization's country
1146            (optionally <code>null</code>)
1147            * @param params the finder parameters (optionally <code>null</code>). For
1148            more information see {@link
1149            com.liferay.portal.service.persistence.OrganizationFinder}
1150            * @param andOperator whether every field must match its keywords, or just
1151            one field. For example, &quot;organizations with the name
1152            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
1153            the name 'Employees' or the city 'Chicago'&quot;.
1154            * @return the number of matching organizations
1155            * @throws SystemException if a system exception occurred
1156            * @see com.liferay.portal.service.persistence.OrganizationFinder
1157            */
1158            public int searchCount(long companyId, long parentOrganizationId,
1159                    java.lang.String name, java.lang.String type, java.lang.String street,
1160                    java.lang.String city, java.lang.String zip, java.lang.Long regionId,
1161                    java.lang.Long countryId,
1162                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1163                    boolean andOperator)
1164                    throws com.liferay.portal.kernel.exception.SystemException {
1165                    return _organizationLocalService.searchCount(companyId,
1166                            parentOrganizationId, name, type, street, city, zip, regionId,
1167                            countryId, params, andOperator);
1168            }
1169    
1170            /**
1171            * Sets the organizations in the group, removing and adding organizations to
1172            * the group as necessary.
1173            *
1174            * @param groupId the primary key of the group
1175            * @param organizationIds the primary keys of the organizations
1176            * @throws PortalException if a portal exception occurred
1177            * @throws SystemException if a system exception occurred
1178            */
1179            public void setGroupOrganizations(long groupId, long[] organizationIds)
1180                    throws com.liferay.portal.kernel.exception.PortalException,
1181                            com.liferay.portal.kernel.exception.SystemException {
1182                    _organizationLocalService.setGroupOrganizations(groupId, organizationIds);
1183            }
1184    
1185            /**
1186            * Removes the organizations from the group.
1187            *
1188            * @param groupId the primary key of the group
1189            * @param organizationIds the primary keys of the organizations
1190            * @throws PortalException if a portal exception occurred
1191            * @throws SystemException if a system exception occurred
1192            */
1193            public void unsetGroupOrganizations(long groupId, long[] organizationIds)
1194                    throws com.liferay.portal.kernel.exception.PortalException,
1195                            com.liferay.portal.kernel.exception.SystemException {
1196                    _organizationLocalService.unsetGroupOrganizations(groupId,
1197                            organizationIds);
1198            }
1199    
1200            /**
1201            * Removes the organizations from the password policy.
1202            *
1203            * @param passwordPolicyId the primary key of the password policy
1204            * @param organizationIds the primary keys of the organizations
1205            * @throws SystemException if a system exception occurred
1206            */
1207            public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
1208                    long[] organizationIds)
1209                    throws com.liferay.portal.kernel.exception.SystemException {
1210                    _organizationLocalService.unsetPasswordPolicyOrganizations(passwordPolicyId,
1211                            organizationIds);
1212            }
1213    
1214            /**
1215            * Updates the organization's asset with the new asset categories and tag
1216            * names, removing and adding asset categories and tag names as necessary.
1217            *
1218            * @param userId the primary key of the user
1219            * @param organization the organization
1220            * @param assetCategoryIds the primary keys of the asset categories
1221            * @param assetTagNames the asset tag names
1222            * @throws PortalException if a user with the primary key could not be found
1223            * @throws SystemException if a system exception occurred
1224            */
1225            public void updateAsset(long userId,
1226                    com.liferay.portal.model.Organization organization,
1227                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
1228                    throws com.liferay.portal.kernel.exception.PortalException,
1229                            com.liferay.portal.kernel.exception.SystemException {
1230                    _organizationLocalService.updateAsset(userId, organization,
1231                            assetCategoryIds, assetTagNames);
1232            }
1233    
1234            /**
1235            * Updates the organization.
1236            *
1237            * @param companyId the primary key of the organization's company
1238            * @param organizationId the primary key of the organization
1239            * @param parentOrganizationId the primary key of organization's parent
1240            organization
1241            * @param name the organization's name
1242            * @param type the organization's type
1243            * @param recursable whether permissions of the organization are to be
1244            inherited by its sub-organizations
1245            * @param regionId the primary key of the organization's region
1246            * @param countryId the primary key of the organization's country
1247            * @param statusId the organization's workflow status
1248            * @param comments the comments about the organization
1249            * @param site whether the organization is to be associated with a main
1250            site
1251            * @param serviceContext the organization's service context (optionally
1252            <code>null</code>). Can specify the organization's replacement
1253            asset category IDs, replacement asset tag names, and new expando
1254            bridge attributes.
1255            * @return the organization
1256            * @throws PortalException if an organization or parent organization with
1257            the primary key could not be found or if the new information was
1258            invalid
1259            * @throws SystemException if a system exception occurred
1260            */
1261            public com.liferay.portal.model.Organization updateOrganization(
1262                    long companyId, long organizationId, long parentOrganizationId,
1263                    java.lang.String name, java.lang.String type, boolean recursable,
1264                    long regionId, long countryId, int statusId, java.lang.String comments,
1265                    boolean site, com.liferay.portal.service.ServiceContext serviceContext)
1266                    throws com.liferay.portal.kernel.exception.PortalException,
1267                            com.liferay.portal.kernel.exception.SystemException {
1268                    return _organizationLocalService.updateOrganization(companyId,
1269                            organizationId, parentOrganizationId, name, type, recursable,
1270                            regionId, countryId, statusId, comments, site, serviceContext);
1271            }
1272    
1273            public OrganizationLocalService getWrappedOrganizationLocalService() {
1274                    return _organizationLocalService;
1275            }
1276    
1277            public void setWrappedOrganizationLocalService(
1278                    OrganizationLocalService organizationLocalService) {
1279                    _organizationLocalService = organizationLocalService;
1280            }
1281    
1282            private OrganizationLocalService _organizationLocalService;
1283    }