001    /**
002     * Copyright (c) 2000-2011 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.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.MethodCache;
019    import com.liferay.portal.kernel.util.ReferenceRegistry;
020    
021    /**
022     * The utility for the organization local service. This utility wraps {@link com.liferay.portal.service.impl.OrganizationLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
023     *
024     * <p>
025     * 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.
026     * </p>
027     *
028     * @author Brian Wing Shun Chan
029     * @see OrganizationLocalService
030     * @see com.liferay.portal.service.base.OrganizationLocalServiceBaseImpl
031     * @see com.liferay.portal.service.impl.OrganizationLocalServiceImpl
032     * @generated
033     */
034    public class OrganizationLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.OrganizationLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the organization to the database. Also notifies the appropriate model listeners.
043            *
044            * @param organization the organization
045            * @return the organization that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portal.model.Organization addOrganization(
049                    com.liferay.portal.model.Organization organization)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addOrganization(organization);
052            }
053    
054            /**
055            * Creates a new organization with the primary key. Does not add the organization to the database.
056            *
057            * @param organizationId the primary key for the new organization
058            * @return the new organization
059            */
060            public static com.liferay.portal.model.Organization createOrganization(
061                    long organizationId) {
062                    return getService().createOrganization(organizationId);
063            }
064    
065            /**
066            * Deletes the organization with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param organizationId the primary key of the organization
069            * @throws PortalException if a organization with the primary key could not be found
070            * @throws SystemException if a system exception occurred
071            */
072            public static void deleteOrganization(long organizationId)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    getService().deleteOrganization(organizationId);
076            }
077    
078            /**
079            * Deletes the organization from the database. Also notifies the appropriate model listeners.
080            *
081            * @param organization the organization
082            * @throws PortalException
083            * @throws SystemException if a system exception occurred
084            */
085            public static void deleteOrganization(
086                    com.liferay.portal.model.Organization organization)
087                    throws com.liferay.portal.kernel.exception.PortalException,
088                            com.liferay.portal.kernel.exception.SystemException {
089                    getService().deleteOrganization(organization);
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public static java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return getService().dynamicQuery(dynamicQuery);
104            }
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 static 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                    return getService().dynamicQuery(dynamicQuery, start, end);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
128            *
129            * <p>
130            * 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.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
137            * @return the ordered range of matching rows
138            * @throws SystemException if a system exception occurred
139            */
140            @SuppressWarnings("rawtypes")
141            public static java.util.List dynamicQuery(
142                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143                    int end,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException {
146                    return getService()
147                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
148            }
149    
150            /**
151            * Returns the number of rows that match the dynamic query.
152            *
153            * @param dynamicQuery the dynamic query
154            * @return the number of rows that match the dynamic query
155            * @throws SystemException if a system exception occurred
156            */
157            public static long dynamicQueryCount(
158                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return getService().dynamicQueryCount(dynamicQuery);
161            }
162    
163            /**
164            * Returns the organization with the primary key.
165            *
166            * @param organizationId the primary key of the organization
167            * @return the organization
168            * @throws PortalException if a organization with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public static com.liferay.portal.model.Organization getOrganization(
172                    long organizationId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return getService().getOrganization(organizationId);
176            }
177    
178            public static com.liferay.portal.model.PersistedModel getPersistedModel(
179                    java.io.Serializable primaryKeyObj)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return getService().getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the organizations.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of organizations
193            * @param end the upper bound of the range of organizations (not inclusive)
194            * @return the range of organizations
195            * @throws SystemException if a system exception occurred
196            */
197            public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getService().getOrganizations(start, end);
201            }
202    
203            /**
204            * Returns the number of organizations.
205            *
206            * @return the number of organizations
207            * @throws SystemException if a system exception occurred
208            */
209            public static int getOrganizationsCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getService().getOrganizationsCount();
212            }
213    
214            /**
215            * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
216            *
217            * @param organization the organization
218            * @return the organization that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public static com.liferay.portal.model.Organization updateOrganization(
222                    com.liferay.portal.model.Organization organization)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getService().updateOrganization(organization);
225            }
226    
227            /**
228            * Updates the organization in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
229            *
230            * @param organization the organization
231            * @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.
232            * @return the organization that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public static com.liferay.portal.model.Organization updateOrganization(
236                    com.liferay.portal.model.Organization organization, boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return getService().updateOrganization(organization, merge);
239            }
240    
241            /**
242            * Returns the Spring bean ID for this bean.
243            *
244            * @return the Spring bean ID for this bean
245            */
246            public static java.lang.String getBeanIdentifier() {
247                    return getService().getBeanIdentifier();
248            }
249    
250            /**
251            * Sets the Spring bean ID for this bean.
252            *
253            * @param beanIdentifier the Spring bean ID for this bean
254            */
255            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
256                    getService().setBeanIdentifier(beanIdentifier);
257            }
258    
259            public static void addGroupOrganizations(long groupId,
260                    long[] organizationIds)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException {
263                    getService().addGroupOrganizations(groupId, organizationIds);
264            }
265    
266            public static com.liferay.portal.model.Organization addOrganization(
267                    long userId, long parentOrganizationId, java.lang.String name,
268                    java.lang.String type, boolean recursable, long regionId,
269                    long countryId, int statusId, java.lang.String comments,
270                    com.liferay.portal.service.ServiceContext serviceContext)
271                    throws com.liferay.portal.kernel.exception.PortalException,
272                            com.liferay.portal.kernel.exception.SystemException {
273                    return getService()
274                                       .addOrganization(userId, parentOrganizationId, name, type,
275                            recursable, regionId, countryId, statusId, comments, serviceContext);
276            }
277    
278            public static void addOrganizationResources(long userId,
279                    com.liferay.portal.model.Organization organization)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    getService().addOrganizationResources(userId, organization);
283            }
284    
285            public static void addPasswordPolicyOrganizations(long passwordPolicyId,
286                    long[] organizationIds)
287                    throws com.liferay.portal.kernel.exception.SystemException {
288                    getService()
289                            .addPasswordPolicyOrganizations(passwordPolicyId, organizationIds);
290            }
291    
292            public static void deleteLogo(long organizationId)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    getService().deleteLogo(organizationId);
296            }
297    
298            public static java.util.List<com.liferay.portal.model.Organization> getGroupOrganizations(
299                    long groupId)
300                    throws com.liferay.portal.kernel.exception.SystemException {
301                    return getService().getGroupOrganizations(groupId);
302            }
303    
304            public static com.liferay.portal.model.Organization getOrganization(
305                    long companyId, java.lang.String name)
306                    throws com.liferay.portal.kernel.exception.PortalException,
307                            com.liferay.portal.kernel.exception.SystemException {
308                    return getService().getOrganization(companyId, name);
309            }
310    
311            public static long getOrganizationId(long companyId, java.lang.String name)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return getService().getOrganizationId(companyId, name);
314            }
315    
316            public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
317                    long companyId, long parentOrganizationId)
318                    throws com.liferay.portal.kernel.exception.SystemException {
319                    return getService().getOrganizations(companyId, parentOrganizationId);
320            }
321    
322            public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
323                    long companyId, long parentOrganizationId, int start, int end)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getService()
326                                       .getOrganizations(companyId, parentOrganizationId, start, end);
327            }
328    
329            public static java.util.List<com.liferay.portal.model.Organization> getOrganizations(
330                    long[] organizationIds)
331                    throws com.liferay.portal.kernel.exception.PortalException,
332                            com.liferay.portal.kernel.exception.SystemException {
333                    return getService().getOrganizations(organizationIds);
334            }
335    
336            public static int getOrganizationsCount(long companyId,
337                    long parentOrganizationId)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return getService()
340                                       .getOrganizationsCount(companyId, parentOrganizationId);
341            }
342    
343            public static java.util.List<com.liferay.portal.model.Organization> getParentOrganizations(
344                    long organizationId)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException {
347                    return getService().getParentOrganizations(organizationId);
348            }
349    
350            public static java.util.List<com.liferay.portal.model.Organization> getSuborganizations(
351                    java.util.List<com.liferay.portal.model.Organization> organizations)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    return getService().getSuborganizations(organizations);
354            }
355    
356            public static java.util.List<com.liferay.portal.model.Organization> getSubsetOrganizations(
357                    java.util.List<com.liferay.portal.model.Organization> allOrganizations,
358                    java.util.List<com.liferay.portal.model.Organization> availableOrganizations) {
359                    return getService()
360                                       .getSubsetOrganizations(allOrganizations,
361                            availableOrganizations);
362            }
363    
364            public static java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
365                    long userId)
366                    throws com.liferay.portal.kernel.exception.PortalException,
367                            com.liferay.portal.kernel.exception.SystemException {
368                    return getService().getUserOrganizations(userId);
369            }
370    
371            public static java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
372                    long userId, boolean inheritUserGroups)
373                    throws com.liferay.portal.kernel.exception.PortalException,
374                            com.liferay.portal.kernel.exception.SystemException {
375                    return getService().getUserOrganizations(userId, inheritUserGroups);
376            }
377    
378            public static java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
379                    long userId, boolean inheritUserGroups, int start, int end)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException {
382                    return getService()
383                                       .getUserOrganizations(userId, inheritUserGroups, start, end);
384            }
385    
386            public static java.util.List<com.liferay.portal.model.Organization> getUserOrganizations(
387                    long userId, int start, int end)
388                    throws com.liferay.portal.kernel.exception.PortalException,
389                            com.liferay.portal.kernel.exception.SystemException {
390                    return getService().getUserOrganizations(userId, start, end);
391            }
392    
393            public static int getUserOrganizationsCount(long userId)
394                    throws com.liferay.portal.kernel.exception.SystemException {
395                    return getService().getUserOrganizationsCount(userId);
396            }
397    
398            public static boolean hasGroupOrganization(long groupId, long organizationId)
399                    throws com.liferay.portal.kernel.exception.SystemException {
400                    return getService().hasGroupOrganization(groupId, organizationId);
401            }
402    
403            public static boolean hasPasswordPolicyOrganization(long passwordPolicyId,
404                    long organizationId)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return getService()
407                                       .hasPasswordPolicyOrganization(passwordPolicyId,
408                            organizationId);
409            }
410    
411            public static boolean hasUserOrganization(long userId, long organizationId)
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return getService().hasUserOrganization(userId, organizationId);
414            }
415    
416            public static boolean hasUserOrganization(long userId, long organizationId,
417                    boolean inheritSuborganizations, boolean inheritUserGroups,
418                    boolean includeSpecifiedOrganization)
419                    throws com.liferay.portal.kernel.exception.PortalException,
420                            com.liferay.portal.kernel.exception.SystemException {
421                    return getService()
422                                       .hasUserOrganization(userId, organizationId,
423                            inheritSuborganizations, inheritUserGroups,
424                            includeSpecifiedOrganization);
425            }
426    
427            public static void rebuildTree(long companyId, boolean force)
428                    throws com.liferay.portal.kernel.exception.SystemException {
429                    getService().rebuildTree(companyId, force);
430            }
431    
432            public static com.liferay.portal.kernel.search.Hits search(long companyId,
433                    long parentOrganizationId, java.lang.String keywords,
434                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
435                    int start, int end, com.liferay.portal.kernel.search.Sort sort)
436                    throws com.liferay.portal.kernel.exception.SystemException {
437                    return getService()
438                                       .search(companyId, parentOrganizationId, keywords, params,
439                            start, end, sort);
440            }
441    
442            public static java.util.List<com.liferay.portal.model.Organization> search(
443                    long companyId, long parentOrganizationId, java.lang.String keywords,
444                    java.lang.String type, java.lang.Long regionId,
445                    java.lang.Long countryId,
446                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
447                    int start, int end)
448                    throws com.liferay.portal.kernel.exception.SystemException {
449                    return getService()
450                                       .search(companyId, parentOrganizationId, keywords, type,
451                            regionId, countryId, params, start, end);
452            }
453    
454            public static java.util.List<com.liferay.portal.model.Organization> search(
455                    long companyId, long parentOrganizationId, java.lang.String keywords,
456                    java.lang.String type, java.lang.Long regionId,
457                    java.lang.Long countryId,
458                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
459                    int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
460                    throws com.liferay.portal.kernel.exception.SystemException {
461                    return getService()
462                                       .search(companyId, parentOrganizationId, keywords, type,
463                            regionId, countryId, params, start, end, obc);
464            }
465    
466            public static java.util.List<com.liferay.portal.model.Organization> search(
467                    long companyId, long parentOrganizationId, java.lang.String name,
468                    java.lang.String type, java.lang.String street, java.lang.String city,
469                    java.lang.String zip, java.lang.Long regionId,
470                    java.lang.Long countryId,
471                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
472                    boolean andOperator, int start, int end)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getService()
475                                       .search(companyId, parentOrganizationId, name, type, street,
476                            city, zip, regionId, countryId, params, andOperator, start, end);
477            }
478    
479            public static java.util.List<com.liferay.portal.model.Organization> search(
480                    long companyId, long parentOrganizationId, java.lang.String name,
481                    java.lang.String type, java.lang.String street, java.lang.String city,
482                    java.lang.String zip, java.lang.Long regionId,
483                    java.lang.Long countryId,
484                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
485                    boolean andOperator, int start, int end,
486                    com.liferay.portal.kernel.util.OrderByComparator obc)
487                    throws com.liferay.portal.kernel.exception.SystemException {
488                    return getService()
489                                       .search(companyId, parentOrganizationId, name, type, street,
490                            city, zip, regionId, countryId, params, andOperator, start, end, obc);
491            }
492    
493            public static com.liferay.portal.kernel.search.Hits search(long companyId,
494                    long parentOrganizationId, java.lang.String name,
495                    java.lang.String type, java.lang.String street, java.lang.String city,
496                    java.lang.String zip, java.lang.String region,
497                    java.lang.String country,
498                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
499                    boolean andSearch, int start, int end,
500                    com.liferay.portal.kernel.search.Sort sort)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getService()
503                                       .search(companyId, parentOrganizationId, name, type, street,
504                            city, zip, region, country, params, andSearch, start, end, sort);
505            }
506    
507            public static int searchCount(long companyId, long parentOrganizationId,
508                    java.lang.String keywords, java.lang.String type,
509                    java.lang.Long regionId, java.lang.Long countryId,
510                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    return getService()
513                                       .searchCount(companyId, parentOrganizationId, keywords,
514                            type, regionId, countryId, params);
515            }
516    
517            public static int searchCount(long companyId, long parentOrganizationId,
518                    java.lang.String name, java.lang.String type, java.lang.String street,
519                    java.lang.String city, java.lang.String zip, java.lang.Long regionId,
520                    java.lang.Long countryId,
521                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
522                    boolean andOperator)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return getService()
525                                       .searchCount(companyId, parentOrganizationId, name, type,
526                            street, city, zip, regionId, countryId, params, andOperator);
527            }
528    
529            public static void setGroupOrganizations(long groupId,
530                    long[] organizationIds)
531                    throws com.liferay.portal.kernel.exception.PortalException,
532                            com.liferay.portal.kernel.exception.SystemException {
533                    getService().setGroupOrganizations(groupId, organizationIds);
534            }
535    
536            public static void unsetGroupOrganizations(long groupId,
537                    long[] organizationIds)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    getService().unsetGroupOrganizations(groupId, organizationIds);
541            }
542    
543            public static void unsetPasswordPolicyOrganizations(long passwordPolicyId,
544                    long[] organizationIds)
545                    throws com.liferay.portal.kernel.exception.SystemException {
546                    getService()
547                            .unsetPasswordPolicyOrganizations(passwordPolicyId, organizationIds);
548            }
549    
550            public static void updateAsset(long userId,
551                    com.liferay.portal.model.Organization organization,
552                    long[] assetCategoryIds, java.lang.String[] assetTagNames)
553                    throws com.liferay.portal.kernel.exception.PortalException,
554                            com.liferay.portal.kernel.exception.SystemException {
555                    getService()
556                            .updateAsset(userId, organization, assetCategoryIds, assetTagNames);
557            }
558    
559            public static com.liferay.portal.model.Organization updateOrganization(
560                    long companyId, long organizationId, long parentOrganizationId,
561                    java.lang.String name, java.lang.String type, boolean recursable,
562                    long regionId, long countryId, int statusId, java.lang.String comments,
563                    com.liferay.portal.service.ServiceContext serviceContext)
564                    throws com.liferay.portal.kernel.exception.PortalException,
565                            com.liferay.portal.kernel.exception.SystemException {
566                    return getService()
567                                       .updateOrganization(companyId, organizationId,
568                            parentOrganizationId, name, type, recursable, regionId, countryId,
569                            statusId, comments, serviceContext);
570            }
571    
572            public static OrganizationLocalService getService() {
573                    if (_service == null) {
574                            _service = (OrganizationLocalService)PortalBeanLocatorUtil.locate(OrganizationLocalService.class.getName());
575    
576                            ReferenceRegistry.registerReference(OrganizationLocalServiceUtil.class,
577                                    "_service");
578                            MethodCache.remove(OrganizationLocalService.class);
579                    }
580    
581                    return _service;
582            }
583    
584            public void setService(OrganizationLocalService service) {
585                    MethodCache.remove(OrganizationLocalService.class);
586    
587                    _service = service;
588    
589                    ReferenceRegistry.registerReference(OrganizationLocalServiceUtil.class,
590                            "_service");
591                    MethodCache.remove(OrganizationLocalService.class);
592            }
593    
594            private static OrganizationLocalService _service;
595    }