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