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