001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class WorkflowDefinitionLinkLocalServiceUtil {
033 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
034 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
035 throws com.liferay.portal.kernel.exception.SystemException {
036 return getService().addWorkflowDefinitionLink(workflowDefinitionLink);
037 }
038
039 public static com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
040 long workflowDefinitionLinkId) {
041 return getService()
042 .createWorkflowDefinitionLink(workflowDefinitionLinkId);
043 }
044
045 public static void deleteWorkflowDefinitionLink(
046 long workflowDefinitionLinkId)
047 throws com.liferay.portal.kernel.exception.PortalException,
048 com.liferay.portal.kernel.exception.SystemException {
049 getService().deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
050 }
051
052 public static void deleteWorkflowDefinitionLink(
053 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
054 throws com.liferay.portal.kernel.exception.SystemException {
055 getService().deleteWorkflowDefinitionLink(workflowDefinitionLink);
056 }
057
058 @SuppressWarnings("unchecked")
059 public static java.util.List dynamicQuery(
060 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
061 throws com.liferay.portal.kernel.exception.SystemException {
062 return getService().dynamicQuery(dynamicQuery);
063 }
064
065 @SuppressWarnings("unchecked")
066 public static java.util.List dynamicQuery(
067 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
068 int end) throws com.liferay.portal.kernel.exception.SystemException {
069 return getService().dynamicQuery(dynamicQuery, start, end);
070 }
071
072 @SuppressWarnings("unchecked")
073 public static java.util.List dynamicQuery(
074 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
075 int end,
076 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077 throws com.liferay.portal.kernel.exception.SystemException {
078 return getService()
079 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
080 }
081
082 public static long dynamicQueryCount(
083 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
084 throws com.liferay.portal.kernel.exception.SystemException {
085 return getService().dynamicQueryCount(dynamicQuery);
086 }
087
088 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
089 long workflowDefinitionLinkId)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 return getService().getWorkflowDefinitionLink(workflowDefinitionLinkId);
093 }
094
095 public static java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
096 int start, int end)
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().getWorkflowDefinitionLinks(start, end);
099 }
100
101 public static int getWorkflowDefinitionLinksCount()
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().getWorkflowDefinitionLinksCount();
104 }
105
106 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
107 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().updateWorkflowDefinitionLink(workflowDefinitionLink);
110 }
111
112 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
113 com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
114 boolean merge)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getService()
117 .updateWorkflowDefinitionLink(workflowDefinitionLink, merge);
118 }
119
120 public static com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
121 long userId, long companyId, long groupId, java.lang.String className,
122 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException {
125 return getService()
126 .addWorkflowDefinitionLink(userId, companyId, groupId,
127 className, workflowDefinitionName, workflowDefinitionVersion);
128 }
129
130 public static void deleteWorkflowDefinitionLink(long companyId,
131 long groupId, java.lang.String className)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException {
134 getService().deleteWorkflowDefinitionLink(companyId, groupId, className);
135 }
136
137 public static com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
138 long companyId, java.lang.String className)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException {
141 return getService()
142 .getDefaultWorkflowDefinitionLink(companyId, className);
143 }
144
145 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
146 long companyId, long groupId, java.lang.String className)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException {
149 return getService()
150 .getWorkflowDefinitionLink(companyId, groupId, className);
151 }
152
153 public static com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
154 long companyId, long groupId, java.lang.String className, boolean strict)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 return getService()
158 .getWorkflowDefinitionLink(companyId, groupId, className,
159 strict);
160 }
161
162 public static int getWorkflowDefinitionLinksCount(long companyId,
163 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService()
166 .getWorkflowDefinitionLinksCount(companyId,
167 workflowDefinitionName, workflowDefinitionVersion);
168 }
169
170 public static boolean hasWorkflowDefinitionLink(long companyId,
171 long groupId, java.lang.String className)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException {
174 return getService()
175 .hasWorkflowDefinitionLink(companyId, groupId, className);
176 }
177
178 public static com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
179 long userId, long companyId, long groupId, java.lang.String className,
180 java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
181 throws com.liferay.portal.kernel.exception.PortalException,
182 com.liferay.portal.kernel.exception.SystemException {
183 return getService()
184 .updateWorkflowDefinitionLink(userId, companyId, groupId,
185 className, workflowDefinitionName, workflowDefinitionVersion);
186 }
187
188 public static WorkflowDefinitionLinkLocalService getService() {
189 if (_service == null) {
190 _service = (WorkflowDefinitionLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowDefinitionLinkLocalService.class.getName());
191 }
192
193 return _service;
194 }
195
196 public void setService(WorkflowDefinitionLinkLocalService service) {
197 _service = service;
198 }
199
200 private static WorkflowDefinitionLinkLocalService _service;
201 }