001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020    import com.liferay.portal.kernel.util.ReferenceRegistry;
021    
022    /**
023     * Provides the local service utility for BackgroundTask. This utility wraps
024     * {@link com.liferay.portal.service.impl.BackgroundTaskLocalServiceImpl} and is the
025     * primary access point for service operations in application layer code running
026     * on the local server. Methods of this service will not have security checks
027     * based on the propagated JAAS credentials because this service can only be
028     * accessed from within the same VM.
029     *
030     * @author Brian Wing Shun Chan
031     * @see BackgroundTaskLocalService
032     * @see com.liferay.portal.service.base.BackgroundTaskLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.BackgroundTaskLocalServiceImpl
034     * @generated
035     */
036    @ProviderType
037    public class BackgroundTaskLocalServiceUtil {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.BackgroundTaskLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
042             */
043    
044            /**
045            * Adds the background task to the database. Also notifies the appropriate model listeners.
046            *
047            * @param backgroundTask the background task
048            * @return the background task that was added
049            * @throws SystemException if a system exception occurred
050            */
051            public static com.liferay.portal.model.BackgroundTask addBackgroundTask(
052                    com.liferay.portal.model.BackgroundTask backgroundTask)
053                    throws com.liferay.portal.kernel.exception.SystemException {
054                    return getService().addBackgroundTask(backgroundTask);
055            }
056    
057            /**
058            * Creates a new background task with the primary key. Does not add the background task to the database.
059            *
060            * @param backgroundTaskId the primary key for the new background task
061            * @return the new background task
062            */
063            public static com.liferay.portal.model.BackgroundTask createBackgroundTask(
064                    long backgroundTaskId) {
065                    return getService().createBackgroundTask(backgroundTaskId);
066            }
067    
068            /**
069            * Deletes the background task with the primary key from the database. Also notifies the appropriate model listeners.
070            *
071            * @param backgroundTaskId the primary key of the background task
072            * @return the background task that was removed
073            * @throws PortalException if a background task with the primary key could not be found
074            * @throws SystemException if a system exception occurred
075            */
076            public static com.liferay.portal.model.BackgroundTask deleteBackgroundTask(
077                    long backgroundTaskId)
078                    throws com.liferay.portal.kernel.exception.PortalException,
079                            com.liferay.portal.kernel.exception.SystemException {
080                    return getService().deleteBackgroundTask(backgroundTaskId);
081            }
082    
083            /**
084            * Deletes the background task from the database. Also notifies the appropriate model listeners.
085            *
086            * @param backgroundTask the background task
087            * @return the background task that was removed
088            * @throws PortalException
089            * @throws SystemException if a system exception occurred
090            */
091            public static com.liferay.portal.model.BackgroundTask deleteBackgroundTask(
092                    com.liferay.portal.model.BackgroundTask backgroundTask)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return getService().deleteBackgroundTask(backgroundTask);
096            }
097    
098            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
099                    return getService().dynamicQuery();
100            }
101    
102            /**
103            * Performs a dynamic query on the database and returns the matching rows.
104            *
105            * @param dynamicQuery the dynamic query
106            * @return the matching rows
107            * @throws SystemException if a system exception occurred
108            */
109            @SuppressWarnings("rawtypes")
110            public static java.util.List dynamicQuery(
111                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
112                    throws com.liferay.portal.kernel.exception.SystemException {
113                    return getService().dynamicQuery(dynamicQuery);
114            }
115    
116            /**
117            * Performs a dynamic query on the database and returns a range of the matching rows.
118            *
119            * <p>
120            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
121            * </p>
122            *
123            * @param dynamicQuery the dynamic query
124            * @param start the lower bound of the range of model instances
125            * @param end the upper bound of the range of model instances (not inclusive)
126            * @return the range of matching rows
127            * @throws SystemException if a system exception occurred
128            */
129            @SuppressWarnings("rawtypes")
130            public static java.util.List dynamicQuery(
131                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
132                    int end) throws com.liferay.portal.kernel.exception.SystemException {
133                    return getService().dynamicQuery(dynamicQuery, start, end);
134            }
135    
136            /**
137            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
138            *
139            * <p>
140            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
141            * </p>
142            *
143            * @param dynamicQuery the dynamic query
144            * @param start the lower bound of the range of model instances
145            * @param end the upper bound of the range of model instances (not inclusive)
146            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
147            * @return the ordered range of matching rows
148            * @throws SystemException if a system exception occurred
149            */
150            @SuppressWarnings("rawtypes")
151            public static java.util.List dynamicQuery(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
153                    int end,
154                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155                    throws com.liferay.portal.kernel.exception.SystemException {
156                    return getService()
157                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
158            }
159    
160            /**
161            * Returns the number of rows that match the dynamic query.
162            *
163            * @param dynamicQuery the dynamic query
164            * @return the number of rows that match the dynamic query
165            * @throws SystemException if a system exception occurred
166            */
167            public static long dynamicQueryCount(
168                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return getService().dynamicQueryCount(dynamicQuery);
171            }
172    
173            /**
174            * Returns the number of rows that match the dynamic query.
175            *
176            * @param dynamicQuery the dynamic query
177            * @param projection the projection to apply to the query
178            * @return the number of rows that match the dynamic query
179            * @throws SystemException if a system exception occurred
180            */
181            public static long dynamicQueryCount(
182                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
183                    com.liferay.portal.kernel.dao.orm.Projection projection)
184                    throws com.liferay.portal.kernel.exception.SystemException {
185                    return getService().dynamicQueryCount(dynamicQuery, projection);
186            }
187    
188            public static com.liferay.portal.model.BackgroundTask fetchBackgroundTask(
189                    long backgroundTaskId)
190                    throws com.liferay.portal.kernel.exception.SystemException {
191                    return getService().fetchBackgroundTask(backgroundTaskId);
192            }
193    
194            /**
195            * Returns the background task with the primary key.
196            *
197            * @param backgroundTaskId the primary key of the background task
198            * @return the background task
199            * @throws PortalException if a background task with the primary key could not be found
200            * @throws SystemException if a system exception occurred
201            */
202            public static com.liferay.portal.model.BackgroundTask getBackgroundTask(
203                    long backgroundTaskId)
204                    throws com.liferay.portal.kernel.exception.PortalException,
205                            com.liferay.portal.kernel.exception.SystemException {
206                    return getService().getBackgroundTask(backgroundTaskId);
207            }
208    
209            public static com.liferay.portal.model.PersistedModel getPersistedModel(
210                    java.io.Serializable primaryKeyObj)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return getService().getPersistedModel(primaryKeyObj);
214            }
215    
216            /**
217            * Returns a range of all the background tasks.
218            *
219            * <p>
220            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.BackgroundTaskModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
221            * </p>
222            *
223            * @param start the lower bound of the range of background tasks
224            * @param end the upper bound of the range of background tasks (not inclusive)
225            * @return the range of background tasks
226            * @throws SystemException if a system exception occurred
227            */
228            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
229                    int start, int end)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return getService().getBackgroundTasks(start, end);
232            }
233    
234            /**
235            * Returns the number of background tasks.
236            *
237            * @return the number of background tasks
238            * @throws SystemException if a system exception occurred
239            */
240            public static int getBackgroundTasksCount()
241                    throws com.liferay.portal.kernel.exception.SystemException {
242                    return getService().getBackgroundTasksCount();
243            }
244    
245            /**
246            * Updates the background task in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
247            *
248            * @param backgroundTask the background task
249            * @return the background task that was updated
250            * @throws SystemException if a system exception occurred
251            */
252            public static com.liferay.portal.model.BackgroundTask updateBackgroundTask(
253                    com.liferay.portal.model.BackgroundTask backgroundTask)
254                    throws com.liferay.portal.kernel.exception.SystemException {
255                    return getService().updateBackgroundTask(backgroundTask);
256            }
257    
258            /**
259            * Returns the Spring bean ID for this bean.
260            *
261            * @return the Spring bean ID for this bean
262            */
263            public static java.lang.String getBeanIdentifier() {
264                    return getService().getBeanIdentifier();
265            }
266    
267            /**
268            * Sets the Spring bean ID for this bean.
269            *
270            * @param beanIdentifier the Spring bean ID for this bean
271            */
272            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
273                    getService().setBeanIdentifier(beanIdentifier);
274            }
275    
276            public static com.liferay.portal.model.BackgroundTask addBackgroundTask(
277                    long userId, long groupId, java.lang.String name,
278                    java.lang.String[] servletContextNames,
279                    java.lang.Class<?> taskExecutorClass,
280                    java.util.Map<java.lang.String, java.io.Serializable> taskContextMap,
281                    com.liferay.portal.service.ServiceContext serviceContext)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    return getService()
285                                       .addBackgroundTask(userId, groupId, name,
286                            servletContextNames, taskExecutorClass, taskContextMap,
287                            serviceContext);
288            }
289    
290            public static void addBackgroundTaskAttachment(long userId,
291                    long backgroundTaskId, java.lang.String fileName, java.io.File file)
292                    throws com.liferay.portal.kernel.exception.PortalException,
293                            com.liferay.portal.kernel.exception.SystemException {
294                    getService()
295                            .addBackgroundTaskAttachment(userId, backgroundTaskId, fileName,
296                            file);
297            }
298    
299            public static void addBackgroundTaskAttachment(long userId,
300                    long backgroundTaskId, java.lang.String fileName,
301                    java.io.InputStream inputStream)
302                    throws com.liferay.portal.kernel.exception.PortalException,
303                            com.liferay.portal.kernel.exception.SystemException {
304                    getService()
305                            .addBackgroundTaskAttachment(userId, backgroundTaskId, fileName,
306                            inputStream);
307            }
308    
309            public static com.liferay.portal.model.BackgroundTask amendBackgroundTask(
310                    long backgroundTaskId,
311                    java.util.Map<java.lang.String, java.io.Serializable> taskContextMap,
312                    int status, com.liferay.portal.service.ServiceContext serviceContext)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return getService()
315                                       .amendBackgroundTask(backgroundTaskId, taskContextMap,
316                            status, serviceContext);
317            }
318    
319            public static com.liferay.portal.model.BackgroundTask amendBackgroundTask(
320                    long backgroundTaskId,
321                    java.util.Map<java.lang.String, java.io.Serializable> taskContextMap,
322                    int status, java.lang.String statusMessage,
323                    com.liferay.portal.service.ServiceContext serviceContext)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return getService()
326                                       .amendBackgroundTask(backgroundTaskId, taskContextMap,
327                            status, statusMessage, serviceContext);
328            }
329    
330            public static void cleanUpBackgroundTask(
331                    com.liferay.portal.model.BackgroundTask backgroundTask, int status) {
332                    getService().cleanUpBackgroundTask(backgroundTask, status);
333            }
334    
335            public static void cleanUpBackgroundTasks()
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    getService().cleanUpBackgroundTasks();
338            }
339    
340            public static void deleteCompanyBackgroundTasks(long companyId)
341                    throws com.liferay.portal.kernel.exception.PortalException,
342                            com.liferay.portal.kernel.exception.SystemException {
343                    getService().deleteCompanyBackgroundTasks(companyId);
344            }
345    
346            public static void deleteGroupBackgroundTasks(long groupId)
347                    throws com.liferay.portal.kernel.exception.PortalException,
348                            com.liferay.portal.kernel.exception.SystemException {
349                    getService().deleteGroupBackgroundTasks(groupId);
350            }
351    
352            public static com.liferay.portal.model.BackgroundTask fetchFirstBackgroundTask(
353                    long groupId, java.lang.String taskExecutorClassName,
354                    boolean completed,
355                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
356                    throws com.liferay.portal.kernel.exception.SystemException {
357                    return getService()
358                                       .fetchFirstBackgroundTask(groupId, taskExecutorClassName,
359                            completed, orderByComparator);
360            }
361    
362            public static com.liferay.portal.model.BackgroundTask fetchFirstBackgroundTask(
363                    java.lang.String taskExecutorClassName, int status)
364                    throws com.liferay.portal.kernel.exception.SystemException {
365                    return getService()
366                                       .fetchFirstBackgroundTask(taskExecutorClassName, status);
367            }
368    
369            public static com.liferay.portal.model.BackgroundTask fetchFirstBackgroundTask(
370                    java.lang.String taskExecutorClassName, int status,
371                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372                    throws com.liferay.portal.kernel.exception.SystemException {
373                    return getService()
374                                       .fetchFirstBackgroundTask(taskExecutorClassName, status,
375                            orderByComparator);
376            }
377    
378            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
379                    long groupId, int status)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    return getService().getBackgroundTasks(groupId, status);
382            }
383    
384            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
385                    long groupId, java.lang.String taskExecutorClassName)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return getService().getBackgroundTasks(groupId, taskExecutorClassName);
388            }
389    
390            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
391                    long groupId, java.lang.String taskExecutorClassName, int status)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return getService()
394                                       .getBackgroundTasks(groupId, taskExecutorClassName, status);
395            }
396    
397            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
398                    long groupId, java.lang.String taskExecutorClassName, int start,
399                    int end,
400                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
401                    throws com.liferay.portal.kernel.exception.SystemException {
402                    return getService()
403                                       .getBackgroundTasks(groupId, taskExecutorClassName, start,
404                            end, orderByComparator);
405            }
406    
407            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
408                    long groupId, java.lang.String name,
409                    java.lang.String taskExecutorClassName, int start, int end,
410                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411                    throws com.liferay.portal.kernel.exception.SystemException {
412                    return getService()
413                                       .getBackgroundTasks(groupId, name, taskExecutorClassName,
414                            start, end, orderByComparator);
415            }
416    
417            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
418                    long groupId, java.lang.String[] taskExecutorClassNames)
419                    throws com.liferay.portal.kernel.exception.SystemException {
420                    return getService().getBackgroundTasks(groupId, taskExecutorClassNames);
421            }
422    
423            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
424                    long groupId, java.lang.String[] taskExecutorClassNames, int status)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    return getService()
427                                       .getBackgroundTasks(groupId, taskExecutorClassNames, status);
428            }
429    
430            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
431                    long groupId, java.lang.String[] taskExecutorClassNames, int start,
432                    int end,
433                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
434                    throws com.liferay.portal.kernel.exception.SystemException {
435                    return getService()
436                                       .getBackgroundTasks(groupId, taskExecutorClassNames, start,
437                            end, orderByComparator);
438            }
439    
440            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
441                    java.lang.String taskExecutorClassName, int status)
442                    throws com.liferay.portal.kernel.exception.SystemException {
443                    return getService().getBackgroundTasks(taskExecutorClassName, status);
444            }
445    
446            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
447                    java.lang.String taskExecutorClassName, int status, int start, int end,
448                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
449                    throws com.liferay.portal.kernel.exception.SystemException {
450                    return getService()
451                                       .getBackgroundTasks(taskExecutorClassName, status, start,
452                            end, orderByComparator);
453            }
454    
455            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
456                    java.lang.String[] taskExecutorClassNames, int status)
457                    throws com.liferay.portal.kernel.exception.SystemException {
458                    return getService().getBackgroundTasks(taskExecutorClassNames, status);
459            }
460    
461            public static java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
462                    java.lang.String[] taskExecutorClassNames, int status, int start,
463                    int end,
464                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
465                    throws com.liferay.portal.kernel.exception.SystemException {
466                    return getService()
467                                       .getBackgroundTasks(taskExecutorClassNames, status, start,
468                            end, orderByComparator);
469            }
470    
471            public static int getBackgroundTasksCount(long groupId,
472                    java.lang.String taskExecutorClassName)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return getService()
475                                       .getBackgroundTasksCount(groupId, taskExecutorClassName);
476            }
477    
478            public static int getBackgroundTasksCount(long groupId,
479                    java.lang.String taskExecutorClassName, boolean completed)
480                    throws com.liferay.portal.kernel.exception.SystemException {
481                    return getService()
482                                       .getBackgroundTasksCount(groupId, taskExecutorClassName,
483                            completed);
484            }
485    
486            public static int getBackgroundTasksCount(long groupId,
487                    java.lang.String name, java.lang.String taskExecutorClassName)
488                    throws com.liferay.portal.kernel.exception.SystemException {
489                    return getService()
490                                       .getBackgroundTasksCount(groupId, name, taskExecutorClassName);
491            }
492    
493            public static int getBackgroundTasksCount(long groupId,
494                    java.lang.String name, java.lang.String taskExecutorClassName,
495                    boolean completed)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getService()
498                                       .getBackgroundTasksCount(groupId, name,
499                            taskExecutorClassName, completed);
500            }
501    
502            public static int getBackgroundTasksCount(long groupId,
503                    java.lang.String[] taskExecutorClassNames)
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return getService()
506                                       .getBackgroundTasksCount(groupId, taskExecutorClassNames);
507            }
508    
509            public static int getBackgroundTasksCount(long groupId,
510                    java.lang.String[] taskExecutorClassNames, boolean completed)
511                    throws com.liferay.portal.kernel.exception.SystemException {
512                    return getService()
513                                       .getBackgroundTasksCount(groupId, taskExecutorClassNames,
514                            completed);
515            }
516    
517            public static java.lang.String getBackgroundTaskStatusJSON(
518                    long backgroundTaskId) {
519                    return getService().getBackgroundTaskStatusJSON(backgroundTaskId);
520            }
521    
522            public static void resumeBackgroundTask(long backgroundTaskId)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    getService().resumeBackgroundTask(backgroundTaskId);
525            }
526    
527            public static void triggerBackgroundTask(long backgroundTaskId) {
528                    getService().triggerBackgroundTask(backgroundTaskId);
529            }
530    
531            public static BackgroundTaskLocalService getService() {
532                    if (_service == null) {
533                            _service = (BackgroundTaskLocalService)PortalBeanLocatorUtil.locate(BackgroundTaskLocalService.class.getName());
534    
535                            ReferenceRegistry.registerReference(BackgroundTaskLocalServiceUtil.class,
536                                    "_service");
537                    }
538    
539                    return _service;
540            }
541    
542            /**
543             * @deprecated As of 6.2.0
544             */
545            public void setService(BackgroundTaskLocalService service) {
546            }
547    
548            private static BackgroundTaskLocalService _service;
549    }