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
033 public class WorkflowInstanceLinkLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
048 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addWorkflowInstanceLink(workflowInstanceLink);
051 }
052
053
059 public static com.liferay.portal.model.WorkflowInstanceLink createWorkflowInstanceLink(
060 long workflowInstanceLinkId) {
061 return getService().createWorkflowInstanceLink(workflowInstanceLinkId);
062 }
063
064
072 public static com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
073 long workflowInstanceLinkId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteWorkflowInstanceLink(workflowInstanceLinkId);
077 }
078
079
087 public static com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
088 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService().deleteWorkflowInstanceLink(workflowInstanceLink);
092 }
093
094 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095 return getService().dynamicQuery();
096 }
097
098
105 @SuppressWarnings("rawtypes")
106 public static java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().dynamicQuery(dynamicQuery);
110 }
111
112
125 @SuppressWarnings("rawtypes")
126 public static java.util.List dynamicQuery(
127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128 int end) throws com.liferay.portal.kernel.exception.SystemException {
129 return getService().dynamicQuery(dynamicQuery, start, end);
130 }
131
132
146 @SuppressWarnings("rawtypes")
147 public static java.util.List dynamicQuery(
148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149 int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
154 }
155
156
163 public static long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().dynamicQueryCount(dynamicQuery);
167 }
168
169 public static com.liferay.portal.model.WorkflowInstanceLink fetchWorkflowInstanceLink(
170 long workflowInstanceLinkId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().fetchWorkflowInstanceLink(workflowInstanceLinkId);
173 }
174
175
183 public static com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
184 long workflowInstanceLinkId)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 return getService().getWorkflowInstanceLink(workflowInstanceLinkId);
188 }
189
190 public static com.liferay.portal.model.PersistedModel getPersistedModel(
191 java.io.Serializable primaryKeyObj)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 return getService().getPersistedModel(primaryKeyObj);
195 }
196
197
209 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getService().getWorkflowInstanceLinks(start, end);
213 }
214
215
221 public static int getWorkflowInstanceLinksCount()
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService().getWorkflowInstanceLinksCount();
224 }
225
226
233 public static com.liferay.portal.model.WorkflowInstanceLink updateWorkflowInstanceLink(
234 com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().updateWorkflowInstanceLink(workflowInstanceLink);
237 }
238
239
244 public static java.lang.String getBeanIdentifier() {
245 return getService().getBeanIdentifier();
246 }
247
248
253 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
254 getService().setBeanIdentifier(beanIdentifier);
255 }
256
257 public static com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
258 long userId, long companyId, long groupId, java.lang.String className,
259 long classPK, long workflowInstanceId)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 return getService()
263 .addWorkflowInstanceLink(userId, companyId, groupId,
264 className, classPK, workflowInstanceId);
265 }
266
267 public static com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
268 long companyId, long groupId, java.lang.String className, long classPK)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService()
272 .deleteWorkflowInstanceLink(companyId, groupId, className,
273 classPK);
274 }
275
276 public static void deleteWorkflowInstanceLinks(long companyId,
277 long groupId, java.lang.String className, long classPK)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException {
280 getService()
281 .deleteWorkflowInstanceLinks(companyId, groupId, className, classPK);
282 }
283
284 public static com.liferay.portal.model.WorkflowInstanceLink fetchWorkflowInstanceLink(
285 long companyId, long groupId, java.lang.String className, long classPK)
286 throws com.liferay.portal.kernel.exception.SystemException {
287 return getService()
288 .fetchWorkflowInstanceLink(companyId, groupId, className,
289 classPK);
290 }
291
292 public static java.lang.String getState(long companyId, long groupId,
293 java.lang.String className, long classPK)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 return getService().getState(companyId, groupId, className, classPK);
297 }
298
299 public static com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
300 long companyId, long groupId, java.lang.String className, long classPK)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 return getService()
304 .getWorkflowInstanceLink(companyId, groupId, className,
305 classPK);
306 }
307
308 public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
309 long companyId, long groupId, java.lang.String className, long classPK)
310 throws com.liferay.portal.kernel.exception.SystemException {
311 return getService()
312 .getWorkflowInstanceLinks(companyId, groupId, className,
313 classPK);
314 }
315
316 public static boolean hasWorkflowInstanceLink(long companyId, long groupId,
317 java.lang.String className, long classPK)
318 throws com.liferay.portal.kernel.exception.SystemException {
319 return getService()
320 .hasWorkflowInstanceLink(companyId, groupId, className,
321 classPK);
322 }
323
324 public static boolean isEnded(long companyId, long groupId,
325 java.lang.String className, long classPK)
326 throws com.liferay.portal.kernel.exception.PortalException,
327 com.liferay.portal.kernel.exception.SystemException {
328 return getService().isEnded(companyId, groupId, className, classPK);
329 }
330
331 public static void startWorkflowInstance(long companyId, long groupId,
332 long userId, java.lang.String className, long classPK,
333 java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException {
336 getService()
337 .startWorkflowInstance(companyId, groupId, userId, className,
338 classPK, workflowContext);
339 }
340
341 public static void updateClassPK(long companyId, long groupId,
342 java.lang.String className, long oldClassPK, long newClassPK)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException {
345 getService()
346 .updateClassPK(companyId, groupId, className, oldClassPK, newClassPK);
347 }
348
349 public static WorkflowInstanceLinkLocalService getService() {
350 if (_service == null) {
351 _service = (WorkflowInstanceLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkLocalService.class.getName());
352
353 ReferenceRegistry.registerReference(WorkflowInstanceLinkLocalServiceUtil.class,
354 "_service");
355 }
356
357 return _service;
358 }
359
360
363 public void setService(WorkflowInstanceLinkLocalService service) {
364 }
365
366 private static WorkflowInstanceLinkLocalService _service;
367 }