001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class WorkflowInstanceLinkLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
049 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addWorkflowInstanceLink(workflowInstanceLink);
052 }
053
054
060 public static com.liferay.portal.model.WorkflowInstanceLink createWorkflowInstanceLink(
061 long workflowInstanceLinkId) {
062 return getService().createWorkflowInstanceLink(workflowInstanceLinkId);
063 }
064
065
073 public static com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
074 long workflowInstanceLinkId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteWorkflowInstanceLink(workflowInstanceLinkId);
078 }
079
080
088 public static com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
089 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return getService().deleteWorkflowInstanceLink(workflowInstanceLink);
093 }
094
095 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
096 return getService().dynamicQuery();
097 }
098
099
106 @SuppressWarnings("rawtypes")
107 public static java.util.List dynamicQuery(
108 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().dynamicQuery(dynamicQuery);
111 }
112
113
126 @SuppressWarnings("rawtypes")
127 public static java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end) throws com.liferay.portal.kernel.exception.SystemException {
130 return getService().dynamicQuery(dynamicQuery, start, end);
131 }
132
133
147 @SuppressWarnings("rawtypes")
148 public static java.util.List dynamicQuery(
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
150 int end,
151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getService()
154 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
155 }
156
157
164 public static long dynamicQueryCount(
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
166 throws com.liferay.portal.kernel.exception.SystemException {
167 return getService().dynamicQueryCount(dynamicQuery);
168 }
169
170
178 public static long dynamicQueryCount(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180 com.liferay.portal.kernel.dao.orm.Projection projection)
181 throws com.liferay.portal.kernel.exception.SystemException {
182 return getService().dynamicQueryCount(dynamicQuery, projection);
183 }
184
185 public static com.liferay.portal.model.WorkflowInstanceLink fetchWorkflowInstanceLink(
186 long workflowInstanceLinkId)
187 throws com.liferay.portal.kernel.exception.SystemException {
188 return getService().fetchWorkflowInstanceLink(workflowInstanceLinkId);
189 }
190
191
199 public static com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
200 long workflowInstanceLinkId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException {
203 return getService().getWorkflowInstanceLink(workflowInstanceLinkId);
204 }
205
206 public static com.liferay.portal.model.PersistedModel getPersistedModel(
207 java.io.Serializable primaryKeyObj)
208 throws com.liferay.portal.kernel.exception.PortalException,
209 com.liferay.portal.kernel.exception.SystemException {
210 return getService().getPersistedModel(primaryKeyObj);
211 }
212
213
225 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
226 int start, int end)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getService().getWorkflowInstanceLinks(start, end);
229 }
230
231
237 public static int getWorkflowInstanceLinksCount()
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getService().getWorkflowInstanceLinksCount();
240 }
241
242
249 public static com.liferay.portal.model.WorkflowInstanceLink updateWorkflowInstanceLink(
250 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
251 throws com.liferay.portal.kernel.exception.SystemException {
252 return getService().updateWorkflowInstanceLink(workflowInstanceLink);
253 }
254
255
260 public static java.lang.String getBeanIdentifier() {
261 return getService().getBeanIdentifier();
262 }
263
264
269 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
270 getService().setBeanIdentifier(beanIdentifier);
271 }
272
273 public static com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
274 long userId, long companyId, long groupId, java.lang.String className,
275 long classPK, long workflowInstanceId)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .addWorkflowInstanceLink(userId, companyId, groupId,
280 className, classPK, workflowInstanceId);
281 }
282
283 public static com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
284 long companyId, long groupId, java.lang.String className, long classPK)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException {
287 return getService()
288 .deleteWorkflowInstanceLink(companyId, groupId, className,
289 classPK);
290 }
291
292 public static void deleteWorkflowInstanceLinks(long companyId,
293 long groupId, java.lang.String className, long classPK)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 getService()
297 .deleteWorkflowInstanceLinks(companyId, groupId, className, classPK);
298 }
299
300 public static com.liferay.portal.model.WorkflowInstanceLink fetchWorkflowInstanceLink(
301 long companyId, long groupId, java.lang.String className, long classPK)
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return getService()
304 .fetchWorkflowInstanceLink(companyId, groupId, className,
305 classPK);
306 }
307
308 public static java.lang.String getState(long companyId, long groupId,
309 java.lang.String className, long classPK)
310 throws com.liferay.portal.kernel.exception.PortalException,
311 com.liferay.portal.kernel.exception.SystemException {
312 return getService().getState(companyId, groupId, className, classPK);
313 }
314
315 public static com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
316 long companyId, long groupId, java.lang.String className, long classPK)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException {
319 return getService()
320 .getWorkflowInstanceLink(companyId, groupId, className,
321 classPK);
322 }
323
324 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
325 long companyId, long groupId, java.lang.String className, long classPK)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getService()
328 .getWorkflowInstanceLinks(companyId, groupId, className,
329 classPK);
330 }
331
332 public static boolean hasWorkflowInstanceLink(long companyId, long groupId,
333 java.lang.String className, long classPK)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getService()
336 .hasWorkflowInstanceLink(companyId, groupId, className,
337 classPK);
338 }
339
340 public static boolean isEnded(long companyId, long groupId,
341 java.lang.String className, long classPK)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException {
344 return getService().isEnded(companyId, groupId, className, classPK);
345 }
346
347 public static void startWorkflowInstance(long companyId, long groupId,
348 long userId, java.lang.String className, long classPK,
349 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
350 throws com.liferay.portal.kernel.exception.PortalException,
351 com.liferay.portal.kernel.exception.SystemException {
352 getService()
353 .startWorkflowInstance(companyId, groupId, userId, className,
354 classPK, workflowContext);
355 }
356
357 public static void updateClassPK(long companyId, long groupId,
358 java.lang.String className, long oldClassPK, long newClassPK)
359 throws com.liferay.portal.kernel.exception.PortalException,
360 com.liferay.portal.kernel.exception.SystemException {
361 getService()
362 .updateClassPK(companyId, groupId, className, oldClassPK, newClassPK);
363 }
364
365 public static WorkflowInstanceLinkLocalService getService() {
366 if (_service == null) {
367 _service = (WorkflowInstanceLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkLocalService.class.getName());
368
369 ReferenceRegistry.registerReference(WorkflowInstanceLinkLocalServiceUtil.class,
370 "_service");
371 }
372
373 return _service;
374 }
375
376
379 public void setService(WorkflowInstanceLinkLocalService service) {
380 }
381
382 private static WorkflowInstanceLinkLocalService _service;
383 }