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 void deletePollsQuestion(long questionId)
56          throws com.liferay.portal.SystemException,
57              com.liferay.portal.PortalException;
58  
59      public void deletePollsQuestion(
60          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<Object> dynamicQuery(
68          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
69          int end) throws com.liferay.portal.SystemException;
70  
71      public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
72          long questionId)
73          throws com.liferay.portal.SystemException,
74              com.liferay.portal.PortalException;
75  
76      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
77          int start, int end) throws com.liferay.portal.SystemException;
78  
79      public int getPollsQuestionsCount()
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
83          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
87          long userId, long plid, java.lang.String title,
88          java.lang.String description, int expirationDateMonth,
89          int expirationDateDay, int expirationDateYear, int expirationDateHour,
90          int expirationDateMinute, boolean neverExpire,
91          boolean addCommunityPermissions, boolean addGuestPermissions)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException;
94  
95      public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
96          java.lang.String uuid, long userId, long plid, java.lang.String title,
97          java.lang.String description, int expirationDateMonth,
98          int expirationDateDay, int expirationDateYear, int expirationDateHour,
99          int expirationDateMinute, boolean neverExpire,
100         boolean addCommunityPermissions, boolean addGuestPermissions)
101         throws com.liferay.portal.PortalException,
102             com.liferay.portal.SystemException;
103 
104     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
105         long userId, long plid, java.lang.String title,
106         java.lang.String description, int expirationDateMonth,
107         int expirationDateDay, int expirationDateYear, int expirationDateHour,
108         int expirationDateMinute, boolean neverExpire,
109         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
110         boolean addCommunityPermissions, boolean addGuestPermissions)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
115         long userId, long plid, java.lang.String title,
116         java.lang.String description, int expirationDateMonth,
117         int expirationDateDay, int expirationDateYear, int expirationDateHour,
118         int expirationDateMinute, boolean neverExpire,
119         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
120         java.lang.String[] communityPermissions,
121         java.lang.String[] guestPermissions)
122         throws com.liferay.portal.PortalException,
123             com.liferay.portal.SystemException;
124 
125     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
126         java.lang.String uuid, long userId, long plid, java.lang.String title,
127         java.lang.String description, int expirationDateMonth,
128         int expirationDateDay, int expirationDateYear, int expirationDateHour,
129         int expirationDateMinute, boolean neverExpire,
130         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
131         java.lang.Boolean addCommunityPermissions,
132         java.lang.Boolean addGuestPermissions,
133         java.lang.String[] communityPermissions,
134         java.lang.String[] guestPermissions)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException;
137 
138     public void addQuestionResources(long questionId,
139         boolean addCommunityPermissions, boolean addGuestPermissions)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void addQuestionResources(
144         com.liferay.portlet.polls.model.PollsQuestion question,
145         boolean addCommunityPermissions, boolean addGuestPermissions)
146         throws com.liferay.portal.PortalException,
147             com.liferay.portal.SystemException;
148 
149     public void addQuestionResources(long questionId,
150         java.lang.String[] communityPermissions,
151         java.lang.String[] guestPermissions)
152         throws com.liferay.portal.PortalException,
153             com.liferay.portal.SystemException;
154 
155     public void addQuestionResources(
156         com.liferay.portlet.polls.model.PollsQuestion question,
157         java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException;
161 
162     public void deleteQuestion(long questionId)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public void deleteQuestion(
167         com.liferay.portlet.polls.model.PollsQuestion question)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public void deleteQuestions(long groupId)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException;
174 
175     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
176         long questionId)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
181         long groupId) throws com.liferay.portal.SystemException;
182 
183     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
184         long groupId, int start, int end)
185         throws com.liferay.portal.SystemException;
186 
187     public int getQuestionsCount(long groupId)
188         throws com.liferay.portal.SystemException;
189 
190     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
191         long userId, long questionId, java.lang.String title,
192         java.lang.String description, int expirationDateMonth,
193         int expirationDateDay, int expirationDateYear, int expirationDateHour,
194         int expirationDateMinute, boolean neverExpire)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException;
197 
198     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
199         long userId, long questionId, java.lang.String title,
200         java.lang.String description, int expirationDateMonth,
201         int expirationDateDay, int expirationDateYear, int expirationDateHour,
202         int expirationDateMinute, boolean neverExpire,
203         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices)
204         throws com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException;
206 }