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