001    /**
002     * Copyright (c) 2000-present 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            @Override
035            public java.lang.String getBackgroundTaskStatusJSON(long backgroundTaskId) {
036                    return _backgroundTaskService.getBackgroundTaskStatusJSON(backgroundTaskId);
037            }
038    
039            @Override
040            public int getBackgroundTasksCount(long groupId,
041                    java.lang.String taskExecutorClassName, java.lang.String completed) {
042                    return _backgroundTaskService.getBackgroundTasksCount(groupId,
043                            taskExecutorClassName, completed);
044            }
045    
046            /**
047            * Returns the Spring bean ID for this bean.
048            *
049            * @return the Spring bean ID for this bean
050            */
051            @Override
052            public java.lang.String getBeanIdentifier() {
053                    return _backgroundTaskService.getBeanIdentifier();
054            }
055    
056            /**
057            * Sets the Spring bean ID for this bean.
058            *
059            * @param beanIdentifier the Spring bean ID for this bean
060            */
061            @Override
062            public void setBeanIdentifier(java.lang.String beanIdentifier) {
063                    _backgroundTaskService.setBeanIdentifier(beanIdentifier);
064            }
065    
066            /**
067             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
068             */
069            @Deprecated
070            public BackgroundTaskService getWrappedBackgroundTaskService() {
071                    return _backgroundTaskService;
072            }
073    
074            /**
075             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
076             */
077            @Deprecated
078            public void setWrappedBackgroundTaskService(
079                    BackgroundTaskService backgroundTaskService) {
080                    _backgroundTaskService = backgroundTaskService;
081            }
082    
083            @Override
084            public BackgroundTaskService getWrappedService() {
085                    return _backgroundTaskService;
086            }
087    
088            @Override
089            public void setWrappedService(BackgroundTaskService backgroundTaskService) {
090                    _backgroundTaskService = backgroundTaskService;
091            }
092    
093            private BackgroundTaskService _backgroundTaskService;
094    }