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.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            /**
036            * Returns the Spring bean ID for this bean.
037            *
038            * @return the Spring bean ID for this bean
039            */
040            @Override
041            public java.lang.String getBeanIdentifier() {
042                    return _scLicenseService.getBeanIdentifier();
043            }
044    
045            /**
046            * Sets the Spring bean ID for this bean.
047            *
048            * @param beanIdentifier the Spring bean ID for this bean
049            */
050            @Override
051            public void setBeanIdentifier(java.lang.String beanIdentifier) {
052                    _scLicenseService.setBeanIdentifier(beanIdentifier);
053            }
054    
055            @Override
056            public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
057                    java.lang.String name, java.lang.String url, boolean openSource,
058                    boolean active, boolean recommended)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return _scLicenseService.addLicense(name, url, openSource, active,
062                            recommended);
063            }
064    
065            @Override
066            public void deleteLicense(long licenseId)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    _scLicenseService.deleteLicense(licenseId);
070            }
071    
072            @Override
073            public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
074                    long licenseId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return _scLicenseService.getLicense(licenseId);
078            }
079    
080            @Override
081            public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
082                    long licenseId, java.lang.String name, java.lang.String url,
083                    boolean openSource, boolean active, boolean recommended)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _scLicenseService.updateLicense(licenseId, name, url,
087                            openSource, active, recommended);
088            }
089    
090            /**
091             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
092             */
093            public SCLicenseService getWrappedSCLicenseService() {
094                    return _scLicenseService;
095            }
096    
097            /**
098             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
099             */
100            public void setWrappedSCLicenseService(SCLicenseService scLicenseService) {
101                    _scLicenseService = scLicenseService;
102            }
103    
104            @Override
105            public SCLicenseService getWrappedService() {
106                    return _scLicenseService;
107            }
108    
109            @Override
110            public void setWrappedService(SCLicenseService scLicenseService) {
111                    _scLicenseService = scLicenseService;
112            }
113    
114            private SCLicenseService _scLicenseService;
115    }