001
014
015 package com.liferay.portlet.tasks.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class TasksReviewLocalServiceUtil {
037
044 public static com.liferay.portlet.tasks.model.TasksReview addTasksReview(
045 com.liferay.portlet.tasks.model.TasksReview tasksReview)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addTasksReview(tasksReview);
048 }
049
050
056 public static com.liferay.portlet.tasks.model.TasksReview createTasksReview(
057 long reviewId) {
058 return getService().createTasksReview(reviewId);
059 }
060
061
068 public static void deleteTasksReview(long reviewId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 getService().deleteTasksReview(reviewId);
072 }
073
074
080 public static void deleteTasksReview(
081 com.liferay.portlet.tasks.model.TasksReview tasksReview)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 getService().deleteTasksReview(tasksReview);
084 }
085
086
093 @SuppressWarnings("rawtypes")
094 public static java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException {
097 return getService().dynamicQuery(dynamicQuery);
098 }
099
100
113 @SuppressWarnings("rawtypes")
114 public static java.util.List dynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116 int end) throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().dynamicQuery(dynamicQuery, start, end);
118 }
119
120
134 @SuppressWarnings("rawtypes")
135 public static java.util.List dynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
142 }
143
144
151 public static long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().dynamicQueryCount(dynamicQuery);
155 }
156
157
165 public static com.liferay.portlet.tasks.model.TasksReview getTasksReview(
166 long reviewId)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 return getService().getTasksReview(reviewId);
170 }
171
172
184 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getTasksReviews(
185 int start, int end)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getService().getTasksReviews(start, end);
188 }
189
190
196 public static int getTasksReviewsCount()
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getService().getTasksReviewsCount();
199 }
200
201
208 public static com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
209 com.liferay.portlet.tasks.model.TasksReview tasksReview)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getService().updateTasksReview(tasksReview);
212 }
213
214
222 public static com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
223 com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService().updateTasksReview(tasksReview, merge);
226 }
227
228 public static com.liferay.portlet.tasks.model.TasksReview addReview(
229 long userId, long proposalId, long assignedByUserId, int stage)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService()
233 .addReview(userId, proposalId, assignedByUserId, stage);
234 }
235
236 public static com.liferay.portlet.tasks.model.TasksReview approveReview(
237 long userId, long proposalId, int stage)
238 throws com.liferay.portal.kernel.exception.PortalException,
239 com.liferay.portal.kernel.exception.SystemException {
240 return getService().approveReview(userId, proposalId, stage);
241 }
242
243 public static void deleteReview(long reviewId)
244 throws com.liferay.portal.kernel.exception.PortalException,
245 com.liferay.portal.kernel.exception.SystemException {
246 getService().deleteReview(reviewId);
247 }
248
249 public static void deleteReview(
250 com.liferay.portlet.tasks.model.TasksReview review)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 getService().deleteReview(review);
253 }
254
255 public static void deleteReviews(long proposalId)
256 throws com.liferay.portal.kernel.exception.SystemException {
257 getService().deleteReviews(proposalId);
258 }
259
260 public static com.liferay.portlet.tasks.model.TasksReview getReview(
261 long reviewId)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException {
264 return getService().getReview(reviewId);
265 }
266
267 public static com.liferay.portlet.tasks.model.TasksReview getReview(
268 long userId, long proposalId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService().getReview(userId, proposalId);
272 }
273
274 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
275 long proposalId)
276 throws com.liferay.portal.kernel.exception.SystemException {
277 return getService().getReviews(proposalId);
278 }
279
280 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
281 long proposalId, int stage)
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return getService().getReviews(proposalId, stage);
284 }
285
286 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
287 long proposalId, int stage, boolean completed)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getService().getReviews(proposalId, stage, completed);
290 }
291
292 public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
293 long proposalId, int stage, boolean completed, boolean rejected)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getService().getReviews(proposalId, stage, completed, rejected);
296 }
297
298 public static com.liferay.portlet.tasks.model.TasksReview rejectReview(
299 long userId, long proposalId, int stage)
300 throws com.liferay.portal.kernel.exception.PortalException,
301 com.liferay.portal.kernel.exception.SystemException {
302 return getService().rejectReview(userId, proposalId, stage);
303 }
304
305 public static void updateReviews(long proposalId, long assignedByUserId,
306 long[][] userIdsPerStage)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService().updateReviews(proposalId, assignedByUserId, userIdsPerStage);
310 }
311
312 public static TasksReviewLocalService getService() {
313 if (_service == null) {
314 _service = (TasksReviewLocalService)PortalBeanLocatorUtil.locate(TasksReviewLocalService.class.getName());
315 }
316
317 return _service;
318 }
319
320 public void setService(TasksReviewLocalService service) {
321 _service = service;
322 }
323
324 private static TasksReviewLocalService _service;
325 }