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