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.ratings.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link RatingsEntryService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see RatingsEntryService
026     * @generated
027     */
028    @ProviderType
029    public class RatingsEntryServiceWrapper implements RatingsEntryService,
030            ServiceWrapper<RatingsEntryService> {
031            public RatingsEntryServiceWrapper(RatingsEntryService ratingsEntryService) {
032                    _ratingsEntryService = ratingsEntryService;
033            }
034    
035            @Override
036            public void deleteEntry(java.lang.String className, long classPK)
037                    throws com.liferay.portal.kernel.exception.PortalException {
038                    _ratingsEntryService.deleteEntry(className, classPK);
039            }
040    
041            /**
042            * Returns the OSGi service identifier.
043            *
044            * @return the OSGi service identifier
045            */
046            @Override
047            public java.lang.String getOSGiServiceIdentifier() {
048                    return _ratingsEntryService.getOSGiServiceIdentifier();
049            }
050    
051            @Override
052            public com.liferay.portlet.ratings.model.RatingsEntry updateEntry(
053                    java.lang.String className, long classPK, double score)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return _ratingsEntryService.updateEntry(className, classPK, score);
056            }
057    
058            @Override
059            public RatingsEntryService getWrappedService() {
060                    return _ratingsEntryService;
061            }
062    
063            @Override
064            public void setWrappedService(RatingsEntryService ratingsEntryService) {
065                    _ratingsEntryService = ratingsEntryService;
066            }
067    
068            private RatingsEntryService _ratingsEntryService;
069    }