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 java.util.List<com.liferay.portal.model.Organization> getNoAssetOrganizations() {
523                    return _organizationLocalService.getNoAssetOrganizations();
524            }
525    
526            /**
527            * Returns the OSGi service identifier.
528            *
529            * @return the OSGi service identifier
530            */
531            @Override
532            public java.lang.String getOSGiServiceIdentifier() {
533                    return _organizationLocalService.getOSGiServiceIdentifier();
534            }
535    
536            /**
537            * Returns the organization with the name.
538            *
539            * @param companyId the primary key of the organization's company
540            * @param name the organization's name
541            * @return the organization with the name
542            */
543            @Override
544            public com.liferay.portal.model.Organization getOrganization(
545                    long companyId, java.lang.String name)
546                    throws com.liferay.portal.kernel.exception.PortalException {
547                    return _organizationLocalService.getOrganization(companyId, name);
548            }
549    
550            /**
551            * Returns the organization with the primary key.
552            *
553            * @param organizationId the primary key of the organization
554            * @return the organization
555            * @throws PortalException if a organization with the primary key could not be found
556            */
557            @Override
558            public com.liferay.portal.model.Organization getOrganization(
559                    long organizationId)
560                    throws com.liferay.portal.kernel.exception.PortalException {
561                    return _organizationLocalService.getOrganization(organizationId);
562            }
563    
564            /**
565            * Returns the organization with the matching UUID and company.
566            *
567            * @param uuid the organization's UUID
568            * @param companyId the primary key of the company
569            * @return the matching organization
570            * @throws PortalException if a matching organization could not be found
571            */
572            @Override
573            public com.liferay.portal.model.Organization getOrganizationByUuidAndCompanyId(
574                    java.lang.String uuid, long companyId)
575                    throws com.liferay.portal.kernel.exception.PortalException {
576                    return _organizationLocalService.getOrganizationByUuidAndCompanyId(uuid,
577                            companyId);
578            }
579    
580            /**
581            * Returns the primary key of the organization with the name.
582            *
583            * @param companyId the primary key of the organization's company
584            * @param name the organization's name
585            * @return the primary key of the organization with the name, or
586            <code>0</code> if the organization could not be found
587            */
588            @Override
589            public long getOrganizationId(long companyId, java.lang.String name) {
590                    return _organizationLocalService.getOrganizationId(companyId, name);
591            }
592    
593            /**
594            * Returns all the organizations belonging to the parent organization.
595            *
596            * @param companyId the primary key of the organization's company
597            * @param parentOrganizationId the primary key of the organization's parent
598            organization
599            * @return the organizations belonging to the parent organization
600            */
601            @Override
602            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
603                    long companyId, long parentOrganizationId) {
604                    return _organizationLocalService.getOrganizations(companyId,
605                            parentOrganizationId);
606            }
607    
608            /**
609            * Returns a range of all the organizations belonging to the parent
610            * organization.
611            *
612            * <p>
613            * Useful when paginating results. Returns a maximum of <code>end -
614            * start</code> instances. <code>start</code> and <code>end</code> are not
615            * primary keys, they are indexes in the result set. Thus, <code>0</code>
616            * refers to the first result in the set. Setting both <code>start</code>
617            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
618            * result set.
619            * </p>
620            *
621            * @param companyId the primary key of the organization's company
622            * @param parentOrganizationId the primary key of the organization's parent
623            organization
624            * @param start the lower bound of the range of organizations to return
625            * @param end the upper bound of the range of organizations to return (not
626            inclusive)
627            * @return the range of organizations belonging to the parent organization
628            * @see com.liferay.portal.service.persistence.OrganizationPersistence#findByC_P(
629            long, long, int, int)
630            */
631            @Override
632            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
633                    long companyId, long parentOrganizationId, int start, int end) {
634                    return _organizationLocalService.getOrganizations(companyId,
635                            parentOrganizationId, start, end);
636            }
637    
638            /**
639            * Returns the organizations with the primary keys.
640            *
641            * @param organizationIds the primary keys of the organizations
642            * @return the organizations with the primary keys
643            */
644            @Override
645            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
646                    long[] organizationIds)
647                    throws com.liferay.portal.kernel.exception.PortalException {
648                    return _organizationLocalService.getOrganizations(organizationIds);
649            }
650    
651            /**
652            * Returns a range of all the organizations.
653            *
654            * <p>
655            * 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.
656            * </p>
657            *
658            * @param start the lower bound of the range of organizations
659            * @param end the upper bound of the range of organizations (not inclusive)
660            * @return the range of organizations
661            */
662            @Override
663            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
664                    int start, int end) {
665                    return _organizationLocalService.getOrganizations(start, end);
666            }
667    
668            @Override
669            public java.util.List<com.liferay.portal.model.Organization> getOrganizations(
670                    long userId, int start, int end,
671                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc)
672                    throws com.liferay.portal.kernel.exception.PortalException {
673                    return _organizationLocalService.getOrganizations(userId, start, end,
674                            obc);
675            }
676    
677            /**
678            * Returns the number of organizations.
679            *
680            * @return the number of organizations
681            */
682            @Override
683            public int getOrganizationsCount() {
684                    return _organizationLocalService.getOrganizationsCount();
685            }
686    
687            /**
688            * Returns the number of organizations belonging to the parent organization.
689            *
690            * @param companyId the primary key of the organization's company
691            * @param parentOrganizationId the primary key of the organization's parent
692            organization
693            * @return the number of organizations belonging to the parent organization
694            */
695            @Override
696            public int getOrganizationsCount(long companyId, long parentOrganizationId) {
697                    return _organizationLocalService.getOrganizationsCount(companyId,
698                            parentOrganizationId);
699            }
700    
701            /**
702            * Returns the parent organizations in order by closest ancestor. The list
703            * starts with the organization itself.
704            *
705            * @param organizationId the primary key of the organization
706            * @return the parent organizations in order by closest ancestor
707            */
708            @Override
709            public java.util.List<com.liferay.portal.model.Organization> getParentOrganizations(
710                    long organizationId)
711                    throws com.liferay.portal.kernel.exception.PortalException {
712                    return _organizationLocalService.getParentOrganizations(organizationId);
713            }
714    
715            @Override
716            public com.liferay.portal.model.PersistedModel getPersistedModel(
717                    java.io.Serializable primaryKeyObj)
718                    throws com.liferay.portal.kernel.exception.PortalException {
719                    return _organizationLocalService.getPersistedModel(primaryKeyObj);
720            }
721    
722            /**
723            * Returns the suborganizations of the organization.
724            *
725            * @param companyId the primary key of the organization's company
726            * @param organizationId the primary key of the organization
727            * @return the suborganizations of the organization
728            */
729            @Override
730            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations(
731                    long companyId, long organizationId) {
732                    return _organizationLocalService.getSuborganizations(companyId,
733                            organizationId);
734            }
735    
736            /**
737            * Returns the suborganizations of the organizations.
738            *
739            * @param organizations the organizations from which to get
740            suborganizations
741            * @return the suborganizations of the organizations
742            */
743            @Override
744            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations(
745                    java.util.List<com.liferay.portal.model.Organization> organizations) {
746                    return _organizationLocalService.getSuborganizations(organizations);
747            }
748    
749            /**
750            * Returns the count of suborganizations of the organization.
751            *
752            * @param companyId the primary key of the organization's company
753            * @param organizationId the primary key of the organization
754            * @return the count of suborganizations of the organization
755            */
756            @Override
757            public int getSuborganizationsCount(long companyId, long organizationId) {
758                    return _organizationLocalService.getSuborganizationsCount(companyId,
759                            organizationId);
760            }
761    
762            /**
763            * Returns the intersection of <code>allOrganizations</code> and
764            * <code>availableOrganizations</code>.
765            *
766            * @param allOrganizations the organizations to check for availability
767            * @param availableOrganizations the available organizations
768            * @return the intersection of <code>allOrganizations</code> and
769            <code>availableOrganizations</code>
770            */
771            @Override
772            public java.util.List<com.liferay.portal.model.Organization> getSubsetOrganizations(
773                    java.util.List<com.liferay.portal.model.Organization> allOrganizations,
774                    java.util.List<com.liferay.portal.model.Organization> availableOrganizations) {
775                    return _organizationLocalService.getSubsetOrganizations(allOrganizations,
776                            availableOrganizations);
777            }
778    
779            /**
780            * Returns all the IDs of organizations with which the user is explicitly
781            * associated, optionally including the IDs of organizations that the user
782            * administers or owns.
783            *
784            * <p>
785            * A user is considered to be <i>explicitly</i> associated with an
786            * organization if his account is individually created within the
787            * organization or if the user is later added to it.
788            * </p>
789            *
790            * @param userId the primary key of the user
791            * @param includeAdministrative whether to include the IDs of organizations
792            that the user administers or owns, even if he's not a member of
793            the organizations
794            * @return the IDs of organizations with which the user is explicitly
795            associated, optionally including the IDs of organizations that
796            the user administers or owns
797            */
798            @Override
799            public long[] getUserOrganizationIds(long userId,
800                    boolean includeAdministrative)
801                    throws com.liferay.portal.kernel.exception.PortalException {
802                    return _organizationLocalService.getUserOrganizationIds(userId,
803                            includeAdministrative);
804            }
805    
806            @Override
807            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
808                    long userId) {
809                    return _organizationLocalService.getUserOrganizations(userId);
810            }
811    
812            /**
813            * Returns all the organizations with which the user is explicitly
814            * associated, optionally including the organizations that the user
815            * administers or owns.
816            *
817            * <p>
818            * A user is considered to be <i>explicitly</i> associated with an
819            * organization if his account is individually created within the
820            * organization or if the user is later added as a member.
821            * </p>
822            *
823            * @param userId the primary key of the user
824            * @param includeAdministrative whether to include the IDs of organizations
825            that the user administers or owns, even if he's not a member of
826            the organizations
827            * @return the organizations with which the user is explicitly associated,
828            optionally including the organizations that the user administers
829            or owns
830            */
831            @Override
832            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
833                    long userId, boolean includeAdministrative)
834                    throws com.liferay.portal.kernel.exception.PortalException {
835                    return _organizationLocalService.getUserOrganizations(userId,
836                            includeAdministrative);
837            }
838    
839            @Override
840            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
841                    long userId, int start, int end) {
842                    return _organizationLocalService.getUserOrganizations(userId, start, end);
843            }
844    
845            @Override
846            public java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
847                    long userId, int start, int end,
848                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> orderByComparator) {
849                    return _organizationLocalService.getUserOrganizations(userId, start,
850                            end, orderByComparator);
851            }
852    
853            @Override
854            public int getUserOrganizationsCount(long userId) {
855                    return _organizationLocalService.getUserOrganizationsCount(userId);
856            }
857    
858            /**
859            * Returns the userIds of the users associated with the organization.
860            *
861            * @param organizationId the organizationId of the organization
862            * @return long[] the userIds of users associated with the organization
863            */
864            @Override
865            public long[] getUserPrimaryKeys(long organizationId) {
866                    return _organizationLocalService.getUserPrimaryKeys(organizationId);
867            }
868    
869            @Override
870            public boolean hasGroupOrganization(long groupId, long organizationId) {
871                    return _organizationLocalService.hasGroupOrganization(groupId,
872                            organizationId);
873            }
874    
875            @Override
876            public boolean hasGroupOrganizations(long groupId) {
877                    return _organizationLocalService.hasGroupOrganizations(groupId);
878            }
879    
880            /**
881            * Returns <code>true</code> if the password policy has been assigned to the
882            * organization.
883            *
884            * @param passwordPolicyId the primary key of the password policy
885            * @param organizationId the primary key of the organization
886            * @return <code>true</code> if the password policy has been assigned to the
887            organization; <code>false</code> otherwise
888            */
889            @Override
890            public boolean hasPasswordPolicyOrganization(long passwordPolicyId,
891                    long organizationId) {
892                    return _organizationLocalService.hasPasswordPolicyOrganization(passwordPolicyId,
893                            organizationId);
894            }
895    
896            @Override
897            public boolean hasUserOrganization(long userId, long organizationId) {
898                    return _organizationLocalService.hasUserOrganization(userId,
899                            organizationId);
900            }
901    
902            /**
903            * Returns <code>true</code> if the user is a member of the organization,
904            * optionally focusing on suborganizations or the specified organization.
905            * This method is usually called to determine if the user has view access to
906            * a resource belonging to the organization.
907            *
908            * <ol>
909            * <li>
910            * If <code>inheritSuborganizations=<code>false</code></code>:
911            * the method checks whether the user belongs to the organization specified
912            * by <code>organizationId</code>. The parameter
913            * <code>includeSpecifiedOrganization</code> is ignored.
914            * </li>
915            * <li>
916            * The parameter <code>includeSpecifiedOrganization</code> is
917            * ignored unless <code>inheritSuborganizations</code> is also
918            * <code>true</code>.
919            * </li>
920            * <li>
921            * If <code>inheritSuborganizations=<code>true</code></code> and
922            * <code>includeSpecifiedOrganization=<code>false</code></code>: the method
923            * checks
924            * whether the user belongs to one of the child organizations of the one
925            * specified by <code>organizationId</code>.
926            * </li>
927            * <li>
928            * If <code>inheritSuborganizations=<code>true</code></code> and
929            * <code>includeSpecifiedOrganization=<code>true</code></code>: the method
930            * checks whether
931            * the user belongs to the organization specified by
932            * <code>organizationId</code> or any of
933            * its child organizations.
934            * </li>
935            * </ol>
936            *
937            * @param userId the primary key of the organization's user
938            * @param organizationId the primary key of the organization
939            * @param inheritSuborganizations if <code>true</code> suborganizations are
940            considered in the determination
941            * @param includeSpecifiedOrganization if <code>true</code> the
942            organization specified by <code>organizationId</code> is
943            considered in the determination
944            * @return <code>true</code> if the user has access to the organization;
945            <code>false</code> otherwise
946            * @see com.liferay.portal.service.persistence.OrganizationFinder
947            */
948            @Override
949            public boolean hasUserOrganization(long userId, long organizationId,
950                    boolean inheritSuborganizations, boolean includeSpecifiedOrganization)
951                    throws com.liferay.portal.kernel.exception.PortalException {
952                    return _organizationLocalService.hasUserOrganization(userId,
953                            organizationId, inheritSuborganizations,
954                            includeSpecifiedOrganization);
955            }
956    
957            @Override
958            public boolean hasUserOrganizations(long userId) {
959                    return _organizationLocalService.hasUserOrganizations(userId);
960            }
961    
962            /**
963            * Rebuilds the organization's tree.
964            *
965            * <p>
966            * Only call this method if the tree has become stale through operations
967            * other than normal CRUD. Under normal circumstances the tree is
968            * automatically rebuilt whenever necessary.
969            * </p>
970            *
971            * @param companyId the primary key of the organization's company
972            */
973            @Override
974            public void rebuildTree(long companyId)
975                    throws com.liferay.portal.kernel.exception.PortalException {
976                    _organizationLocalService.rebuildTree(companyId);
977            }
978    
979            /**
980            * Returns an ordered range of all the organizations that match the
981            * keywords, using the indexer. It is preferable to use this method instead
982            * of the non-indexed version whenever possible for performance reasons.
983            *
984            * <p>
985            * Useful when paginating results. Returns a maximum of <code>end -
986            * start</code> instances. <code>start</code> and <code>end</code> are not
987            * primary keys, they are indexes in the result set. Thus, <code>0</code>
988            * refers to the first result in the set. Setting both <code>start</code>
989            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
990            * result set.
991            * </p>
992            *
993            * @param companyId the primary key of the organization's company
994            * @param parentOrganizationId the primary key of the organization's parent
995            organization
996            * @param keywords the keywords (space separated), which may occur in the
997            organization's name, street, city, zipcode, type, region or
998            country (optionally <code>null</code>)
999            * @param params the finder parameters (optionally <code>null</code>). For
1000            more information see {@link
1001            com.liferay.portlet.usersadmin.util.OrganizationIndexer}
1002            * @param start the lower bound of the range of organizations to return
1003            * @param end the upper bound of the range of organizations to return (not
1004            inclusive)
1005            * @param sort the field and direction by which to sort (optionally
1006            <code>null</code>)
1007            * @return the matching organizations ordered by name
1008            * @see com.liferay.portlet.usersadmin.util.OrganizationIndexer
1009            */
1010            @Override
1011            public com.liferay.portal.kernel.search.Hits search(long companyId,
1012                    long parentOrganizationId, java.lang.String keywords,
1013                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1014                    int start, int end, com.liferay.portal.kernel.search.Sort sort) {
1015                    return _organizationLocalService.search(companyId,
1016                            parentOrganizationId, keywords, params, start, end, sort);
1017            }
1018    
1019            /**
1020            * Returns a name ordered range of all the organizations that match the
1021            * keywords, type, region, and country, without using the indexer. It is
1022            * preferable to use the indexed version {@link #search(long, long, String,
1023            * LinkedHashMap, int, int, Sort)} instead of this method wherever possible
1024            * for performance reasons.
1025            *
1026            * <p>
1027            * Useful when paginating results. Returns a maximum of <code>end -
1028            * start</code> instances. <code>start</code> and <code>end</code> are not
1029            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1030            * refers to the first result in the set. Setting both <code>start</code>
1031            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1032            * result set.
1033            * </p>
1034            *
1035            * @param companyId the primary key of the organization's company
1036            * @param parentOrganizationId the primary key of the organization's parent
1037            organization
1038            * @param keywords the keywords (space separated), which may occur in the
1039            organization's name, street, city, or zipcode (optionally
1040            <code>null</code>)
1041            * @param type the organization's type (optionally <code>null</code>)
1042            * @param regionId the primary key of the organization's region (optionally
1043            <code>null</code>)
1044            * @param countryId the primary key of the organization's country
1045            (optionally <code>null</code>)
1046            * @param params the finder params. For more information see {@link
1047            com.liferay.portal.service.persistence.OrganizationFinder}
1048            * @param start the lower bound of the range of organizations to return
1049            * @param end the upper bound of the range of organizations to return (not
1050            inclusive)
1051            * @return the matching organizations ordered by name
1052            * @see com.liferay.portal.service.persistence.OrganizationFinder
1053            */
1054            @Override
1055            public java.util.List<com.liferay.portal.model.Organization> search(
1056                    long companyId, long parentOrganizationId, java.lang.String keywords,
1057                    java.lang.String type, java.lang.Long regionId,
1058                    java.lang.Long countryId,
1059                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1060                    int start, int end) {
1061                    return _organizationLocalService.search(companyId,
1062                            parentOrganizationId, keywords, type, regionId, countryId, params,
1063                            start, end);
1064            }
1065    
1066            /**
1067            * Returns an ordered range of all the organizations that match the
1068            * keywords, type, region, and country, without using the indexer. It is
1069            * preferable to use the indexed version {@link #search(long, long, String,
1070            * String, String, String, String, String, String, LinkedHashMap, boolean,
1071            * int, int, Sort)} instead of this method wherever possible for performance
1072            * reasons.
1073            *
1074            * <p>
1075            * Useful when paginating results. Returns a maximum of <code>end -
1076            * start</code> instances. <code>start</code> and <code>end</code> are not
1077            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1078            * refers to the first result in the set. Setting both <code>start</code>
1079            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1080            * result set.
1081            * </p>
1082            *
1083            * @param companyId the primary key of the organization's company
1084            * @param parentOrganizationId the primary key of the organization's parent
1085            organization
1086            * @param keywords the keywords (space separated), which may occur in the
1087            organization's name, street, city, or zipcode (optionally
1088            <code>null</code>)
1089            * @param type the organization's type (optionally <code>null</code>)
1090            * @param regionId the primary key of the organization's region (optionally
1091            <code>null</code>)
1092            * @param countryId the primary key of the organization's country
1093            (optionally <code>null</code>)
1094            * @param params the finder params. For more information see {@link
1095            com.liferay.portal.service.persistence.OrganizationFinder}
1096            * @param start the lower bound of the range of organizations to return
1097            * @param end the upper bound of the range of organizations to return (not
1098            inclusive)
1099            * @param obc the comparator to order the organizations (optionally
1100            <code>null</code>)
1101            * @return the matching organizations ordered by comparator <code>obc</code>
1102            * @see com.liferay.portal.service.persistence.OrganizationFinder
1103            */
1104            @Override
1105            public java.util.List<com.liferay.portal.model.Organization> search(
1106                    long companyId, long parentOrganizationId, java.lang.String keywords,
1107                    java.lang.String type, java.lang.Long regionId,
1108                    java.lang.Long countryId,
1109                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1110                    int start, int end,
1111                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) {
1112                    return _organizationLocalService.search(companyId,
1113                            parentOrganizationId, keywords, type, regionId, countryId, params,
1114                            start, end, obc);
1115            }
1116    
1117            /**
1118            * Returns an ordered range of all the organizations whose name, type, or
1119            * location fields match the keywords specified for them, using the indexer.
1120            * It is preferable to use this method instead of the non-indexed version
1121            * whenever possible for performance reasons.
1122            *
1123            * <p>
1124            * Useful when paginating results. Returns a maximum of <code>end -
1125            * start</code> instances. <code>start</code> and <code>end</code> are not
1126            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1127            * refers to the first result in the set. Setting both <code>start</code>
1128            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1129            * result set.
1130            * </p>
1131            *
1132            * @param companyId the primary key of the organization's company
1133            * @param parentOrganizationId the primary key of the organization's parent
1134            organization
1135            * @param name the name keywords (space separated, optionally
1136            <code>null</code>)
1137            * @param type the type keywords (optionally <code>null</code>)
1138            * @param street the street keywords (optionally <code>null</code>)
1139            * @param city the city keywords (optionally <code>null</code>)
1140            * @param zip the zipcode keywords (optionally <code>null</code>)
1141            * @param region the region keywords (optionally <code>null</code>)
1142            * @param country the country keywords (optionally <code>null</code>)
1143            * @param params the finder parameters (optionally <code>null</code>). For
1144            more information see {@link
1145            com.liferay.portlet.usersadmin.util.OrganizationIndexer}.
1146            * @param andSearch whether every field must match its keywords or just one
1147            field
1148            * @param start the lower bound of the range of organizations to return
1149            * @param end the upper bound of the range of organizations to return (not
1150            inclusive)
1151            * @param sort the field and direction by which to sort (optionally
1152            <code>null</code>)
1153            * @return the matching organizations ordered by <code>sort</code>
1154            * @see com.liferay.portlet.usersadmin.util.OrganizationIndexer
1155            */
1156            @Override
1157            public com.liferay.portal.kernel.search.Hits search(long companyId,
1158                    long parentOrganizationId, java.lang.String name,
1159                    java.lang.String type, java.lang.String street, java.lang.String city,
1160                    java.lang.String zip, java.lang.String region,
1161                    java.lang.String country,
1162                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1163                    boolean andSearch, int start, int end,
1164                    com.liferay.portal.kernel.search.Sort sort) {
1165                    return _organizationLocalService.search(companyId,
1166                            parentOrganizationId, name, type, street, city, zip, region,
1167                            country, params, andSearch, start, end, sort);
1168            }
1169    
1170            /**
1171            * Returns a name ordered range of all the organizations with the type,
1172            * region, and country, and whose name, street, city, and zipcode match the
1173            * keywords specified for them, without using the indexer. It is preferable
1174            * to use the indexed version {@link #search(long, long, String, String,
1175            * String, String, String, String, String, LinkedHashMap, boolean, int, int,
1176            * Sort)} instead of this method wherever possible for performance reasons.
1177            *
1178            * <p>
1179            * Useful when paginating results. Returns a maximum of <code>end -
1180            * start</code> instances. <code>start</code> and <code>end</code> are not
1181            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1182            * refers to the first result in the set. Setting both <code>start</code>
1183            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1184            * result set.
1185            * </p>
1186            *
1187            * @param companyId the primary key of the organization's company
1188            * @param parentOrganizationId the primary key of the organization's parent
1189            * @param name the name keywords (space separated, optionally
1190            <code>null</code>)
1191            * @param type the organization's type (optionally <code>null</code>)
1192            * @param street the street keywords (optionally <code>null</code>)
1193            * @param city the city keywords (optionally <code>null</code>)
1194            * @param zip the zipcode keywords (optionally <code>null</code>)
1195            * @param regionId the primary key of the organization's region (optionally
1196            <code>null</code>)
1197            * @param countryId the primary key of the organization's country
1198            (optionally <code>null</code>)
1199            * @param params the finder parameters (optionally <code>null</code>). For
1200            more information see {@link
1201            com.liferay.portal.service.persistence.OrganizationFinder}
1202            * @param andOperator whether every field must match its keywords, or just
1203            one field. For example, &quot;organizations with the name
1204            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
1205            the name 'Employees' or the city 'Chicago'&quot;.
1206            * @param start the lower bound of the range of organizations to return
1207            * @param end the upper bound of the range of organizations to return (not
1208            inclusive)
1209            * @return the matching organizations ordered by name
1210            * @see com.liferay.portal.service.persistence.OrganizationFinder
1211            */
1212            @Override
1213            public java.util.List<com.liferay.portal.model.Organization> search(
1214                    long companyId, long parentOrganizationId, java.lang.String name,
1215                    java.lang.String type, java.lang.String street, java.lang.String city,
1216                    java.lang.String zip, java.lang.Long regionId,
1217                    java.lang.Long countryId,
1218                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1219                    boolean andOperator, int start, int end) {
1220                    return _organizationLocalService.search(companyId,
1221                            parentOrganizationId, name, type, street, city, zip, regionId,
1222                            countryId, params, andOperator, start, end);
1223            }
1224    
1225            /**
1226            * Returns an ordered range of all the organizations with the type, region,
1227            * and country, and whose name, street, city, and zipcode match the keywords
1228            * specified for them, without using the indexer. It is preferable to use
1229            * the indexed version {@link #search(long, long, String, String, String,
1230            * String, String, String, String, LinkedHashMap, boolean, int, int, Sort)}
1231            * instead of this method wherever possible for performance reasons.
1232            *
1233            * <p>
1234            * Useful when paginating results. Returns a maximum of <code>end -
1235            * start</code> instances. <code>start</code> and <code>end</code> are not
1236            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1237            * refers to the first result in the set. Setting both <code>start</code>
1238            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1239            * result set.
1240            * </p>
1241            *
1242            * @param companyId the primary key of the organization's company
1243            * @param parentOrganizationId the primary key of the organization's parent
1244            organization
1245            * @param name the name keywords (space separated, optionally
1246            <code>null</code>)
1247            * @param type the organization's type (optionally <code>null</code>)
1248            * @param street the street keywords (optionally <code>null</code>)
1249            * @param city the city keywords (optionally <code>null</code>)
1250            * @param zip the zipcode keywords (optionally <code>null</code>)
1251            * @param regionId the primary key of the organization's region (optionally
1252            <code>null</code>)
1253            * @param countryId the primary key of the organization's country
1254            (optionally <code>null</code>)
1255            * @param params the finder parameters (optionally <code>null</code>). For
1256            more information see {@link
1257            com.liferay.portal.service.persistence.OrganizationFinder}
1258            * @param andOperator whether every field must match its keywords, or just
1259            one field. For example, &quot;organizations with the name
1260            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
1261            the name 'Employees' or the city 'Chicago'&quot;.
1262            * @param start the lower bound of the range of organizations to return
1263            * @param end the upper bound of the range of organizations to return (not
1264            inclusive)
1265            * @param obc the comparator to order the organizations (optionally
1266            <code>null</code>)
1267            * @return the matching organizations ordered by comparator <code>obc</code>
1268            * @see com.liferay.portal.service.persistence.OrganizationFinder
1269            */
1270            @Override
1271            public java.util.List<com.liferay.portal.model.Organization> search(
1272                    long companyId, long parentOrganizationId, java.lang.String name,
1273                    java.lang.String type, java.lang.String street, java.lang.String city,
1274                    java.lang.String zip, java.lang.Long regionId,
1275                    java.lang.Long countryId,
1276                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1277                    boolean andOperator, int start, int end,
1278                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Organization> obc) {
1279                    return _organizationLocalService.search(companyId,
1280                            parentOrganizationId, name, type, street, city, zip, regionId,
1281                            countryId, params, andOperator, start, end, obc);
1282            }
1283    
1284            /**
1285            * Returns the number of organizations that match the keywords, type,
1286            * region, and country.
1287            *
1288            * @param companyId the primary key of the organization's company
1289            * @param parentOrganizationId the primary key of the organization's parent
1290            organization
1291            * @param keywords the keywords (space separated), which may occur in the
1292            organization's name, street, city, or zipcode (optionally
1293            <code>null</code>)
1294            * @param type the organization's type (optionally <code>null</code>)
1295            * @param regionId the primary key of the organization's region (optionally
1296            <code>null</code>)
1297            * @param countryId the primary key of the organization's country
1298            (optionally <code>null</code>)
1299            * @param params the finder parameters (optionally <code>null</code>). For
1300            more information see {@link
1301            com.liferay.portal.service.persistence.OrganizationFinder}
1302            * @return the number of matching organizations
1303            * @see com.liferay.portal.service.persistence.OrganizationFinder
1304            */
1305            @Override
1306            public int searchCount(long companyId, long parentOrganizationId,
1307                    java.lang.String keywords, java.lang.String type,
1308                    java.lang.Long regionId, java.lang.Long countryId,
1309                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
1310                    return _organizationLocalService.searchCount(companyId,
1311                            parentOrganizationId, keywords, type, regionId, countryId, params);
1312            }
1313    
1314            /**
1315            * Returns the number of organizations with the type, region, and country,
1316            * and whose name, street, city, and zipcode match the keywords specified
1317            * for them.
1318            *
1319            * @param companyId the primary key of the organization's company
1320            * @param parentOrganizationId the primary key of the organization's parent
1321            organization
1322            * @param name the name keywords (space separated, optionally
1323            <code>null</code>)
1324            * @param type the organization's type (optionally <code>null</code>)
1325            * @param street the street keywords (optionally <code>null</code>)
1326            * @param city the city keywords (optionally <code>null</code>)
1327            * @param zip the zipcode keywords (optionally <code>null</code>)
1328            * @param regionId the primary key of the organization's region (optionally
1329            <code>null</code>)
1330            * @param countryId the primary key of the organization's country
1331            (optionally <code>null</code>)
1332            * @param params the finder parameters (optionally <code>null</code>). For
1333            more information see {@link
1334            com.liferay.portal.service.persistence.OrganizationFinder}
1335            * @param andOperator whether every field must match its keywords, or just
1336            one field. For example, &quot;organizations with the name
1337            'Employees' and city 'Chicago'&quot; vs &quot;organizations with
1338            the name 'Employees' or the city 'Chicago'&quot;.
1339            * @return the number of matching organizations
1340            * @see com.liferay.portal.service.persistence.OrganizationFinder
1341            */
1342            @Override
1343            public int searchCount(long companyId, long parentOrganizationId,
1344                    java.lang.String name, java.lang.String type, java.lang.String street,
1345                    java.lang.String city, java.lang.String zip, java.lang.Long regionId,
1346                    java.lang.Long countryId,
1347                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1348                    boolean andOperator) {
1349                    return _organizationLocalService.searchCount(companyId,
1350                            parentOrganizationId, name, type, street, city, zip, regionId,
1351                            countryId, params, andOperator);
1352            }
1353    
1354            @Override
1355            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.model.Organization> searchOrganizations(
1356                    long companyId, long parentOrganizationId, java.lang.String keywords,
1357                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1358                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
1359                    throws com.liferay.portal.kernel.exception.PortalException {
1360                    return _organizationLocalService.searchOrganizations(companyId,
1361                            parentOrganizationId, keywords, params, start, end, sort);
1362            }
1363    
1364            @Override
1365            public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.portal.model.Organization> searchOrganizations(
1366                    long companyId, long parentOrganizationId, java.lang.String name,
1367                    java.lang.String type, java.lang.String street, java.lang.String city,
1368                    java.lang.String zip, java.lang.String region,
1369                    java.lang.String country,
1370                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
1371                    boolean andSearch, int start, int end,
1372                    com.liferay.portal.kernel.search.Sort sort)
1373                    throws com.liferay.portal.kernel.exception.PortalException {
1374                    return _organizationLocalService.searchOrganizations(companyId,
1375                            parentOrganizationId, name, type, street, city, zip, region,
1376                            country, params, andSearch, start, end, sort);
1377            }
1378    
1379            @Override
1380            public void setGroupOrganizations(long groupId, long[] organizationIds) {
1381                    _organizationLocalService.setGroupOrganizations(groupId, organizationIds);
1382            }
1383    
1384            @Override
1385            public void setUserOrganizations(long userId, long[] organizationIds) {
1386                    _organizationLocalService.setUserOrganizations(userId, organizationIds);
1387            }
1388    
1389            /**
1390            * Removes the organizations from the group.
1391            *
1392            * @param groupId the primary key of the group
1393            * @param organizationIds the primary keys of the organizations
1394            */
1395            @Override
1396            public void unsetGroupOrganizations(long groupId, long[] organizationIds) {
1397                    _organizationLocalService.unsetGroupOrganizations(groupId,
1398                            organizationIds);
1399            }
1400    
1401            /**
1402            * Removes the organizations from the password policy.
1403            *
1404            * @param passwordPolicyId the primary key of the password policy
1405            * @param organizationIds the primary keys of the organizations
1406            */
1407            @Override
1408            public void unsetPasswordPolicyOrganizations(long passwordPolicyId,
1409                    long[] organizationIds) {
1410                    _organizationLocalService.unsetPasswordPolicyOrganizations(passwordPolicyId,
1411                            organizationIds);
1412            }
1413    
1414            /**
1415            * Updates the organization's asset with the new asset categories and tag
1416            * names, removing and adding asset categories and tag names as necessary.
1417            *
1418            * @param userId the primary key of the user
1419            * @param organization the organization
1420            * @param assetCategoryIds the primary keys of the asset categories
1421            * @param assetTagNames the asset tag names
1422            */
1423            @Override
1424            public void updateAsset(long userId,
1425                    com.liferay.portal.model.Organization organization,
1426                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
1427                    throws com.liferay.portal.kernel.exception.PortalException {
1428                    _organizationLocalService.updateAsset(userId, organization,
1429                            assetCategoryIds, assetTagNames);
1430            }
1431    
1432            /**
1433            * Updates the organization.
1434            *
1435            * @param companyId the primary key of the organization's company
1436            * @param organizationId the primary key of the organization
1437            * @param parentOrganizationId the primary key of organization's parent
1438            organization
1439            * @param name the organization's name
1440            * @param type the organization's type
1441            * @param recursable whether permissions of the organization are to be
1442            inherited by its suborganizations
1443            * @param regionId the primary key of the organization's region
1444            * @param countryId the primary key of the organization's country
1445            * @param statusId the organization's workflow status
1446            * @param comments the comments about the organization
1447            * @param site whether the organization is to be associated with a main
1448            site
1449            * @param serviceContext the service context to be applied (optionally
1450            <code>null</code>). Can set asset category IDs and asset tag
1451            names for the organization, and merge expando bridge
1452            attributes for the organization.
1453            * @return the organization
1454            * @deprecated As of 6.2.0, replaced by {@link #updateOrganization(long,
1455            long, long, String, String, long, long, int, String, boolean,
1456            byte[], boolean, ServiceContext)}
1457            */
1458            @Deprecated
1459            @Override
1460            public com.liferay.portal.model.Organization updateOrganization(
1461                    long companyId, long organizationId, long parentOrganizationId,
1462                    java.lang.String name, java.lang.String type, boolean recursable,
1463                    long regionId, long countryId, long statusId,
1464                    java.lang.String comments, boolean site,
1465                    com.liferay.portal.service.ServiceContext serviceContext)
1466                    throws com.liferay.portal.kernel.exception.PortalException {
1467                    return _organizationLocalService.updateOrganization(companyId,
1468                            organizationId, parentOrganizationId, name, type, recursable,
1469                            regionId, countryId, statusId, comments, site, serviceContext);
1470            }
1471    
1472            /**
1473            * Updates the organization.
1474            *
1475            * @param companyId the primary key of the organization's company
1476            * @param organizationId the primary key of the organization
1477            * @param parentOrganizationId the primary key of organization's parent
1478            organization
1479            * @param name the organization's name
1480            * @param type the organization's type
1481            * @param regionId the primary key of the organization's region
1482            * @param countryId the primary key of the organization's country
1483            * @param statusId the organization's workflow status
1484            * @param comments the comments about the organization
1485            * @param logo whether to update the ogranization's logo
1486            * @param logoBytes the new logo image data
1487            * @param site whether the organization is to be associated with a main
1488            site
1489            * @param serviceContext the service context to be applied (optionally
1490            <code>null</code>). Can set asset category IDs and asset tag
1491            names for the organization, and merge expando bridge attributes
1492            for the organization.
1493            * @return the organization
1494            */
1495            @Override
1496            public com.liferay.portal.model.Organization updateOrganization(
1497                    long companyId, long organizationId, long parentOrganizationId,
1498                    java.lang.String name, java.lang.String type, long regionId,
1499                    long countryId, long statusId, java.lang.String comments, boolean logo,
1500                    byte[] logoBytes, boolean site,
1501                    com.liferay.portal.service.ServiceContext serviceContext)
1502                    throws com.liferay.portal.kernel.exception.PortalException {
1503                    return _organizationLocalService.updateOrganization(companyId,
1504                            organizationId, parentOrganizationId, name, type, regionId,
1505                            countryId, statusId, comments, logo, logoBytes, site, serviceContext);
1506            }
1507    
1508            /**
1509            * Updates the organization.
1510            *
1511            * @param companyId the primary key of the organization's company
1512            * @param organizationId the primary key of the organization
1513            * @param parentOrganizationId the primary key of organization's parent
1514            organization
1515            * @param name the organization's name
1516            * @param type the organization's type
1517            * @param regionId the primary key of the organization's region
1518            * @param countryId the primary key of the organization's country
1519            * @param statusId the organization's workflow status
1520            * @param comments the comments about the organization
1521            * @param site whether the organization is to be associated with a main
1522            site
1523            * @param serviceContext the service context to be applied (optionally
1524            <code>null</code>). Can set asset category IDs and asset tag
1525            names for the organization, and merge expando bridge
1526            attributes for the organization.
1527            * @return the organization
1528            * @deprecated As of 7.0.0, replaced by {@link #updateOrganization(long,
1529            long, long, String, String, long, long, int, String, boolean,
1530            byte[], boolean, ServiceContext)}
1531            */
1532            @Deprecated
1533            @Override
1534            public com.liferay.portal.model.Organization updateOrganization(
1535                    long companyId, long organizationId, long parentOrganizationId,
1536                    java.lang.String name, java.lang.String type, long regionId,
1537                    long countryId, long statusId, java.lang.String comments, boolean site,
1538                    com.liferay.portal.service.ServiceContext serviceContext)
1539                    throws com.liferay.portal.kernel.exception.PortalException {
1540                    return _organizationLocalService.updateOrganization(companyId,
1541                            organizationId, parentOrganizationId, name, type, regionId,
1542                            countryId, statusId, comments, site, serviceContext);
1543            }
1544    
1545            /**
1546            * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
1547            *
1548            * @param organization the organization
1549            * @return the organization that was updated
1550            */
1551            @Override
1552            public com.liferay.portal.model.Organization updateOrganization(
1553                    com.liferay.portal.model.Organization organization) {
1554                    return _organizationLocalService.updateOrganization(organization);
1555            }
1556    
1557            /**
1558             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
1559             */
1560            @Deprecated
1561            public OrganizationLocalService getWrappedOrganizationLocalService() {
1562                    return _organizationLocalService;
1563            }
1564    
1565            /**
1566             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
1567             */
1568            @Deprecated
1569            public void setWrappedOrganizationLocalService(
1570                    OrganizationLocalService organizationLocalService) {
1571                    _organizationLocalService = organizationLocalService;
1572            }
1573    
1574            @Override
1575            public OrganizationLocalService getWrappedService() {
1576                    return _organizationLocalService;
1577            }
1578    
1579            @Override
1580            public void setWrappedService(
1581                    OrganizationLocalService organizationLocalService) {
1582                    _organizationLocalService = organizationLocalService;
1583            }
1584    
1585            private OrganizationLocalService _organizationLocalService;
1586    }