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