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