001
014
015 package com.liferay.portlet.tasks.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface TasksProposalLocalService {
043
050 public com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
051 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
061 long proposalId);
062
063
070 public void deleteTasksProposal(long proposalId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteTasksProposal(
081 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.tasks.model.TasksProposal getTasksProposal(
156 long proposalId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
174 int start, int end)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public int getTasksProposalsCount()
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187
194 public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
195 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198
206 public com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
207 com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
208 boolean merge)
209 throws com.liferay.portal.kernel.exception.SystemException;
210
211 public com.liferay.portlet.tasks.model.TasksProposal addProposal(
212 long userId, long groupId, java.lang.String className,
213 java.lang.String classPK, java.lang.String name,
214 java.lang.String description, long reviewUserId,
215 boolean addCommunityPermissions, boolean addGuestPermissions)
216 throws com.liferay.portal.kernel.exception.PortalException,
217 com.liferay.portal.kernel.exception.SystemException;
218
219 public com.liferay.portlet.tasks.model.TasksProposal addProposal(
220 long userId, long groupId, java.lang.String className,
221 java.lang.String classPK, java.lang.String name,
222 java.lang.String description, long reviewUserId,
223 java.lang.Boolean addCommunityPermissions,
224 java.lang.Boolean addGuestPermissions,
225 java.lang.String[] communityPermissions,
226 java.lang.String[] guestPermissions)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException;
229
230 public com.liferay.portlet.tasks.model.TasksProposal addProposal(
231 long userId, long groupId, java.lang.String className,
232 java.lang.String classPK, java.lang.String name,
233 java.lang.String description, long reviewUserId,
234 java.lang.String[] communityPermissions,
235 java.lang.String[] guestPermissions)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException;
238
239 public void addProposalResources(long proposalId,
240 boolean addCommunityPermissions, boolean addGuestPermissions)
241 throws com.liferay.portal.kernel.exception.PortalException,
242 com.liferay.portal.kernel.exception.SystemException;
243
244 public void addProposalResources(long proposalId,
245 java.lang.String[] communityPermissions,
246 java.lang.String[] guestPermissions)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public void addProposalResources(
251 com.liferay.portlet.tasks.model.TasksProposal proposal,
252 boolean addCommunityPermissions, boolean addGuestPermissions)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void addProposalResources(
257 com.liferay.portlet.tasks.model.TasksProposal proposal,
258 java.lang.String[] communityPermissions,
259 java.lang.String[] guestPermissions)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException;
262
263 public void deleteProposal(long proposalId)
264 throws com.liferay.portal.kernel.exception.PortalException,
265 com.liferay.portal.kernel.exception.SystemException;
266
267 public void deleteProposal(long classNameId, java.lang.String classPK)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException;
270
271 public void deleteProposal(java.lang.String className,
272 java.lang.String classPK)
273 throws com.liferay.portal.kernel.exception.PortalException,
274 com.liferay.portal.kernel.exception.SystemException;
275
276 public void deleteProposal(
277 com.liferay.portlet.tasks.model.TasksProposal proposal)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException;
280
281 public void deleteProposals(long groupId)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException;
284
285 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
286 public com.liferay.portlet.tasks.model.TasksProposal getProposal(
287 long proposalId)
288 throws com.liferay.portal.kernel.exception.PortalException,
289 com.liferay.portal.kernel.exception.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public com.liferay.portlet.tasks.model.TasksProposal getProposal(
293 long classNameId, java.lang.String classPK)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException;
296
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public com.liferay.portlet.tasks.model.TasksProposal getProposal(
299 java.lang.String className, java.lang.String classPK)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException;
302
303 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
305 long groupId, int start, int end)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public int getProposalsCount(long groupId)
310 throws com.liferay.portal.kernel.exception.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
314 long groupId, long userId, int start, int end)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
318 public int getReviewProposalsCount(long groupId, long userId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
322 public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
323 long groupId, long userId, int start, int end)
324 throws com.liferay.portal.kernel.exception.SystemException;
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public int getUserProposalsCount(long groupId, long userId)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330 public com.liferay.portlet.tasks.model.TasksProposal updateProposal(
331 long userId, long proposalId, java.lang.String description,
332 int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
333 int dueDateMinute)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336 }