001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * <p>
021     * This class provides static methods for the
022     * {@link WorkflowInstanceLinkLocalService} bean. The static methods of
023     * this class calls the same methods of the bean instance. It's convenient to be
024     * able to just write one line to call a method on a bean instead of writing a
025     * lookup call and a method call.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       WorkflowInstanceLinkLocalService
030     * @generated
031     */
032    public class WorkflowInstanceLinkLocalServiceUtil {
033            public static com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
034                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
035                    throws com.liferay.portal.kernel.exception.SystemException {
036                    return getService().addWorkflowInstanceLink(workflowInstanceLink);
037            }
038    
039            public static com.liferay.portal.model.WorkflowInstanceLink createWorkflowInstanceLink(
040                    long workflowInstanceLinkId) {
041                    return getService().createWorkflowInstanceLink(workflowInstanceLinkId);
042            }
043    
044            public static void deleteWorkflowInstanceLink(long workflowInstanceLinkId)
045                    throws com.liferay.portal.kernel.exception.PortalException,
046                            com.liferay.portal.kernel.exception.SystemException {
047                    getService().deleteWorkflowInstanceLink(workflowInstanceLinkId);
048            }
049    
050            public static void deleteWorkflowInstanceLink(
051                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
052                    throws com.liferay.portal.kernel.exception.SystemException {
053                    getService().deleteWorkflowInstanceLink(workflowInstanceLink);
054            }
055    
056            @SuppressWarnings("unchecked")
057            public static java.util.List dynamicQuery(
058                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
059                    throws com.liferay.portal.kernel.exception.SystemException {
060                    return getService().dynamicQuery(dynamicQuery);
061            }
062    
063            @SuppressWarnings("unchecked")
064            public static java.util.List dynamicQuery(
065                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
066                    int end) throws com.liferay.portal.kernel.exception.SystemException {
067                    return getService().dynamicQuery(dynamicQuery, start, end);
068            }
069    
070            @SuppressWarnings("unchecked")
071            public static java.util.List dynamicQuery(
072                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
073                    int end,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    return getService()
077                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
078            }
079    
080            public static long dynamicQueryCount(
081                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
082                    throws com.liferay.portal.kernel.exception.SystemException {
083                    return getService().dynamicQueryCount(dynamicQuery);
084            }
085    
086            public static com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
087                    long workflowInstanceLinkId)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getWorkflowInstanceLink(workflowInstanceLinkId);
091            }
092    
093            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
094                    int start, int end)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getWorkflowInstanceLinks(start, end);
097            }
098    
099            public static int getWorkflowInstanceLinksCount()
100                    throws com.liferay.portal.kernel.exception.SystemException {
101                    return getService().getWorkflowInstanceLinksCount();
102            }
103    
104            public static com.liferay.portal.model.WorkflowInstanceLink updateWorkflowInstanceLink(
105                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
106                    throws com.liferay.portal.kernel.exception.SystemException {
107                    return getService().updateWorkflowInstanceLink(workflowInstanceLink);
108            }
109    
110            public static com.liferay.portal.model.WorkflowInstanceLink updateWorkflowInstanceLink(
111                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink,
112                    boolean merge)
113                    throws com.liferay.portal.kernel.exception.SystemException {
114                    return getService()
115                                       .updateWorkflowInstanceLink(workflowInstanceLink, merge);
116            }
117    
118            public static com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
119                    long userId, long companyId, long groupId, java.lang.String className,
120                    long classPK, long workflowInstanceId)
121                    throws com.liferay.portal.kernel.exception.PortalException,
122                            com.liferay.portal.kernel.exception.SystemException {
123                    return getService()
124                                       .addWorkflowInstanceLink(userId, companyId, groupId,
125                            className, classPK, workflowInstanceId);
126            }
127    
128            public static void deleteWorkflowInstanceLink(long companyId, long groupId,
129                    java.lang.String className, long classPK)
130                    throws com.liferay.portal.kernel.exception.PortalException,
131                            com.liferay.portal.kernel.exception.SystemException {
132                    getService()
133                            .deleteWorkflowInstanceLink(companyId, groupId, className, classPK);
134            }
135    
136            public static void deleteWorkflowInstanceLinks(long companyId,
137                    long groupId, java.lang.String className, long classPK)
138                    throws com.liferay.portal.kernel.exception.PortalException,
139                            com.liferay.portal.kernel.exception.SystemException {
140                    getService()
141                            .deleteWorkflowInstanceLinks(companyId, groupId, className, classPK);
142            }
143    
144            public static java.lang.String getState(long companyId, long groupId,
145                    java.lang.String className, long classPK)
146                    throws com.liferay.portal.kernel.exception.PortalException,
147                            com.liferay.portal.kernel.exception.SystemException {
148                    return getService().getState(companyId, groupId, className, classPK);
149            }
150    
151            public static com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
152                    long companyId, long groupId, java.lang.String className, long classPK)
153                    throws com.liferay.portal.kernel.exception.PortalException,
154                            com.liferay.portal.kernel.exception.SystemException {
155                    return getService()
156                                       .getWorkflowInstanceLink(companyId, groupId, className,
157                            classPK);
158            }
159    
160            public static java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
161                    long companyId, long groupId, java.lang.String className, long classPK)
162                    throws com.liferay.portal.kernel.exception.SystemException {
163                    return getService()
164                                       .getWorkflowInstanceLinks(companyId, groupId, className,
165                            classPK);
166            }
167    
168            public static boolean hasWorkflowInstanceLink(long companyId, long groupId,
169                    java.lang.String className, long classPK)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return getService()
173                                       .hasWorkflowInstanceLink(companyId, groupId, className,
174                            classPK);
175            }
176    
177            public static boolean isEnded(long companyId, long groupId,
178                    java.lang.String className, long classPK)
179                    throws com.liferay.portal.kernel.exception.PortalException,
180                            com.liferay.portal.kernel.exception.SystemException {
181                    return getService().isEnded(companyId, groupId, className, classPK);
182            }
183    
184            public static void startWorkflowInstance(long companyId, long groupId,
185                    long userId, java.lang.String className, long classPK,
186                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    getService()
190                            .startWorkflowInstance(companyId, groupId, userId, className,
191                            classPK, workflowContext);
192            }
193    
194            public static void updateClassPK(long companyId, long groupId,
195                    java.lang.String className, long oldClassPK, long newClassPK)
196                    throws com.liferay.portal.kernel.exception.PortalException,
197                            com.liferay.portal.kernel.exception.SystemException {
198                    getService()
199                            .updateClassPK(companyId, groupId, className, oldClassPK, newClassPK);
200            }
201    
202            public static WorkflowInstanceLinkLocalService getService() {
203                    if (_service == null) {
204                            _service = (WorkflowInstanceLinkLocalService)PortalBeanLocatorUtil.locate(WorkflowInstanceLinkLocalService.class.getName());
205                    }
206    
207                    return _service;
208            }
209    
210            public void setService(WorkflowInstanceLinkLocalService service) {
211                    _service = service;
212            }
213    
214            private static WorkflowInstanceLinkLocalService _service;
215    }