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