001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link PollsVoteLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PollsVoteLocalService
024     * @generated
025     */
026    public class PollsVoteLocalServiceWrapper implements PollsVoteLocalService {
027            public PollsVoteLocalServiceWrapper(
028                    PollsVoteLocalService pollsVoteLocalService) {
029                    _pollsVoteLocalService = pollsVoteLocalService;
030            }
031    
032            public com.liferay.portlet.polls.model.PollsVote addPollsVote(
033                    com.liferay.portlet.polls.model.PollsVote pollsVote)
034                    throws com.liferay.portal.kernel.exception.SystemException {
035                    return _pollsVoteLocalService.addPollsVote(pollsVote);
036            }
037    
038            public com.liferay.portlet.polls.model.PollsVote createPollsVote(
039                    long voteId) {
040                    return _pollsVoteLocalService.createPollsVote(voteId);
041            }
042    
043            public void deletePollsVote(long voteId)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    _pollsVoteLocalService.deletePollsVote(voteId);
047            }
048    
049            public void deletePollsVote(
050                    com.liferay.portlet.polls.model.PollsVote pollsVote)
051                    throws com.liferay.portal.kernel.exception.SystemException {
052                    _pollsVoteLocalService.deletePollsVote(pollsVote);
053            }
054    
055            @SuppressWarnings("unchecked")
056            public java.util.List dynamicQuery(
057                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
058                    throws com.liferay.portal.kernel.exception.SystemException {
059                    return _pollsVoteLocalService.dynamicQuery(dynamicQuery);
060            }
061    
062            @SuppressWarnings("unchecked")
063            public java.util.List dynamicQuery(
064                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
065                    int end) throws com.liferay.portal.kernel.exception.SystemException {
066                    return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end);
067            }
068    
069            @SuppressWarnings("unchecked")
070            public java.util.List dynamicQuery(
071                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
072                    int end,
073                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
074                    throws com.liferay.portal.kernel.exception.SystemException {
075                    return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end,
076                            orderByComparator);
077            }
078    
079            public long dynamicQueryCount(
080                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    return _pollsVoteLocalService.dynamicQueryCount(dynamicQuery);
083            }
084    
085            public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    return _pollsVoteLocalService.getPollsVote(voteId);
089            }
090    
091            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
092                    int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException {
094                    return _pollsVoteLocalService.getPollsVotes(start, end);
095            }
096    
097            public int getPollsVotesCount()
098                    throws com.liferay.portal.kernel.exception.SystemException {
099                    return _pollsVoteLocalService.getPollsVotesCount();
100            }
101    
102            public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
103                    com.liferay.portlet.polls.model.PollsVote pollsVote)
104                    throws com.liferay.portal.kernel.exception.SystemException {
105                    return _pollsVoteLocalService.updatePollsVote(pollsVote);
106            }
107    
108            public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
109                    com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
110                    throws com.liferay.portal.kernel.exception.SystemException {
111                    return _pollsVoteLocalService.updatePollsVote(pollsVote, merge);
112            }
113    
114            public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
115                    long questionId, long choiceId,
116                    com.liferay.portal.service.ServiceContext serviceContext)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException {
119                    return _pollsVoteLocalService.addVote(userId, questionId, choiceId,
120                            serviceContext);
121            }
122    
123            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
124                    long choiceId, int start, int end)
125                    throws com.liferay.portal.kernel.exception.SystemException {
126                    return _pollsVoteLocalService.getChoiceVotes(choiceId, start, end);
127            }
128    
129            public int getChoiceVotesCount(long choiceId)
130                    throws com.liferay.portal.kernel.exception.SystemException {
131                    return _pollsVoteLocalService.getChoiceVotesCount(choiceId);
132            }
133    
134            public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
135                    long questionId, int start, int end)
136                    throws com.liferay.portal.kernel.exception.SystemException {
137                    return _pollsVoteLocalService.getQuestionVotes(questionId, start, end);
138            }
139    
140            public int getQuestionVotesCount(long questionId)
141                    throws com.liferay.portal.kernel.exception.SystemException {
142                    return _pollsVoteLocalService.getQuestionVotesCount(questionId);
143            }
144    
145            public com.liferay.portlet.polls.model.PollsVote getVote(long questionId,
146                    long userId)
147                    throws com.liferay.portal.kernel.exception.PortalException,
148                            com.liferay.portal.kernel.exception.SystemException {
149                    return _pollsVoteLocalService.getVote(questionId, userId);
150            }
151    
152            public PollsVoteLocalService getWrappedPollsVoteLocalService() {
153                    return _pollsVoteLocalService;
154            }
155    
156            private PollsVoteLocalService _pollsVoteLocalService;
157    }