1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.tasks.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="TasksReviewLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link TasksReviewLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       TasksReviewLocalService
37   * @generated
38   */
39  public class TasksReviewLocalServiceUtil {
40      public static com.liferay.portlet.tasks.model.TasksReview addTasksReview(
41          com.liferay.portlet.tasks.model.TasksReview tasksReview)
42          throws com.liferay.portal.SystemException {
43          return getService().addTasksReview(tasksReview);
44      }
45  
46      public static com.liferay.portlet.tasks.model.TasksReview createTasksReview(
47          long reviewId) {
48          return getService().createTasksReview(reviewId);
49      }
50  
51      public static void deleteTasksReview(long reviewId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteTasksReview(reviewId);
55      }
56  
57      public static void deleteTasksReview(
58          com.liferay.portlet.tasks.model.TasksReview tasksReview)
59          throws com.liferay.portal.SystemException {
60          getService().deleteTasksReview(tasksReview);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.tasks.model.TasksReview getTasksReview(
76          long reviewId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getTasksReview(reviewId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getTasksReviews(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getTasksReviews(start, end);
85      }
86  
87      public static int getTasksReviewsCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getTasksReviewsCount();
90      }
91  
92      public static com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
93          com.liferay.portlet.tasks.model.TasksReview tasksReview)
94          throws com.liferay.portal.SystemException {
95          return getService().updateTasksReview(tasksReview);
96      }
97  
98      public static com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
99          com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
100         throws com.liferay.portal.SystemException {
101         return getService().updateTasksReview(tasksReview, merge);
102     }
103 
104     public static com.liferay.portlet.tasks.model.TasksReview addReview(
105         long userId, long proposalId, long assignedByUserId, int stage)
106         throws com.liferay.portal.PortalException,
107             com.liferay.portal.SystemException {
108         return getService()
109                    .addReview(userId, proposalId, assignedByUserId, stage);
110     }
111 
112     public static com.liferay.portlet.tasks.model.TasksReview approveReview(
113         long userId, long proposalId, int stage)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException {
116         return getService().approveReview(userId, proposalId, stage);
117     }
118 
119     public static void deleteReview(long reviewId)
120         throws com.liferay.portal.PortalException,
121             com.liferay.portal.SystemException {
122         getService().deleteReview(reviewId);
123     }
124 
125     public static void deleteReview(
126         com.liferay.portlet.tasks.model.TasksReview review)
127         throws com.liferay.portal.SystemException {
128         getService().deleteReview(review);
129     }
130 
131     public static void deleteReviews(long proposalId)
132         throws com.liferay.portal.SystemException {
133         getService().deleteReviews(proposalId);
134     }
135 
136     public static com.liferay.portlet.tasks.model.TasksReview getReview(
137         long reviewId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException {
140         return getService().getReview(reviewId);
141     }
142 
143     public static com.liferay.portlet.tasks.model.TasksReview getReview(
144         long userId, long proposalId)
145         throws com.liferay.portal.PortalException,
146             com.liferay.portal.SystemException {
147         return getService().getReview(userId, proposalId);
148     }
149 
150     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
151         long proposalId) throws com.liferay.portal.SystemException {
152         return getService().getReviews(proposalId);
153     }
154 
155     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
156         long proposalId, int stage) throws com.liferay.portal.SystemException {
157         return getService().getReviews(proposalId, stage);
158     }
159 
160     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
161         long proposalId, int stage, boolean completed)
162         throws com.liferay.portal.SystemException {
163         return getService().getReviews(proposalId, stage, completed);
164     }
165 
166     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
167         long proposalId, int stage, boolean completed, boolean rejected)
168         throws com.liferay.portal.SystemException {
169         return getService().getReviews(proposalId, stage, completed, rejected);
170     }
171 
172     public static com.liferay.portlet.tasks.model.TasksReview rejectReview(
173         long userId, long proposalId, int stage)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         return getService().rejectReview(userId, proposalId, stage);
177     }
178 
179     public static void updateReviews(long proposalId, long assignedByUserId,
180         long[][] userIdsPerStage)
181         throws com.liferay.portal.PortalException,
182             com.liferay.portal.SystemException {
183         getService().updateReviews(proposalId, assignedByUserId, userIdsPerStage);
184     }
185 
186     public static TasksReviewLocalService getService() {
187         if (_service == null) {
188             _service = (TasksReviewLocalService)PortalBeanLocatorUtil.locate(TasksReviewLocalService.class.getName());
189         }
190 
191         return _service;
192     }
193 
194     public void setService(TasksReviewLocalService service) {
195         _service = service;
196     }
197 
198     private static TasksReviewLocalService _service;
199 }