1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class WorkflowDefinitionLinkLocalServiceUtil {
40 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
41 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addWorkflowDefinitionLink(workflowDefinitionLink);
44 }
45
46 public static com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
47 long workflowDefinitionLinkId) {
48 return getService()
49 .createWorkflowDefinitionLink(workflowDefinitionLinkId);
50 }
51
52 public static void deleteWorkflowDefinitionLink(
53 long workflowDefinitionLinkId)
54 throws com.liferay.portal.kernel.exception.PortalException,
55 com.liferay.portal.kernel.exception.SystemException {
56 getService().deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
57 }
58
59 public static void deleteWorkflowDefinitionLink(
60 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
61 throws com.liferay.portal.kernel.exception.SystemException {
62 getService().deleteWorkflowDefinitionLink(workflowDefinitionLink);
63 }
64
65 @SuppressWarnings("unchecked")
66 public static java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.kernel.exception.SystemException {
69 return getService().dynamicQuery(dynamicQuery);
70 }
71
72 @SuppressWarnings("unchecked")
73 public static java.util.List dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.kernel.exception.SystemException {
76 return getService().dynamicQuery(dynamicQuery, start, end);
77 }
78
79 @SuppressWarnings("unchecked")
80 public static java.util.List dynamicQuery(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
82 int end,
83 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
84 throws com.liferay.portal.kernel.exception.SystemException {
85 return getService()
86 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
87 }
88
89 public static long dynamicQueryCount(
90 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
91 throws com.liferay.portal.kernel.exception.SystemException {
92 return getService().dynamicQueryCount(dynamicQuery);
93 }
94
95 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
96 long workflowDefinitionLinkId)
97 throws com.liferay.portal.kernel.exception.PortalException,
98 com.liferay.portal.kernel.exception.SystemException {
99 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
100 }
101
102 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
103 int start, int end)
104 throws com.liferay.portal.kernel.exception.SystemException {
105 return getService().getWorkflowDefinitionLinks(start, end);
106 }
107
108 public static int getWorkflowDefinitionLinksCount()
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().getWorkflowDefinitionLinksCount();
111 }
112
113 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
114 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
117 }
118
119 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
120 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
121 boolean merge)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getService()
124 .updateWorkflowDefinitionLink(workflowDefinitionLink, merge);
125 }
126
127 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
128 long userId, long companyId, long groupId, java.lang.String className,
129 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
130 throws com.liferay.portal.kernel.exception.PortalException,
131 com.liferay.portal.kernel.exception.SystemException {
132 return getService()
133 .addWorkflowDefinitionLink(userId, companyId, groupId,
134 className, workflowDefinitionName, workflowDefinitionVersion);
135 }
136
137 public static void deleteWorkflowDefinitionLink(long companyId,
138 long groupId, java.lang.String className)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 getService().deleteWorkflowDefinitionLink(companyId, groupId, className);
142 }
143
144 public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
145 long companyId, java.lang.String className)
146 throws com.liferay.portal.kernel.exception.PortalException,
147 com.liferay.portal.kernel.exception.SystemException {
148 return getService()
149 .getDefaultWorkflowDefinitionLink(companyId, className);
150 }
151
152 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
153 long companyId, long groupId, java.lang.String className)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException {
156 return getService()
157 .getWorkflowDefinitionLink(companyId, groupId, className);
158 }
159
160 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
161 long companyId, long groupId, java.lang.String className, boolean strict)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getService()
165 .getWorkflowDefinitionLink(companyId, groupId, className,
166 strict);
167 }
168
169 public static int getWorkflowDefinitionLinksCount(long companyId,
170 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService()
173 .getWorkflowDefinitionLinksCount(companyId,
174 workflowDefinitionName, workflowDefinitionVersion);
175 }
176
177 public static boolean hasWorkflowDefinitionLink(long companyId,
178 long groupId, java.lang.String className)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService()
182 .hasWorkflowDefinitionLink(companyId, groupId, className);
183 }
184
185 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
186 long userId, long companyId, long groupId, java.lang.String className,
187 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
188 throws com.liferay.portal.kernel.exception.PortalException,
189 com.liferay.portal.kernel.exception.SystemException {
190 return getService()
191 .updateWorkflowDefinitionLink(userId, companyId, groupId,
192 className, workflowDefinitionName, workflowDefinitionVersion);
193 }
194
195 public static WorkflowDefinitionLinkLocalService getService() {
196 if (_service == null) {
197 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
198 }
199
200 return _service;
201 }
202
203 public void setService(WorkflowDefinitionLinkLocalService service) {
204 _service = service;
205 }
206
207 private static WorkflowDefinitionLinkLocalService _service;
208 }