1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.polls.service;
16  
17  import com.liferay.portal.PortalException;
18  import com.liferay.portal.SystemException;
19  import com.liferay.portal.kernel.annotation.Isolation;
20  import com.liferay.portal.kernel.annotation.Propagation;
21  import com.liferay.portal.kernel.annotation.Transactional;
22  
23  /**
24   * <a href="PollsQuestionLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * 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.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       PollsQuestionLocalServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface PollsQuestionLocalService {
50      public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
51          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.polls.model.PollsQuestion createPollsQuestion(
55          long questionId);
56  
57      public void deletePollsQuestion(long questionId)
58          throws com.liferay.portal.PortalException,
59              com.liferay.portal.SystemException;
60  
61      public void deletePollsQuestion(
62          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List<Object> dynamicQuery(
66          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67          throws com.liferay.portal.SystemException;
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.SystemException;
72  
73      public java.util.List<Object> dynamicQuery(
74          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75          int end,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.SystemException;
78  
79      public int dynamicQueryCount(
80          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81          throws com.liferay.portal.SystemException;
82  
83      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84      public com.liferay.portlet.polls.model.PollsQuestion getPollsQuestion(
85          long questionId)
86          throws com.liferay.portal.PortalException,
87              com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90      public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getPollsQuestions(
91          int start, int end) throws com.liferay.portal.SystemException;
92  
93      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94      public int getPollsQuestionsCount()
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
98          com.liferay.portlet.polls.model.PollsQuestion pollsQuestion)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
102         com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
103         boolean merge) throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
106         long userId, java.lang.String title, java.lang.String description,
107         int expirationDateMonth, int expirationDateDay, int expirationDateYear,
108         int expirationDateHour, int expirationDateMinute, boolean neverExpire,
109         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
110         com.liferay.portal.service.ServiceContext serviceContext)
111         throws com.liferay.portal.PortalException,
112             com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
115         java.lang.String uuid, long userId, 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         com.liferay.portal.service.ServiceContext serviceContext)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public void addQuestionResources(long questionId,
125         boolean addCommunityPermissions, boolean addGuestPermissions)
126         throws com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     public void addQuestionResources(long questionId,
130         java.lang.String[] communityPermissions,
131         java.lang.String[] guestPermissions)
132         throws com.liferay.portal.PortalException,
133             com.liferay.portal.SystemException;
134 
135     public void addQuestionResources(
136         com.liferay.portlet.polls.model.PollsQuestion question,
137         boolean addCommunityPermissions, boolean addGuestPermissions)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public void addQuestionResources(
142         com.liferay.portlet.polls.model.PollsQuestion question,
143         java.lang.String[] communityPermissions,
144         java.lang.String[] guestPermissions)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException;
147 
148     public void deleteQuestion(long questionId)
149         throws com.liferay.portal.PortalException,
150             com.liferay.portal.SystemException;
151 
152     public void deleteQuestion(
153         com.liferay.portlet.polls.model.PollsQuestion question)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public void deleteQuestions(long groupId)
158         throws com.liferay.portal.PortalException,
159             com.liferay.portal.SystemException;
160 
161     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
163         long questionId)
164         throws com.liferay.portal.PortalException,
165             com.liferay.portal.SystemException;
166 
167     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
169         long groupId) throws com.liferay.portal.SystemException;
170 
171     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172     public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> getQuestions(
173         long groupId, int start, int end)
174         throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public int getQuestionsCount(long groupId)
178         throws com.liferay.portal.SystemException;
179 
180     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
181         long userId, long questionId, java.lang.String title,
182         java.lang.String description, int expirationDateMonth,
183         int expirationDateDay, int expirationDateYear, int expirationDateHour,
184         int expirationDateMinute, boolean neverExpire)
185         throws com.liferay.portal.PortalException,
186             com.liferay.portal.SystemException;
187 
188     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
189         long userId, long questionId, java.lang.String title,
190         java.lang.String description, int expirationDateMonth,
191         int expirationDateDay, int expirationDateYear, int expirationDateHour,
192         int expirationDateMinute, boolean neverExpire,
193         java.util.List<com.liferay.portlet.polls.model.PollsChoice> choices,
194         com.liferay.portal.service.ServiceContext serviceContext)
195         throws com.liferay.portal.PortalException,
196             com.liferay.portal.SystemException;
197 }