1
22
23 package com.liferay.portlet.polls.service;
24
25
26
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 }