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.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            /**
047            * Sets the Spring bean ID for this bean.
048            *
049            * @param beanIdentifier the Spring bean ID for this bean
050            */
051            @Override
052            public void setBeanIdentifier(java.lang.String beanIdentifier) {
053                    _dlFileVersionService.setBeanIdentifier(beanIdentifier);
054            }
055    
056            @Override
057            public com.liferay.portlet.documentlibrary.model.DLFileVersion getFileVersion(
058                    long fileVersionId)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return _dlFileVersionService.getFileVersion(fileVersionId);
062            }
063    
064            @Override
065            public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileVersion> getFileVersions(
066                    long fileEntryId, int status)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _dlFileVersionService.getFileVersions(fileEntryId, status);
070            }
071    
072            @Override
073            public int getFileVersionsCount(long fileEntryId, int status)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    return _dlFileVersionService.getFileVersionsCount(fileEntryId, status);
077            }
078    
079            @Override
080            public com.liferay.portlet.documentlibrary.model.DLFileVersion getLatestFileVersion(
081                    long fileEntryId)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return _dlFileVersionService.getLatestFileVersion(fileEntryId);
085            }
086    
087            /**
088             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
089             */
090            public DLFileVersionService getWrappedDLFileVersionService() {
091                    return _dlFileVersionService;
092            }
093    
094            /**
095             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
096             */
097            public void setWrappedDLFileVersionService(
098                    DLFileVersionService dlFileVersionService) {
099                    _dlFileVersionService = dlFileVersionService;
100            }
101    
102            @Override
103            public DLFileVersionService getWrappedService() {
104                    return _dlFileVersionService;
105            }
106    
107            @Override
108            public void setWrappedService(DLFileVersionService dlFileVersionService) {
109                    _dlFileVersionService = dlFileVersionService;
110            }
111    
112            private DLFileVersionService _dlFileVersionService;
113    }