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