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.softwarecatalog.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link SCLicenseService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see SCLicenseService
026     * @generated
027     */
028    @ProviderType
029    public class SCLicenseServiceWrapper implements SCLicenseService,
030            ServiceWrapper<SCLicenseService> {
031            public SCLicenseServiceWrapper(SCLicenseService scLicenseService) {
032                    _scLicenseService = scLicenseService;
033            }
034    
035            @Override
036            public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
037                    java.lang.String name, java.lang.String url, boolean openSource,
038                    boolean active, boolean recommended)
039                    throws com.liferay.portal.kernel.exception.PortalException {
040                    return _scLicenseService.addLicense(name, url, openSource, active,
041                            recommended);
042            }
043    
044            @Override
045            public void deleteLicense(long licenseId)
046                    throws com.liferay.portal.kernel.exception.PortalException {
047                    _scLicenseService.deleteLicense(licenseId);
048            }
049    
050            @Override
051            public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
052                    long licenseId)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _scLicenseService.getLicense(licenseId);
055            }
056    
057            /**
058            * Returns the OSGi service identifier.
059            *
060            * @return the OSGi service identifier
061            */
062            @Override
063            public java.lang.String getOSGiServiceIdentifier() {
064                    return _scLicenseService.getOSGiServiceIdentifier();
065            }
066    
067            @Override
068            public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
069                    long licenseId, java.lang.String name, java.lang.String url,
070                    boolean openSource, boolean active, boolean recommended)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return _scLicenseService.updateLicense(licenseId, name, url,
073                            openSource, active, recommended);
074            }
075    
076            /**
077             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
078             */
079            @Deprecated
080            public SCLicenseService getWrappedSCLicenseService() {
081                    return _scLicenseService;
082            }
083    
084            /**
085             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
086             */
087            @Deprecated
088            public void setWrappedSCLicenseService(SCLicenseService scLicenseService) {
089                    _scLicenseService = scLicenseService;
090            }
091    
092            @Override
093            public SCLicenseService getWrappedService() {
094                    return _scLicenseService;
095            }
096    
097            @Override
098            public void setWrappedService(SCLicenseService scLicenseService) {
099                    _scLicenseService = scLicenseService;
100            }
101    
102            private SCLicenseService _scLicenseService;
103    }