1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.polls.service;
24  
25  
26  /**
27   * <a href="PollsQuestionLocalService.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This interface defines the service. The default implementation is
36   * <code>com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl</code>.
37   * Modify methods in that class and rerun ServiceBuilder to populate this class
38   * and all other generated classes.
39   * </p>
40   *
41   * <p>
42   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.polls.service.PollsQuestionLocalServiceUtil
48   *
49   */
50  public interface PollsQuestionLocalService {
51      public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
52          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
56          long questionId);
57  
58      public void deletePollsQuestion(long questionId)
59          throws com.liferay.portal.SystemException,
60              com.liferay.portal.PortalException;
61  
62      public void deletePollsQuestion(
63          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<Object> dynamicQuery(
67          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68          throws com.liferay.portal.SystemException;
69  
70      public java.util.List<Object> dynamicQuery(
71          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
72          int end) throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
75          long questionId)
76          throws com.liferay.portal.SystemException,
77              com.liferay.portal.PortalException;
78  
79      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
80          int start, int end) throws com.liferay.portal.SystemException;
81  
82      public int getPollsQuestionsCount()
83          throws com.liferay.portal.SystemException;
84  
85      public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
86          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
87          throws com.liferay.portal.SystemException;
88  
89      public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
90          long userId, long plid, java.lang.String title,
91          java.lang.String description, int expirationDateMonth,
92          int expirationDateDay, int expirationDateYear, int expirationDateHour,
93          int expirationDateMinute, boolean neverExpire,
94          boolean addCommunityPermissions, boolean addGuestPermissions)
95          throws com.liferay.portal.PortalException,
96              com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
99          java.lang.String uuid, long userId, long plid, java.lang.String title,
100         java.lang.String description, int expirationDateMonth,
101         int expirationDateDay, int expirationDateYear, int expirationDateHour,
102         int expirationDateMinute, boolean neverExpire,
103         boolean addCommunityPermissions, boolean addGuestPermissions)
104         throws com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
108         long userId, long plid, java.lang.String title,
109         java.lang.String description, int expirationDateMonth,
110         int expirationDateDay, int expirationDateYear, int expirationDateHour,
111         int expirationDateMinute, boolean neverExpire,
112         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
113         boolean addCommunityPermissions, boolean addGuestPermissions)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
118         long userId, long plid, java.lang.String title,
119         java.lang.String description, int expirationDateMonth,
120         int expirationDateDay, int expirationDateYear, int expirationDateHour,
121         int expirationDateMinute, boolean neverExpire,
122         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
123         java.lang.String[] communityPermissions,
124         java.lang.String[] guestPermissions)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
129         java.lang.String uuid, long userId, long plid, java.lang.String title,
130         java.lang.String description, int expirationDateMonth,
131         int expirationDateDay, int expirationDateYear, int expirationDateHour,
132         int expirationDateMinute, boolean neverExpire,
133         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
134         java.lang.Boolean addCommunityPermissions,
135         java.lang.Boolean addGuestPermissions,
136         java.lang.String[] communityPermissions,
137         java.lang.String[] guestPermissions)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public void addQuestionResources(long questionId,
142         boolean addCommunityPermissions, boolean addGuestPermissions)
143         throws com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void addQuestionResources(
147         com.liferay.portlet.polls.model.PollsQuestion question,
148         boolean addCommunityPermissions, boolean addGuestPermissions)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public void addQuestionResources(long questionId,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException;
157 
158     public void addQuestionResources(
159         com.liferay.portlet.polls.model.PollsQuestion question,
160         java.lang.String[] communityPermissions,
161         java.lang.String[] guestPermissions)
162         throws com.liferay.portal.PortalException,
163             com.liferay.portal.SystemException;
164 
165     public void deleteQuestion(long questionId)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException;
168 
169     public void deleteQuestion(
170         com.liferay.portlet.polls.model.PollsQuestion question)
171         throws com.liferay.portal.PortalException,
172             com.liferay.portal.SystemException;
173 
174     public void deleteQuestions(long groupId)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
179         long questionId)
180         throws com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
184         long groupId) throws com.liferay.portal.SystemException;
185 
186     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
187         long groupId, int start, int end)
188         throws com.liferay.portal.SystemException;
189 
190     public int getQuestionsCount(long groupId)
191         throws com.liferay.portal.SystemException;
192 
193     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
194         long userId, long questionId, java.lang.String title,
195         java.lang.String description, int expirationDateMonth,
196         int expirationDateDay, int expirationDateYear, int expirationDateHour,
197         int expirationDateMinute, boolean neverExpire)
198         throws com.liferay.portal.PortalException,
199             com.liferay.portal.SystemException;
200 
201     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
202         long userId, long questionId, java.lang.String title,
203         java.lang.String description, int expirationDateMonth,
204         int expirationDateDay, int expirationDateYear, int expirationDateHour,
205         int expirationDateMinute, boolean neverExpire,
206         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException;
209 }