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 BackgroundTaskService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see BackgroundTaskService
024     * @generated
025     */
026    @ProviderType
027    public class BackgroundTaskServiceWrapper implements BackgroundTaskService,
028            ServiceWrapper<BackgroundTaskService> {
029            public BackgroundTaskServiceWrapper(
030                    BackgroundTaskService backgroundTaskService) {
031                    _backgroundTaskService = backgroundTaskService;
032            }
033    
034            /**
035            * Returns the Spring bean ID for this bean.
036            *
037            * @return the Spring bean ID for this bean
038            */
039            @Override
040            public java.lang.String getBeanIdentifier() {
041                    return _backgroundTaskService.getBeanIdentifier();
042            }
043    
044            /**
045            * Sets the Spring bean ID for this bean.
046            *
047            * @param beanIdentifier the Spring bean ID for this bean
048            */
049            @Override
050            public void setBeanIdentifier(java.lang.String beanIdentifier) {
051                    _backgroundTaskService.setBeanIdentifier(beanIdentifier);
052            }
053    
054            @Override
055            public int getBackgroundTasksCount(long groupId,
056                    java.lang.String taskExecutorClassName, java.lang.String completed)
057                    throws com.liferay.portal.kernel.exception.SystemException {
058                    return _backgroundTaskService.getBackgroundTasksCount(groupId,
059                            taskExecutorClassName, completed);
060            }
061    
062            @Override
063            public java.lang.String getBackgroundTaskStatusJSON(long backgroundTaskId) {
064                    return _backgroundTaskService.getBackgroundTaskStatusJSON(backgroundTaskId);
065            }
066    
067            /**
068             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
069             */
070            public BackgroundTaskService getWrappedBackgroundTaskService() {
071                    return _backgroundTaskService;
072            }
073    
074            /**
075             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
076             */
077            public void setWrappedBackgroundTaskService(
078                    BackgroundTaskService backgroundTaskService) {
079                    _backgroundTaskService = backgroundTaskService;
080            }
081    
082            @Override
083            public BackgroundTaskService getWrappedService() {
084                    return _backgroundTaskService;
085            }
086    
087            @Override
088            public void setWrappedService(BackgroundTaskService backgroundTaskService) {
089                    _backgroundTaskService = backgroundTaskService;
090            }
091    
092            private BackgroundTaskService _backgroundTaskService;
093    }