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