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