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.polls.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * Provides a wrapper for {@link PollsVoteService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see PollsVoteService
024     * @generated
025     */
026    public class PollsVoteServiceWrapper implements PollsVoteService,
027            ServiceWrapper<PollsVoteService> {
028            public PollsVoteServiceWrapper(PollsVoteService pollsVoteService) {
029                    _pollsVoteService = pollsVoteService;
030            }
031    
032            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            @Override
038            public java.lang.String getBeanIdentifier() {
039                    return _pollsVoteService.getBeanIdentifier();
040            }
041    
042            /**
043            * Sets the Spring bean ID for this bean.
044            *
045            * @param beanIdentifier the Spring bean ID for this bean
046            */
047            @Override
048            public void setBeanIdentifier(java.lang.String beanIdentifier) {
049                    _pollsVoteService.setBeanIdentifier(beanIdentifier);
050            }
051    
052            @Override
053            public com.liferay.portlet.polls.model.PollsVote addVote(long questionId,
054                    long choiceId, com.liferay.portal.service.ServiceContext serviceContext)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    return _pollsVoteService.addVote(questionId, choiceId, serviceContext);
058            }
059    
060            /**
061             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
062             */
063            public PollsVoteService getWrappedPollsVoteService() {
064                    return _pollsVoteService;
065            }
066    
067            /**
068             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
069             */
070            public void setWrappedPollsVoteService(PollsVoteService pollsVoteService) {
071                    _pollsVoteService = pollsVoteService;
072            }
073    
074            @Override
075            public PollsVoteService getWrappedService() {
076                    return _pollsVoteService;
077            }
078    
079            @Override
080            public void setWrappedService(PollsVoteService pollsVoteService) {
081                    _pollsVoteService = pollsVoteService;
082            }
083    
084            private PollsVoteService _pollsVoteService;
085    }