1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.polls.service;
16  
17  
18  /**
19   * <a href="PollsVoteLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link PollsVoteLocalService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       PollsVoteLocalService
32   * @generated
33   */
34  public class PollsVoteLocalServiceWrapper implements PollsVoteLocalService {
35      public PollsVoteLocalServiceWrapper(
36          PollsVoteLocalService pollsVoteLocalService) {
37          _pollsVoteLocalService = pollsVoteLocalService;
38      }
39  
40      public com.liferay.portlet.polls.model.PollsVote addPollsVote(
41          com.liferay.portlet.polls.model.PollsVote pollsVote)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return _pollsVoteLocalService.addPollsVote(pollsVote);
44      }
45  
46      public com.liferay.portlet.polls.model.PollsVote createPollsVote(
47          long voteId) {
48          return _pollsVoteLocalService.createPollsVote(voteId);
49      }
50  
51      public void deletePollsVote(long voteId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          _pollsVoteLocalService.deletePollsVote(voteId);
55      }
56  
57      public void deletePollsVote(
58          com.liferay.portlet.polls.model.PollsVote pollsVote)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          _pollsVoteLocalService.deletePollsVote(pollsVote);
61      }
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.SystemException {
66          return _pollsVoteLocalService.dynamicQuery(dynamicQuery);
67      }
68  
69      public java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.kernel.exception.SystemException {
72          return _pollsVoteLocalService.dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public com.liferay.portlet.polls.model.PollsVote getPollsVote(long voteId)
76          throws com.liferay.portal.kernel.exception.PortalException,
77              com.liferay.portal.kernel.exception.SystemException {
78          return _pollsVoteLocalService.getPollsVote(voteId);
79      }
80  
81      public java.util.List<com.liferay.portlet.polls.model.PollsVote> getPollsVotes(
82          int start, int end)
83          throws com.liferay.portal.kernel.exception.SystemException {
84          return _pollsVoteLocalService.getPollsVotes(start, end);
85      }
86  
87      public int getPollsVotesCount()
88          throws com.liferay.portal.kernel.exception.SystemException {
89          return _pollsVoteLocalService.getPollsVotesCount();
90      }
91  
92      public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
93          com.liferay.portlet.polls.model.PollsVote pollsVote)
94          throws com.liferay.portal.kernel.exception.SystemException {
95          return _pollsVoteLocalService.updatePollsVote(pollsVote);
96      }
97  
98      public com.liferay.portlet.polls.model.PollsVote updatePollsVote(
99          com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
100         throws com.liferay.portal.kernel.exception.SystemException {
101         return _pollsVoteLocalService.updatePollsVote(pollsVote, merge);
102     }
103 
104     public com.liferay.portlet.polls.model.PollsVote addVote(long userId,
105         long questionId, long choiceId)
106         throws com.liferay.portal.kernel.exception.PortalException,
107             com.liferay.portal.kernel.exception.SystemException {
108         return _pollsVoteLocalService.addVote(userId, questionId, choiceId);
109     }
110 
111     public java.util.List<com.liferay.portlet.polls.model.PollsVote> getChoiceVotes(
112         long choiceId, int start, int end)
113         throws com.liferay.portal.kernel.exception.SystemException {
114         return _pollsVoteLocalService.getChoiceVotes(choiceId, start, end);
115     }
116 
117     public int getChoiceVotesCount(long choiceId)
118         throws com.liferay.portal.kernel.exception.SystemException {
119         return _pollsVoteLocalService.getChoiceVotesCount(choiceId);
120     }
121 
122     public java.util.List<com.liferay.portlet.polls.model.PollsVote> getQuestionVotes(
123         long questionId, int start, int end)
124         throws com.liferay.portal.kernel.exception.SystemException {
125         return _pollsVoteLocalService.getQuestionVotes(questionId, start, end);
126     }
127 
128     public int getQuestionVotesCount(long questionId)
129         throws com.liferay.portal.kernel.exception.SystemException {
130         return _pollsVoteLocalService.getQuestionVotesCount(questionId);
131     }
132 
133     public com.liferay.portlet.polls.model.PollsVote getVote(long questionId,
134         long userId)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         return _pollsVoteLocalService.getVote(questionId, userId);
138     }
139 
140     public PollsVoteLocalService getWrappedPollsVoteLocalService() {
141         return _pollsVoteLocalService;
142     }
143 
144     private PollsVoteLocalService _pollsVoteLocalService;
145 }