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 java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end,
78          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
79          throws com.liferay.portal.SystemException {
80          return getService()
81                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
82      }
83  
84      public static int dynamicQueryCount(
85          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
86          throws com.liferay.portal.SystemException {
87          return getService().dynamicQueryCount(dynamicQuery);
88      }
89  
90      public static com.liferay.portlet.tasks.model.TasksReview getTasksReview(
91          long reviewId)
92          throws com.liferay.portal.PortalException,
93              com.liferay.portal.SystemException {
94          return getService().getTasksReview(reviewId);
95      }
96  
97      public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getTasksReviews(
98          int start, int end) throws com.liferay.portal.SystemException {
99          return getService().getTasksReviews(start, end);
100     }
101 
102     public static int getTasksReviewsCount()
103         throws com.liferay.portal.SystemException {
104         return getService().getTasksReviewsCount();
105     }
106 
107     public static com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
108         com.liferay.portlet.tasks.model.TasksReview tasksReview)
109         throws com.liferay.portal.SystemException {
110         return getService().updateTasksReview(tasksReview);
111     }
112 
113     public static com.liferay.portlet.tasks.model.TasksReview updateTasksReview(
114         com.liferay.portlet.tasks.model.TasksReview tasksReview, boolean merge)
115         throws com.liferay.portal.SystemException {
116         return getService().updateTasksReview(tasksReview, merge);
117     }
118 
119     public static com.liferay.portlet.tasks.model.TasksReview addReview(
120         long userId, long proposalId, long assignedByUserId, int stage)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException {
123         return getService()
124                    .addReview(userId, proposalId, assignedByUserId, stage);
125     }
126 
127     public static com.liferay.portlet.tasks.model.TasksReview approveReview(
128         long userId, long proposalId, int stage)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException {
131         return getService().approveReview(userId, proposalId, stage);
132     }
133 
134     public static void deleteReview(long reviewId)
135         throws com.liferay.portal.PortalException,
136             com.liferay.portal.SystemException {
137         getService().deleteReview(reviewId);
138     }
139 
140     public static void deleteReview(
141         com.liferay.portlet.tasks.model.TasksReview review)
142         throws com.liferay.portal.SystemException {
143         getService().deleteReview(review);
144     }
145 
146     public static void deleteReviews(long proposalId)
147         throws com.liferay.portal.SystemException {
148         getService().deleteReviews(proposalId);
149     }
150 
151     public static com.liferay.portlet.tasks.model.TasksReview getReview(
152         long reviewId)
153         throws com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException {
155         return getService().getReview(reviewId);
156     }
157 
158     public static com.liferay.portlet.tasks.model.TasksReview getReview(
159         long userId, long proposalId)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         return getService().getReview(userId, proposalId);
163     }
164 
165     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
166         long proposalId) throws com.liferay.portal.SystemException {
167         return getService().getReviews(proposalId);
168     }
169 
170     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
171         long proposalId, int stage) throws com.liferay.portal.SystemException {
172         return getService().getReviews(proposalId, stage);
173     }
174 
175     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
176         long proposalId, int stage, boolean completed)
177         throws com.liferay.portal.SystemException {
178         return getService().getReviews(proposalId, stage, completed);
179     }
180 
181     public static java.util.List<com.liferay.portlet.tasks.model.TasksReview> getReviews(
182         long proposalId, int stage, boolean completed, boolean rejected)
183         throws com.liferay.portal.SystemException {
184         return getService().getReviews(proposalId, stage, completed, rejected);
185     }
186 
187     public static com.liferay.portlet.tasks.model.TasksReview rejectReview(
188         long userId, long proposalId, int stage)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         return getService().rejectReview(userId, proposalId, stage);
192     }
193 
194     public static void updateReviews(long proposalId, long assignedByUserId,
195         long[][] userIdsPerStage)
196         throws com.liferay.portal.PortalException,
197             com.liferay.portal.SystemException {
198         getService().updateReviews(proposalId, assignedByUserId, userIdsPerStage);
199     }
200 
201     public static TasksReviewLocalService getService() {
202         if (_service == null) {
203             _service = (TasksReviewLocalService)PortalBeanLocatorUtil.locate(TasksReviewLocalService.class.getName());
204         }
205 
206         return _service;
207     }
208 
209     public void setService(TasksReviewLocalService service) {
210         _service = service;
211     }
212 
213     private static TasksReviewLocalService _service;
214 }