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    /**
020     * Provides a wrapper for {@link BackgroundTaskLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see BackgroundTaskLocalService
024     * @generated
025     */
026    @ProviderType
027    public class BackgroundTaskLocalServiceWrapper
028            implements BackgroundTaskLocalService,
029                    ServiceWrapper<BackgroundTaskLocalService> {
030            public BackgroundTaskLocalServiceWrapper(
031                    BackgroundTaskLocalService backgroundTaskLocalService) {
032                    _backgroundTaskLocalService = backgroundTaskLocalService;
033            }
034    
035            /**
036            * Adds the background task to the database. Also notifies the appropriate model listeners.
037            *
038            * @param backgroundTask the background task
039            * @return the background task that was added
040            * @throws SystemException if a system exception occurred
041            */
042            @Override
043            public com.liferay.portal.model.BackgroundTask addBackgroundTask(
044                    com.liferay.portal.model.BackgroundTask backgroundTask)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _backgroundTaskLocalService.addBackgroundTask(backgroundTask);
047            }
048    
049            /**
050            * Creates a new background task with the primary key. Does not add the background task to the database.
051            *
052            * @param backgroundTaskId the primary key for the new background task
053            * @return the new background task
054            */
055            @Override
056            public com.liferay.portal.model.BackgroundTask createBackgroundTask(
057                    long backgroundTaskId) {
058                    return _backgroundTaskLocalService.createBackgroundTask(backgroundTaskId);
059            }
060    
061            /**
062            * Deletes the background task with the primary key from the database. Also notifies the appropriate model listeners.
063            *
064            * @param backgroundTaskId the primary key of the background task
065            * @return the background task that was removed
066            * @throws PortalException if a background task with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            @Override
070            public com.liferay.portal.model.BackgroundTask deleteBackgroundTask(
071                    long backgroundTaskId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return _backgroundTaskLocalService.deleteBackgroundTask(backgroundTaskId);
075            }
076    
077            /**
078            * Deletes the background task from the database. Also notifies the appropriate model listeners.
079            *
080            * @param backgroundTask the background task
081            * @return the background task that was removed
082            * @throws PortalException
083            * @throws SystemException if a system exception occurred
084            */
085            @Override
086            public com.liferay.portal.model.BackgroundTask deleteBackgroundTask(
087                    com.liferay.portal.model.BackgroundTask backgroundTask)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return _backgroundTaskLocalService.deleteBackgroundTask(backgroundTask);
091            }
092    
093            @Override
094            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095                    return _backgroundTaskLocalService.dynamicQuery();
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns the matching rows.
100            *
101            * @param dynamicQuery the dynamic query
102            * @return the matching rows
103            * @throws SystemException if a system exception occurred
104            */
105            @Override
106            @SuppressWarnings("rawtypes")
107            public java.util.List dynamicQuery(
108                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
109                    throws com.liferay.portal.kernel.exception.SystemException {
110                    return _backgroundTaskLocalService.dynamicQuery(dynamicQuery);
111            }
112    
113            /**
114            * Performs a dynamic query on the database and returns a range of the matching rows.
115            *
116            * <p>
117            * 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.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @return the range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @Override
127            @SuppressWarnings("rawtypes")
128            public java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end) throws com.liferay.portal.kernel.exception.SystemException {
131                    return _backgroundTaskLocalService.dynamicQuery(dynamicQuery, start, end);
132            }
133    
134            /**
135            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
136            *
137            * <p>
138            * 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.
139            * </p>
140            *
141            * @param dynamicQuery the dynamic query
142            * @param start the lower bound of the range of model instances
143            * @param end the upper bound of the range of model instances (not inclusive)
144            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
145            * @return the ordered range of matching rows
146            * @throws SystemException if a system exception occurred
147            */
148            @Override
149            @SuppressWarnings("rawtypes")
150            public java.util.List dynamicQuery(
151                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
152                    int end,
153                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154                    throws com.liferay.portal.kernel.exception.SystemException {
155                    return _backgroundTaskLocalService.dynamicQuery(dynamicQuery, start,
156                            end, orderByComparator);
157            }
158    
159            /**
160            * Returns the number of rows that match the dynamic query.
161            *
162            * @param dynamicQuery the dynamic query
163            * @return the number of rows that match the dynamic query
164            * @throws SystemException if a system exception occurred
165            */
166            @Override
167            public long dynamicQueryCount(
168                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
169                    throws com.liferay.portal.kernel.exception.SystemException {
170                    return _backgroundTaskLocalService.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            @Override
182            public long dynamicQueryCount(
183                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
184                    com.liferay.portal.kernel.dao.orm.Projection projection)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return _backgroundTaskLocalService.dynamicQueryCount(dynamicQuery,
187                            projection);
188            }
189    
190            @Override
191            public com.liferay.portal.model.BackgroundTask fetchBackgroundTask(
192                    long backgroundTaskId)
193                    throws com.liferay.portal.kernel.exception.SystemException {
194                    return _backgroundTaskLocalService.fetchBackgroundTask(backgroundTaskId);
195            }
196    
197            /**
198            * Returns the background task with the primary key.
199            *
200            * @param backgroundTaskId the primary key of the background task
201            * @return the background task
202            * @throws PortalException if a background task with the primary key could not be found
203            * @throws SystemException if a system exception occurred
204            */
205            @Override
206            public com.liferay.portal.model.BackgroundTask getBackgroundTask(
207                    long backgroundTaskId)
208                    throws com.liferay.portal.kernel.exception.PortalException,
209                            com.liferay.portal.kernel.exception.SystemException {
210                    return _backgroundTaskLocalService.getBackgroundTask(backgroundTaskId);
211            }
212    
213            @Override
214            public com.liferay.portal.model.PersistedModel getPersistedModel(
215                    java.io.Serializable primaryKeyObj)
216                    throws com.liferay.portal.kernel.exception.PortalException,
217                            com.liferay.portal.kernel.exception.SystemException {
218                    return _backgroundTaskLocalService.getPersistedModel(primaryKeyObj);
219            }
220    
221            /**
222            * Returns a range of all the background tasks.
223            *
224            * <p>
225            * 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.
226            * </p>
227            *
228            * @param start the lower bound of the range of background tasks
229            * @param end the upper bound of the range of background tasks (not inclusive)
230            * @return the range of background tasks
231            * @throws SystemException if a system exception occurred
232            */
233            @Override
234            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
235                    int start, int end)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return _backgroundTaskLocalService.getBackgroundTasks(start, end);
238            }
239    
240            /**
241            * Returns the number of background tasks.
242            *
243            * @return the number of background tasks
244            * @throws SystemException if a system exception occurred
245            */
246            @Override
247            public int getBackgroundTasksCount()
248                    throws com.liferay.portal.kernel.exception.SystemException {
249                    return _backgroundTaskLocalService.getBackgroundTasksCount();
250            }
251    
252            /**
253            * Updates the background task in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
254            *
255            * @param backgroundTask the background task
256            * @return the background task that was updated
257            * @throws SystemException if a system exception occurred
258            */
259            @Override
260            public com.liferay.portal.model.BackgroundTask updateBackgroundTask(
261                    com.liferay.portal.model.BackgroundTask backgroundTask)
262                    throws com.liferay.portal.kernel.exception.SystemException {
263                    return _backgroundTaskLocalService.updateBackgroundTask(backgroundTask);
264            }
265    
266            /**
267            * Returns the Spring bean ID for this bean.
268            *
269            * @return the Spring bean ID for this bean
270            */
271            @Override
272            public java.lang.String getBeanIdentifier() {
273                    return _backgroundTaskLocalService.getBeanIdentifier();
274            }
275    
276            /**
277            * Sets the Spring bean ID for this bean.
278            *
279            * @param beanIdentifier the Spring bean ID for this bean
280            */
281            @Override
282            public void setBeanIdentifier(java.lang.String beanIdentifier) {
283                    _backgroundTaskLocalService.setBeanIdentifier(beanIdentifier);
284            }
285    
286            @Override
287            public com.liferay.portal.model.BackgroundTask addBackgroundTask(
288                    long userId, long groupId, java.lang.String name,
289                    java.lang.String[] servletContextNames,
290                    java.lang.Class<?> taskExecutorClass,
291                    java.util.Map<java.lang.String, java.io.Serializable> taskContextMap,
292                    com.liferay.portal.service.ServiceContext serviceContext)
293                    throws com.liferay.portal.kernel.exception.PortalException,
294                            com.liferay.portal.kernel.exception.SystemException {
295                    return _backgroundTaskLocalService.addBackgroundTask(userId, groupId,
296                            name, servletContextNames, taskExecutorClass, taskContextMap,
297                            serviceContext);
298            }
299    
300            @Override
301            public void addBackgroundTaskAttachment(long userId, long backgroundTaskId,
302                    java.lang.String fileName, java.io.File file)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    _backgroundTaskLocalService.addBackgroundTaskAttachment(userId,
306                            backgroundTaskId, fileName, file);
307            }
308    
309            @Override
310            public void addBackgroundTaskAttachment(long userId, long backgroundTaskId,
311                    java.lang.String fileName, java.io.InputStream inputStream)
312                    throws com.liferay.portal.kernel.exception.PortalException,
313                            com.liferay.portal.kernel.exception.SystemException {
314                    _backgroundTaskLocalService.addBackgroundTaskAttachment(userId,
315                            backgroundTaskId, fileName, inputStream);
316            }
317    
318            @Override
319            public com.liferay.portal.model.BackgroundTask amendBackgroundTask(
320                    long backgroundTaskId,
321                    java.util.Map<java.lang.String, java.io.Serializable> taskContextMap,
322                    int status, com.liferay.portal.service.ServiceContext serviceContext)
323                    throws com.liferay.portal.kernel.exception.SystemException {
324                    return _backgroundTaskLocalService.amendBackgroundTask(backgroundTaskId,
325                            taskContextMap, status, serviceContext);
326            }
327    
328            @Override
329            public com.liferay.portal.model.BackgroundTask amendBackgroundTask(
330                    long backgroundTaskId,
331                    java.util.Map<java.lang.String, java.io.Serializable> taskContextMap,
332                    int status, java.lang.String statusMessage,
333                    com.liferay.portal.service.ServiceContext serviceContext)
334                    throws com.liferay.portal.kernel.exception.SystemException {
335                    return _backgroundTaskLocalService.amendBackgroundTask(backgroundTaskId,
336                            taskContextMap, status, statusMessage, serviceContext);
337            }
338    
339            @Override
340            public void cleanUpBackgroundTask(
341                    com.liferay.portal.model.BackgroundTask backgroundTask, int status) {
342                    _backgroundTaskLocalService.cleanUpBackgroundTask(backgroundTask, status);
343            }
344    
345            @Override
346            public void cleanUpBackgroundTasks()
347                    throws com.liferay.portal.kernel.exception.SystemException {
348                    _backgroundTaskLocalService.cleanUpBackgroundTasks();
349            }
350    
351            @Override
352            public void deleteCompanyBackgroundTasks(long companyId)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException {
355                    _backgroundTaskLocalService.deleteCompanyBackgroundTasks(companyId);
356            }
357    
358            @Override
359            public void deleteGroupBackgroundTasks(long groupId)
360                    throws com.liferay.portal.kernel.exception.PortalException,
361                            com.liferay.portal.kernel.exception.SystemException {
362                    _backgroundTaskLocalService.deleteGroupBackgroundTasks(groupId);
363            }
364    
365            @Override
366            public com.liferay.portal.model.BackgroundTask fetchFirstBackgroundTask(
367                    long groupId, java.lang.String taskExecutorClassName,
368                    boolean completed,
369                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
370                    throws com.liferay.portal.kernel.exception.SystemException {
371                    return _backgroundTaskLocalService.fetchFirstBackgroundTask(groupId,
372                            taskExecutorClassName, completed, orderByComparator);
373            }
374    
375            @Override
376            public com.liferay.portal.model.BackgroundTask fetchFirstBackgroundTask(
377                    java.lang.String taskExecutorClassName, int status)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return _backgroundTaskLocalService.fetchFirstBackgroundTask(taskExecutorClassName,
380                            status);
381            }
382    
383            @Override
384            public com.liferay.portal.model.BackgroundTask fetchFirstBackgroundTask(
385                    java.lang.String taskExecutorClassName, int status,
386                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _backgroundTaskLocalService.fetchFirstBackgroundTask(taskExecutorClassName,
389                            status, orderByComparator);
390            }
391    
392            @Override
393            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
394                    long groupId, int status)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _backgroundTaskLocalService.getBackgroundTasks(groupId, status);
397            }
398    
399            @Override
400            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
401                    long groupId, java.lang.String taskExecutorClassName)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return _backgroundTaskLocalService.getBackgroundTasks(groupId,
404                            taskExecutorClassName);
405            }
406    
407            @Override
408            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
409                    long groupId, java.lang.String taskExecutorClassName, int status)
410                    throws com.liferay.portal.kernel.exception.SystemException {
411                    return _backgroundTaskLocalService.getBackgroundTasks(groupId,
412                            taskExecutorClassName, status);
413            }
414    
415            @Override
416            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
417                    long groupId, java.lang.String taskExecutorClassName, int start,
418                    int end,
419                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return _backgroundTaskLocalService.getBackgroundTasks(groupId,
422                            taskExecutorClassName, start, end, orderByComparator);
423            }
424    
425            @Override
426            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
427                    long groupId, java.lang.String name,
428                    java.lang.String taskExecutorClassName, int start, int end,
429                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
430                    throws com.liferay.portal.kernel.exception.SystemException {
431                    return _backgroundTaskLocalService.getBackgroundTasks(groupId, name,
432                            taskExecutorClassName, start, end, orderByComparator);
433            }
434    
435            @Override
436            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
437                    long groupId, java.lang.String[] taskExecutorClassNames)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _backgroundTaskLocalService.getBackgroundTasks(groupId,
440                            taskExecutorClassNames);
441            }
442    
443            @Override
444            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
445                    long groupId, java.lang.String[] taskExecutorClassNames, int status)
446                    throws com.liferay.portal.kernel.exception.SystemException {
447                    return _backgroundTaskLocalService.getBackgroundTasks(groupId,
448                            taskExecutorClassNames, status);
449            }
450    
451            @Override
452            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
453                    long groupId, java.lang.String[] taskExecutorClassNames, int start,
454                    int end,
455                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
456                    throws com.liferay.portal.kernel.exception.SystemException {
457                    return _backgroundTaskLocalService.getBackgroundTasks(groupId,
458                            taskExecutorClassNames, start, end, orderByComparator);
459            }
460    
461            @Override
462            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
463                    java.lang.String taskExecutorClassName, int status)
464                    throws com.liferay.portal.kernel.exception.SystemException {
465                    return _backgroundTaskLocalService.getBackgroundTasks(taskExecutorClassName,
466                            status);
467            }
468    
469            @Override
470            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
471                    java.lang.String taskExecutorClassName, int status, int start, int end,
472                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
473                    throws com.liferay.portal.kernel.exception.SystemException {
474                    return _backgroundTaskLocalService.getBackgroundTasks(taskExecutorClassName,
475                            status, start, end, orderByComparator);
476            }
477    
478            @Override
479            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
480                    java.lang.String[] taskExecutorClassNames, int status)
481                    throws com.liferay.portal.kernel.exception.SystemException {
482                    return _backgroundTaskLocalService.getBackgroundTasks(taskExecutorClassNames,
483                            status);
484            }
485    
486            @Override
487            public java.util.List<com.liferay.portal.model.BackgroundTask> getBackgroundTasks(
488                    java.lang.String[] taskExecutorClassNames, int status, int start,
489                    int end,
490                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
491                    throws com.liferay.portal.kernel.exception.SystemException {
492                    return _backgroundTaskLocalService.getBackgroundTasks(taskExecutorClassNames,
493                            status, start, end, orderByComparator);
494            }
495    
496            @Override
497            public int getBackgroundTasksCount(long groupId,
498                    java.lang.String taskExecutorClassName)
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    return _backgroundTaskLocalService.getBackgroundTasksCount(groupId,
501                            taskExecutorClassName);
502            }
503    
504            @Override
505            public int getBackgroundTasksCount(long groupId,
506                    java.lang.String taskExecutorClassName, boolean completed)
507                    throws com.liferay.portal.kernel.exception.SystemException {
508                    return _backgroundTaskLocalService.getBackgroundTasksCount(groupId,
509                            taskExecutorClassName, completed);
510            }
511    
512            @Override
513            public int getBackgroundTasksCount(long groupId, java.lang.String name,
514                    java.lang.String taskExecutorClassName)
515                    throws com.liferay.portal.kernel.exception.SystemException {
516                    return _backgroundTaskLocalService.getBackgroundTasksCount(groupId,
517                            name, taskExecutorClassName);
518            }
519    
520            @Override
521            public int getBackgroundTasksCount(long groupId, java.lang.String name,
522                    java.lang.String taskExecutorClassName, boolean completed)
523                    throws com.liferay.portal.kernel.exception.SystemException {
524                    return _backgroundTaskLocalService.getBackgroundTasksCount(groupId,
525                            name, taskExecutorClassName, completed);
526            }
527    
528            @Override
529            public int getBackgroundTasksCount(long groupId,
530                    java.lang.String[] taskExecutorClassNames)
531                    throws com.liferay.portal.kernel.exception.SystemException {
532                    return _backgroundTaskLocalService.getBackgroundTasksCount(groupId,
533                            taskExecutorClassNames);
534            }
535    
536            @Override
537            public int getBackgroundTasksCount(long groupId,
538                    java.lang.String[] taskExecutorClassNames, boolean completed)
539                    throws com.liferay.portal.kernel.exception.SystemException {
540                    return _backgroundTaskLocalService.getBackgroundTasksCount(groupId,
541                            taskExecutorClassNames, completed);
542            }
543    
544            @Override
545            public java.lang.String getBackgroundTaskStatusJSON(long backgroundTaskId) {
546                    return _backgroundTaskLocalService.getBackgroundTaskStatusJSON(backgroundTaskId);
547            }
548    
549            @Override
550            public void resumeBackgroundTask(long backgroundTaskId)
551                    throws com.liferay.portal.kernel.exception.SystemException {
552                    _backgroundTaskLocalService.resumeBackgroundTask(backgroundTaskId);
553            }
554    
555            @Override
556            public void triggerBackgroundTask(long backgroundTaskId) {
557                    _backgroundTaskLocalService.triggerBackgroundTask(backgroundTaskId);
558            }
559    
560            /**
561             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
562             */
563            public BackgroundTaskLocalService getWrappedBackgroundTaskLocalService() {
564                    return _backgroundTaskLocalService;
565            }
566    
567            /**
568             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
569             */
570            public void setWrappedBackgroundTaskLocalService(
571                    BackgroundTaskLocalService backgroundTaskLocalService) {
572                    _backgroundTaskLocalService = backgroundTaskLocalService;
573            }
574    
575            @Override
576            public BackgroundTaskLocalService getWrappedService() {
577                    return _backgroundTaskLocalService;
578            }
579    
580            @Override
581            public void setWrappedService(
582                    BackgroundTaskLocalService backgroundTaskLocalService) {
583                    _backgroundTaskLocalService = backgroundTaskLocalService;
584            }
585    
586            private BackgroundTaskLocalService _backgroundTaskLocalService;
587    }