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 public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
237 return getService().getIndexableActionableDynamicQuery();
238 }
239
240
245 public static java.lang.String getOSGiServiceIdentifier() {
246 return getService().getOSGiServiceIdentifier();
247 }
248
249 public static com.liferay.portal.model.PersistedModel getPersistedModel(
250 java.io.Serializable primaryKeyObj)
251 throws com.liferay.portal.kernel.exception.PortalException {
252 return getService().getPersistedModel(primaryKeyObj);
253 }
254
255 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
256 long companyId, long groupId, java.lang.String className, long classPK,
257 long typePK) throws com.liferay.portal.kernel.exception.PortalException {
258 return getService()
259 .getWorkflowDefinitionLink(companyId, groupId, className,
260 classPK, typePK);
261 }
262
263 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
264 long companyId, long groupId, java.lang.String className, long classPK,
265 long typePK, boolean strict)
266 throws com.liferay.portal.kernel.exception.PortalException {
267 return getService()
268 .getWorkflowDefinitionLink(companyId, groupId, className,
269 classPK, typePK, strict);
270 }
271
272
279 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
280 long workflowDefinitionLinkId)
281 throws com.liferay.portal.kernel.exception.PortalException {
282 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
283 }
284
285
296 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
297 int start, int end) {
298 return getService().getWorkflowDefinitionLinks(start, end);
299 }
300
301
306 public static int getWorkflowDefinitionLinksCount() {
307 return getService().getWorkflowDefinitionLinksCount();
308 }
309
310 public static int getWorkflowDefinitionLinksCount(long companyId,
311 long groupId, java.lang.String className) {
312 return getService()
313 .getWorkflowDefinitionLinksCount(companyId, groupId,
314 className);
315 }
316
317 public static int getWorkflowDefinitionLinksCount(long companyId,
318 java.lang.String workflowDefinitionName, int workflowDefinitionVersion) {
319 return getService()
320 .getWorkflowDefinitionLinksCount(companyId,
321 workflowDefinitionName, workflowDefinitionVersion);
322 }
323
324 public static boolean hasWorkflowDefinitionLink(long companyId,
325 long groupId, java.lang.String className) {
326 return getService()
327 .hasWorkflowDefinitionLink(companyId, groupId, className);
328 }
329
330 public static boolean hasWorkflowDefinitionLink(long companyId,
331 long groupId, java.lang.String className, long classPK) {
332 return getService()
333 .hasWorkflowDefinitionLink(companyId, groupId, className,
334 classPK);
335 }
336
337 public static boolean hasWorkflowDefinitionLink(long companyId,
338 long groupId, java.lang.String className, long classPK, long typePK) {
339 return getService()
340 .hasWorkflowDefinitionLink(companyId, groupId, className,
341 classPK, typePK);
342 }
343
344 public static void updateWorkflowDefinitionLink(long userId,
345 long companyId, long groupId, java.lang.String className, long classPK,
346 long typePK, java.lang.String workflowDefinition)
347 throws com.liferay.portal.kernel.exception.PortalException {
348 getService()
349 .updateWorkflowDefinitionLink(userId, companyId, groupId,
350 className, classPK, typePK, workflowDefinition);
351 }
352
353 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
354 long userId, long companyId, long groupId, java.lang.String className,
355 long classPK, long typePK, java.lang.String workflowDefinitionName,
356 int workflowDefinitionVersion)
357 throws com.liferay.portal.kernel.exception.PortalException {
358 return getService()
359 .updateWorkflowDefinitionLink(userId, companyId, groupId,
360 className, classPK, typePK, workflowDefinitionName,
361 workflowDefinitionVersion);
362 }
363
364
370 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
371 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
372 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
373 }
374
375 public static void updateWorkflowDefinitionLinks(long userId,
376 long companyId, long groupId, java.lang.String className, long classPK,
377 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitionOVPs)
378 throws com.liferay.portal.kernel.exception.PortalException {
379 getService()
380 .updateWorkflowDefinitionLinks(userId, companyId, groupId,
381 className, classPK, workflowDefinitionOVPs);
382 }
383
384 public static WorkflowDefinitionLinkLocalService getService() {
385 if (_service == null) {
386 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
387
388 ReferenceRegistry.registerReference(WorkflowDefinitionLinkLocalServiceUtil.class,
389 "_service");
390 }
391
392 return _service;
393 }
394
395 private static WorkflowDefinitionLinkLocalService _service;
396 }