1
14
15 package com.liferay.portlet.tasks.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class TasksProposalLocalServiceUtil {
40 public static com.liferay.portlet.tasks.model.TasksProposal addTasksProposal(
41 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
42 throws com.liferay.portal.SystemException {
43 return getService().addTasksProposal(tasksProposal);
44 }
45
46 public static com.liferay.portlet.tasks.model.TasksProposal createTasksProposal(
47 long proposalId) {
48 return getService().createTasksProposal(proposalId);
49 }
50
51 public static void deleteTasksProposal(long proposalId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteTasksProposal(proposalId);
55 }
56
57 public static void deleteTasksProposal(
58 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
59 throws com.liferay.portal.SystemException {
60 getService().deleteTasksProposal(tasksProposal);
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.TasksProposal getTasksProposal(
91 long proposalId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException {
94 return getService().getTasksProposal(proposalId);
95 }
96
97 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getTasksProposals(
98 int start, int end) throws com.liferay.portal.SystemException {
99 return getService().getTasksProposals(start, end);
100 }
101
102 public static int getTasksProposalsCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getTasksProposalsCount();
105 }
106
107 public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
108 com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
109 throws com.liferay.portal.SystemException {
110 return getService().updateTasksProposal(tasksProposal);
111 }
112
113 public static com.liferay.portlet.tasks.model.TasksProposal updateTasksProposal(
114 com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
115 boolean merge) throws com.liferay.portal.SystemException {
116 return getService().updateTasksProposal(tasksProposal, merge);
117 }
118
119 public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
120 long userId, long groupId, java.lang.String className,
121 java.lang.String classPK, java.lang.String name,
122 java.lang.String description, long reviewUserId,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addProposal(userId, groupId, className, classPK, name,
128 description, reviewUserId, addCommunityPermissions,
129 addGuestPermissions);
130 }
131
132 public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
133 long userId, long groupId, java.lang.String className,
134 java.lang.String classPK, java.lang.String name,
135 java.lang.String description, long reviewUserId,
136 java.lang.Boolean addCommunityPermissions,
137 java.lang.Boolean addGuestPermissions,
138 java.lang.String[] communityPermissions,
139 java.lang.String[] guestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException {
142 return getService()
143 .addProposal(userId, groupId, className, classPK, name,
144 description, reviewUserId, addCommunityPermissions,
145 addGuestPermissions, communityPermissions, guestPermissions);
146 }
147
148 public static com.liferay.portlet.tasks.model.TasksProposal addProposal(
149 long userId, long groupId, java.lang.String className,
150 java.lang.String classPK, java.lang.String name,
151 java.lang.String description, long reviewUserId,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 return getService()
157 .addProposal(userId, groupId, className, classPK, name,
158 description, reviewUserId, communityPermissions, guestPermissions);
159 }
160
161 public static void addProposalResources(long proposalId,
162 boolean addCommunityPermissions, boolean addGuestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addProposalResources(proposalId, addCommunityPermissions,
167 addGuestPermissions);
168 }
169
170 public static void addProposalResources(long proposalId,
171 java.lang.String[] communityPermissions,
172 java.lang.String[] guestPermissions)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 getService()
176 .addProposalResources(proposalId, communityPermissions,
177 guestPermissions);
178 }
179
180 public static void addProposalResources(
181 com.liferay.portlet.tasks.model.TasksProposal proposal,
182 boolean addCommunityPermissions, boolean addGuestPermissions)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 getService()
186 .addProposalResources(proposal, addCommunityPermissions,
187 addGuestPermissions);
188 }
189
190 public static void addProposalResources(
191 com.liferay.portlet.tasks.model.TasksProposal proposal,
192 java.lang.String[] communityPermissions,
193 java.lang.String[] guestPermissions)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException {
196 getService()
197 .addProposalResources(proposal, communityPermissions,
198 guestPermissions);
199 }
200
201 public static void deleteProposal(long proposalId)
202 throws com.liferay.portal.PortalException,
203 com.liferay.portal.SystemException {
204 getService().deleteProposal(proposalId);
205 }
206
207 public static void deleteProposal(long classNameId, java.lang.String classPK)
208 throws com.liferay.portal.PortalException,
209 com.liferay.portal.SystemException {
210 getService().deleteProposal(classNameId, classPK);
211 }
212
213 public static void deleteProposal(java.lang.String className,
214 java.lang.String classPK)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException {
217 getService().deleteProposal(className, classPK);
218 }
219
220 public static void deleteProposal(
221 com.liferay.portlet.tasks.model.TasksProposal proposal)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException {
224 getService().deleteProposal(proposal);
225 }
226
227 public static void deleteProposals(long groupId)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 getService().deleteProposals(groupId);
231 }
232
233 public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
234 long proposalId)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException {
237 return getService().getProposal(proposalId);
238 }
239
240 public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
241 long classNameId, java.lang.String classPK)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException {
244 return getService().getProposal(classNameId, classPK);
245 }
246
247 public static com.liferay.portlet.tasks.model.TasksProposal getProposal(
248 java.lang.String className, java.lang.String classPK)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException {
251 return getService().getProposal(className, classPK);
252 }
253
254 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getProposals(
255 long groupId, int start, int end)
256 throws com.liferay.portal.SystemException {
257 return getService().getProposals(groupId, start, end);
258 }
259
260 public static int getProposalsCount(long groupId)
261 throws com.liferay.portal.SystemException {
262 return getService().getProposalsCount(groupId);
263 }
264
265 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getReviewProposals(
266 long groupId, long userId, int start, int end)
267 throws com.liferay.portal.SystemException {
268 return getService().getReviewProposals(groupId, userId, start, end);
269 }
270
271 public static int getReviewProposalsCount(long groupId, long userId)
272 throws com.liferay.portal.SystemException {
273 return getService().getReviewProposalsCount(groupId, userId);
274 }
275
276 public static java.util.List<com.liferay.portlet.tasks.model.TasksProposal> getUserProposals(
277 long groupId, long userId, int start, int end)
278 throws com.liferay.portal.SystemException {
279 return getService().getUserProposals(groupId, userId, start, end);
280 }
281
282 public static int getUserProposalsCount(long groupId, long userId)
283 throws com.liferay.portal.SystemException {
284 return getService().getUserProposalsCount(groupId, userId);
285 }
286
287 public static com.liferay.portlet.tasks.model.TasksProposal updateProposal(
288 long userId, long proposalId, java.lang.String description,
289 int dueDateMonth, int dueDateDay, int dueDateYear, int dueDateHour,
290 int dueDateMinute)
291 throws com.liferay.portal.PortalException,
292 com.liferay.portal.SystemException {
293 return getService()
294 .updateProposal(userId, proposalId, description,
295 dueDateMonth, dueDateDay, dueDateYear, dueDateHour, dueDateMinute);
296 }
297
298 public static TasksProposalLocalService getService() {
299 if (_service == null) {
300 _service = (TasksProposalLocalService)PortalBeanLocatorUtil.locate(TasksProposalLocalService.class.getName());
301 }
302
303 return _service;
304 }
305
306 public void setService(TasksProposalLocalService service) {
307 _service = service;
308 }
309
310 private static TasksProposalLocalService _service;
311 }