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