1   /**
2    * Copyright (c) 2000-2007 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   * <a href="PollsQuestionLocalService.java.html"><b><i>View Source</i></b></a>
27   *
28   * <p>
29   * ServiceBuilder generated this class. Modifications in this class will be overwritten
30   * the next time is generated.
31   * </p>
32   *
33   * <p>
34   * This interface defines the service. The default implementation is <code>com.liferay.portlet.polls.service.impl.PollsQuestionLocalServiceImpl</code>.
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
41   * based on the propagated JAAS credentials because this service can only be accessed
42   * from within the same VM.
43   * </p>
44   *
45   * @author Brian Wing Shun Chan
46   *
47   * @see com.liferay.portlet.polls.service.PollsQuestionServiceFactory
48   * @see com.liferay.portlet.polls.service.PollsQuestionServiceUtil
49   *
50   */
51  public interface PollsQuestionLocalService {
52      public com.liferay.portlet.polls.model.PollsQuestion addPollsQuestion(
53          com.liferay.portlet.polls.model.PollsQuestion model)
54          throws com.liferay.portal.SystemException;
55  
56      public java.util.List dynamicQuery(
57          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
58          throws com.liferay.portal.SystemException;
59  
60      public java.util.List dynamicQuery(
61          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
62          int begin, int end) throws com.liferay.portal.SystemException;
63  
64      public com.liferay.portlet.polls.model.PollsQuestion updatePollsQuestion(
65          com.liferay.portlet.polls.model.PollsQuestion model)
66          throws com.liferay.portal.SystemException;
67  
68      public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
69          long userId, long plid, java.lang.String title,
70          java.lang.String description, int expirationDateMonth,
71          int expirationDateDay, int expirationDateYear, int expirationDateHour,
72          int expirationDateMinute, boolean neverExpire, java.util.List choices,
73          boolean addCommunityPermissions, boolean addGuestPermissions)
74          throws com.liferay.portal.SystemException, 
75              com.liferay.portal.PortalException;
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, java.util.List choices,
82          java.lang.String[] communityPermissions,
83          java.lang.String[] guestPermissions)
84          throws com.liferay.portal.SystemException, 
85              com.liferay.portal.PortalException;
86  
87      public com.liferay.portlet.polls.model.PollsQuestion addQuestion(
88          long userId, long plid, java.lang.String title,
89          java.lang.String description, int expirationDateMonth,
90          int expirationDateDay, int expirationDateYear, int expirationDateHour,
91          int expirationDateMinute, boolean neverExpire, java.util.List choices,
92          java.lang.Boolean addCommunityPermissions,
93          java.lang.Boolean addGuestPermissions,
94          java.lang.String[] communityPermissions,
95          java.lang.String[] guestPermissions)
96          throws com.liferay.portal.SystemException, 
97              com.liferay.portal.PortalException;
98  
99      public void addQuestionResources(long questionId,
100         boolean addCommunityPermissions, boolean addGuestPermissions)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portal.PortalException;
103 
104     public void addQuestionResources(
105         com.liferay.portlet.polls.model.PollsQuestion question,
106         boolean addCommunityPermissions, boolean addGuestPermissions)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portal.PortalException;
109 
110     public void addQuestionResources(long questionId,
111         java.lang.String[] communityPermissions,
112         java.lang.String[] guestPermissions)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portal.PortalException;
115 
116     public void addQuestionResources(
117         com.liferay.portlet.polls.model.PollsQuestion question,
118         java.lang.String[] communityPermissions,
119         java.lang.String[] guestPermissions)
120         throws com.liferay.portal.SystemException, 
121             com.liferay.portal.PortalException;
122 
123     public void deleteQuestion(long questionId)
124         throws com.liferay.portal.SystemException, 
125             com.liferay.portal.PortalException;
126 
127     public void deleteQuestion(
128         com.liferay.portlet.polls.model.PollsQuestion question)
129         throws com.liferay.portal.SystemException, 
130             com.liferay.portal.PortalException;
131 
132     public void deleteQuestions(long groupId)
133         throws com.liferay.portal.SystemException, 
134             com.liferay.portal.PortalException;
135 
136     public com.liferay.portlet.polls.model.PollsQuestion getQuestion(
137         long questionId)
138         throws com.liferay.portal.SystemException, 
139             com.liferay.portal.PortalException;
140 
141     public java.util.List getQuestions(long groupId)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List getQuestions(long groupId, int begin, int end)
145         throws com.liferay.portal.SystemException;
146 
147     public int getQuestionsCount(long groupId)
148         throws com.liferay.portal.SystemException;
149 
150     public com.liferay.portlet.polls.model.PollsQuestion updateQuestion(
151         long userId, long questionId, java.lang.String title,
152         java.lang.String description, int expirationDateMonth,
153         int expirationDateDay, int expirationDateYear, int expirationDateHour,
154         int expirationDateMinute, boolean neverExpire, java.util.List choices)
155         throws com.liferay.portal.SystemException, 
156             com.liferay.portal.PortalException;
157 }