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.documentlibrary.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link DLFileVersionService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see DLFileVersionService
026     * @generated
027     */
028    @ProviderType
029    public class DLFileVersionServiceWrapper implements DLFileVersionService,
030            ServiceWrapper<DLFileVersionService> {
031            public DLFileVersionServiceWrapper(
032                    DLFileVersionService dlFileVersionService) {
033                    _dlFileVersionService = dlFileVersionService;
034            }
035    
036            /**
037            * Returns the Spring bean ID for this bean.
038            *
039            * @return the Spring bean ID for this bean
040            */
041            @Override
042            public java.lang.String getBeanIdentifier() {
043                    return _dlFileVersionService.getBeanIdentifier();
044            }
045    
046            @Override
047            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
048                    long fileVersionId)
049                    throws com.liferay.portal.kernel.exception.PortalException {
050                    return _dlFileVersionService.getFileVersion(fileVersionId);
051            }
052    
053            @Override
054            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
055                    long fileEntryId, int status)
056                    throws com.liferay.portal.kernel.exception.PortalException {
057                    return _dlFileVersionService.getFileVersions(fileEntryId, status);
058            }
059    
060            @Override
061            public int getFileVersionsCount(long fileEntryId, int status)
062                    throws com.liferay.portal.kernel.exception.PortalException {
063                    return _dlFileVersionService.getFileVersionsCount(fileEntryId, status);
064            }
065    
066            @Override
067            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
068                    long fileEntryId)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    return _dlFileVersionService.getLatestFileVersion(fileEntryId);
071            }
072    
073            /**
074            * Sets the Spring bean ID for this bean.
075            *
076            * @param beanIdentifier the Spring bean ID for this bean
077            */
078            @Override
079            public void setBeanIdentifier(java.lang.String beanIdentifier) {
080                    _dlFileVersionService.setBeanIdentifier(beanIdentifier);
081            }
082    
083            /**
084             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
085             */
086            @Deprecated
087            public DLFileVersionService getWrappedDLFileVersionService() {
088                    return _dlFileVersionService;
089            }
090    
091            /**
092             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
093             */
094            @Deprecated
095            public void setWrappedDLFileVersionService(
096                    DLFileVersionService dlFileVersionService) {
097                    _dlFileVersionService = dlFileVersionService;
098            }
099    
100            @Override
101            public DLFileVersionService getWrappedService() {
102                    return _dlFileVersionService;
103            }
104    
105            @Override
106            public void setWrappedService(DLFileVersionService dlFileVersionService) {
107                    _dlFileVersionService = dlFileVersionService;
108            }
109    
110            private DLFileVersionService _dlFileVersionService;
111    }