001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class WorkflowDefinitionLinkLocalServiceUtil {
038
043 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
044 long userId, long companyId, long groupId, java.lang.String className,
045 long classPK, long typePK, java.lang.String workflowDefinitionName,
046 int workflowDefinitionVersion)
047 throws com.liferay.portal.kernel.exception.PortalException {
048 return getService()
049 .addWorkflowDefinitionLink(userId, companyId, groupId,
050 className, classPK, typePK, workflowDefinitionName,
051 workflowDefinitionVersion);
052 }
053
054
060 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
061 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
062 return getService().addWorkflowDefinitionLink(workflowDefinitionLink);
063 }
064
065
071 public static com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
072 long workflowDefinitionLinkId) {
073 return getService()
074 .createWorkflowDefinitionLink(workflowDefinitionLinkId);
075 }
076
077
080 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
081 com.liferay.portal.model.PersistedModel persistedModel)
082 throws com.liferay.portal.kernel.exception.PortalException {
083 return getService().deletePersistedModel(persistedModel);
084 }
085
086 public static void deleteWorkflowDefinitionLink(long companyId,
087 long groupId, java.lang.String className, long classPK, long typePK) {
088 getService()
089 .deleteWorkflowDefinitionLink(companyId, groupId, className,
090 classPK, typePK);
091 }
092
093
099 public static com.liferay.portal.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
100 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
101 return getService().deleteWorkflowDefinitionLink(workflowDefinitionLink);
102 }
103
104
111 public static com.liferay.portal.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
112 long workflowDefinitionLinkId)
113 throws com.liferay.portal.kernel.exception.PortalException {
114 return getService()
115 .deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
116 }
117
118 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
119 return getService().dynamicQuery();
120 }
121
122
128 public static <T> java.util.List<T> dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
130 return getService().dynamicQuery(dynamicQuery);
131 }
132
133
145 public static <T> java.util.List<T> dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end) {
148 return getService().dynamicQuery(dynamicQuery, start, end);
149 }
150
151
164 public static <T> java.util.List<T> dynamicQuery(
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
166 int end,
167 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
168 return getService()
169 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
170 }
171
172
178 public static long dynamicQueryCount(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
180 return getService().dynamicQueryCount(dynamicQuery);
181 }
182
183
190 public static long dynamicQueryCount(
191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
192 com.liferay.portal.kernel.dao.orm.Projection projection) {
193 return getService().dynamicQueryCount(dynamicQuery, projection);
194 }
195
196 public static com.liferay.portal.model.WorkflowDefinitionLink fetchDefaultWorkflowDefinitionLink(
197 long companyId, java.lang.String className, long classPK, long typePK) {
198 return getService()
199 .fetchDefaultWorkflowDefinitionLink(companyId, className,
200 classPK, typePK);
201 }
202
203 public static com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
204 long companyId, long groupId, java.lang.String className, long classPK,
205 long typePK) {
206 return getService()
207 .fetchWorkflowDefinitionLink(companyId, groupId, className,
208 classPK, typePK);
209 }
210
211 public static com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
212 long companyId, long groupId, java.lang.String className, long classPK,
213 long typePK, boolean strict) {
214 return getService()
215 .fetchWorkflowDefinitionLink(companyId, groupId, className,
216 classPK, typePK, strict);
217 }
218
219 public static com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
220 long workflowDefinitionLinkId) {
221 return getService().fetchWorkflowDefinitionLink(workflowDefinitionLinkId);
222 }
223
224 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
225 return getService().getActionableDynamicQuery();
226 }
227
228 public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
229 long companyId, java.lang.String className, long classPK, long typePK)
230 throws com.liferay.portal.kernel.exception.PortalException {
231 return getService()
232 .getDefaultWorkflowDefinitionLink(companyId, className,
233 classPK, typePK);
234 }
235
236
241 public static java.lang.String getOSGiServiceIdentifier() {
242 return getService().getOSGiServiceIdentifier();
243 }
244
245 public static com.liferay.portal.model.PersistedModel getPersistedModel(
246 java.io.Serializable primaryKeyObj)
247 throws com.liferay.portal.kernel.exception.PortalException {
248 return getService().getPersistedModel(primaryKeyObj);
249 }
250
251 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
252 long companyId, long groupId, java.lang.String className, long classPK,
253 long typePK) throws com.liferay.portal.kernel.exception.PortalException {
254 return getService()
255 .getWorkflowDefinitionLink(companyId, groupId, className,
256 classPK, typePK);
257 }
258
259 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
260 long companyId, long groupId, java.lang.String className, long classPK,
261 long typePK, boolean strict)
262 throws com.liferay.portal.kernel.exception.PortalException {
263 return getService()
264 .getWorkflowDefinitionLink(companyId, groupId, className,
265 classPK, typePK, strict);
266 }
267
268
275 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
276 long workflowDefinitionLinkId)
277 throws com.liferay.portal.kernel.exception.PortalException {
278 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
279 }
280
281
292 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
293 int start, int end) {
294 return getService().getWorkflowDefinitionLinks(start, end);
295 }
296
297
302 public static int getWorkflowDefinitionLinksCount() {
303 return getService().getWorkflowDefinitionLinksCount();
304 }
305
306 public static int getWorkflowDefinitionLinksCount(long companyId,
307 long groupId, java.lang.String className) {
308 return getService()
309 .getWorkflowDefinitionLinksCount(companyId, groupId,
310 className);
311 }
312
313 public static int getWorkflowDefinitionLinksCount(long companyId,
314 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) {
315 return getService()
316 .getWorkflowDefinitionLinksCount(companyId,
317 workflowDefinitionName, workflowDefinitionVersion);
318 }
319
320 public static boolean hasWorkflowDefinitionLink(long companyId,
321 long groupId, java.lang.String className) {
322 return getService()
323 .hasWorkflowDefinitionLink(companyId, groupId, className);
324 }
325
326 public static boolean hasWorkflowDefinitionLink(long companyId,
327 long groupId, java.lang.String className, long classPK) {
328 return getService()
329 .hasWorkflowDefinitionLink(companyId, groupId, className,
330 classPK);
331 }
332
333 public static boolean hasWorkflowDefinitionLink(long companyId,
334 long groupId, java.lang.String className, long classPK, long typePK) {
335 return getService()
336 .hasWorkflowDefinitionLink(companyId, groupId, className,
337 classPK, typePK);
338 }
339
340 public static void updateWorkflowDefinitionLink(long userId,
341 long companyId, long groupId, java.lang.String className, long classPK,
342 long typePK, java.lang.String workflowDefinition)
343 throws com.liferay.portal.kernel.exception.PortalException {
344 getService()
345 .updateWorkflowDefinitionLink(userId, companyId, groupId,
346 className, classPK, typePK, workflowDefinition);
347 }
348
349 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
350 long userId, long companyId, long groupId, java.lang.String className,
351 long classPK, long typePK, java.lang.String workflowDefinitionName,
352 int workflowDefinitionVersion)
353 throws com.liferay.portal.kernel.exception.PortalException {
354 return getService()
355 .updateWorkflowDefinitionLink(userId, companyId, groupId,
356 className, classPK, typePK, workflowDefinitionName,
357 workflowDefinitionVersion);
358 }
359
360
366 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
367 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
368 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
369 }
370
371 public static void updateWorkflowDefinitionLinks(long userId,
372 long companyId, long groupId, java.lang.String className, long classPK,
373 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitionOVPs)
374 throws com.liferay.portal.kernel.exception.PortalException {
375 getService()
376 .updateWorkflowDefinitionLinks(userId, companyId, groupId,
377 className, classPK, workflowDefinitionOVPs);
378 }
379
380 public static WorkflowDefinitionLinkLocalService getService() {
381 if (_service == null) {
382 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
383
384 ReferenceRegistry.registerReference(WorkflowDefinitionLinkLocalServiceUtil.class,
385 "_service");
386 }
387
388 return _service;
389 }
390
391
394 @Deprecated
395 public void setService(WorkflowDefinitionLinkLocalService service) {
396 }
397
398 private static WorkflowDefinitionLinkLocalService _service;
399 }