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.portlet.exportimport.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link StagingService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see StagingService
026     * @generated
027     */
028    @ProviderType
029    public class StagingServiceWrapper implements StagingService,
030            ServiceWrapper<StagingService> {
031            public StagingServiceWrapper(StagingService stagingService) {
032                    _stagingService = stagingService;
033            }
034    
035            @Override
036            public void cleanUpStagingRequest(long stagingRequestId)
037                    throws com.liferay.portal.kernel.exception.PortalException {
038                    _stagingService.cleanUpStagingRequest(stagingRequestId);
039            }
040    
041            @Override
042            public long createStagingRequest(long groupId, java.lang.String checksum)
043                    throws com.liferay.portal.kernel.exception.PortalException {
044                    return _stagingService.createStagingRequest(groupId, checksum);
045            }
046    
047            /**
048            * Returns the OSGi service identifier.
049            *
050            * @return the OSGi service identifier
051            */
052            @Override
053            public java.lang.String getOSGiServiceIdentifier() {
054                    return _stagingService.getOSGiServiceIdentifier();
055            }
056    
057            @Override
058            public com.liferay.portlet.exportimport.lar.MissingReferences publishStagingRequest(
059                    long stagingRequestId,
060                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    return _stagingService.publishStagingRequest(stagingRequestId,
063                            exportImportConfiguration);
064            }
065    
066            /**
067            * @deprecated As of 7.0.0, with no direct replacement
068            */
069            @Deprecated
070            @Override
071            public com.liferay.portlet.exportimport.lar.MissingReferences publishStagingRequest(
072                    long stagingRequestId, boolean privateLayout,
073                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    return _stagingService.publishStagingRequest(stagingRequestId,
076                            privateLayout, parameterMap);
077            }
078    
079            @Override
080            public void updateStagingRequest(long stagingRequestId,
081                    java.lang.String fileName, byte[] bytes)
082                    throws com.liferay.portal.kernel.exception.PortalException {
083                    _stagingService.updateStagingRequest(stagingRequestId, fileName, bytes);
084            }
085    
086            /**
087            * @deprecated As of 7.0.0, replaced by {@link #publishStagingRequest(long,
088            boolean, Map)}
089            */
090            @Deprecated
091            @Override
092            public com.liferay.portlet.exportimport.lar.MissingReferences validateStagingRequest(
093                    long stagingRequestId, boolean privateLayout,
094                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap)
095                    throws com.liferay.portal.kernel.exception.PortalException {
096                    return _stagingService.validateStagingRequest(stagingRequestId,
097                            privateLayout, parameterMap);
098            }
099    
100            @Override
101            public StagingService getWrappedService() {
102                    return _stagingService;
103            }
104    
105            @Override
106            public void setWrappedService(StagingService stagingService) {
107                    _stagingService = stagingService;
108            }
109    
110            private StagingService _stagingService;
111    }