001    /**
002     * Copyright (c) 2000-2012 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    /**
018     * <p>
019     * This class is a wrapper for {@link WorkflowInstanceLinkLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       WorkflowInstanceLinkLocalService
024     * @generated
025     */
026    public class WorkflowInstanceLinkLocalServiceWrapper
027            implements WorkflowInstanceLinkLocalService,
028                    ServiceWrapper<WorkflowInstanceLinkLocalService> {
029            public WorkflowInstanceLinkLocalServiceWrapper(
030                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
031                    _workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
032            }
033    
034            /**
035            * Adds the workflow instance link to the database. Also notifies the appropriate model listeners.
036            *
037            * @param workflowInstanceLink the workflow instance link
038            * @return the workflow instance link that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
042                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _workflowInstanceLinkLocalService.addWorkflowInstanceLink(workflowInstanceLink);
045            }
046    
047            /**
048            * Creates a new workflow instance link with the primary key. Does not add the workflow instance link to the database.
049            *
050            * @param workflowInstanceLinkId the primary key for the new workflow instance link
051            * @return the new workflow instance link
052            */
053            public com.liferay.portal.model.WorkflowInstanceLink createWorkflowInstanceLink(
054                    long workflowInstanceLinkId) {
055                    return _workflowInstanceLinkLocalService.createWorkflowInstanceLink(workflowInstanceLinkId);
056            }
057    
058            /**
059            * Deletes the workflow instance link with the primary key from the database. Also notifies the appropriate model listeners.
060            *
061            * @param workflowInstanceLinkId the primary key of the workflow instance link
062            * @return the workflow instance link that was removed
063            * @throws PortalException if a workflow instance link with the primary key could not be found
064            * @throws SystemException if a system exception occurred
065            */
066            public com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
067                    long workflowInstanceLinkId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    return _workflowInstanceLinkLocalService.deleteWorkflowInstanceLink(workflowInstanceLinkId);
071            }
072    
073            /**
074            * Deletes the workflow instance link from the database. Also notifies the appropriate model listeners.
075            *
076            * @param workflowInstanceLink the workflow instance link
077            * @return the workflow instance link that was removed
078            * @throws PortalException
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
082                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
083                    throws com.liferay.portal.kernel.exception.PortalException,
084                            com.liferay.portal.kernel.exception.SystemException {
085                    return _workflowInstanceLinkLocalService.deleteWorkflowInstanceLink(workflowInstanceLink);
086            }
087    
088            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
089                    return _workflowInstanceLinkLocalService.dynamicQuery();
090            }
091    
092            /**
093            * Performs a dynamic query on the database and returns the matching rows.
094            *
095            * @param dynamicQuery the dynamic query
096            * @return the matching rows
097            * @throws SystemException if a system exception occurred
098            */
099            @SuppressWarnings("rawtypes")
100            public java.util.List dynamicQuery(
101                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102                    throws com.liferay.portal.kernel.exception.SystemException {
103                    return _workflowInstanceLinkLocalService.dynamicQuery(dynamicQuery);
104            }
105    
106            /**
107            * Performs a dynamic query on the database and returns a range of the matching rows.
108            *
109            * <p>
110            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
111            * </p>
112            *
113            * @param dynamicQuery the dynamic query
114            * @param start the lower bound of the range of model instances
115            * @param end the upper bound of the range of model instances (not inclusive)
116            * @return the range of matching rows
117            * @throws SystemException if a system exception occurred
118            */
119            @SuppressWarnings("rawtypes")
120            public java.util.List dynamicQuery(
121                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122                    int end) throws com.liferay.portal.kernel.exception.SystemException {
123                    return _workflowInstanceLinkLocalService.dynamicQuery(dynamicQuery,
124                            start, end);
125            }
126    
127            /**
128            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
129            *
130            * <p>
131            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
132            * </p>
133            *
134            * @param dynamicQuery the dynamic query
135            * @param start the lower bound of the range of model instances
136            * @param end the upper bound of the range of model instances (not inclusive)
137            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
138            * @return the ordered range of matching rows
139            * @throws SystemException if a system exception occurred
140            */
141            @SuppressWarnings("rawtypes")
142            public java.util.List dynamicQuery(
143                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
144                    int end,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _workflowInstanceLinkLocalService.dynamicQuery(dynamicQuery,
148                            start, end, orderByComparator);
149            }
150    
151            /**
152            * Returns the number of rows that match the dynamic query.
153            *
154            * @param dynamicQuery the dynamic query
155            * @return the number of rows that match the dynamic query
156            * @throws SystemException if a system exception occurred
157            */
158            public long dynamicQueryCount(
159                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
160                    throws com.liferay.portal.kernel.exception.SystemException {
161                    return _workflowInstanceLinkLocalService.dynamicQueryCount(dynamicQuery);
162            }
163    
164            public com.liferay.portal.model.WorkflowInstanceLink fetchWorkflowInstanceLink(
165                    long workflowInstanceLinkId)
166                    throws com.liferay.portal.kernel.exception.SystemException {
167                    return _workflowInstanceLinkLocalService.fetchWorkflowInstanceLink(workflowInstanceLinkId);
168            }
169    
170            /**
171            * Returns the workflow instance link with the primary key.
172            *
173            * @param workflowInstanceLinkId the primary key of the workflow instance link
174            * @return the workflow instance link
175            * @throws PortalException if a workflow instance link with the primary key could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
179                    long workflowInstanceLinkId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLink(workflowInstanceLinkId);
183            }
184    
185            public com.liferay.portal.model.PersistedModel getPersistedModel(
186                    java.io.Serializable primaryKeyObj)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return _workflowInstanceLinkLocalService.getPersistedModel(primaryKeyObj);
190            }
191    
192            /**
193            * Returns a range of all the workflow instance links.
194            *
195            * <p>
196            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
197            * </p>
198            *
199            * @param start the lower bound of the range of workflow instance links
200            * @param end the upper bound of the range of workflow instance links (not inclusive)
201            * @return the range of workflow instance links
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
205                    int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLinks(start,
208                            end);
209            }
210    
211            /**
212            * Returns the number of workflow instance links.
213            *
214            * @return the number of workflow instance links
215            * @throws SystemException if a system exception occurred
216            */
217            public int getWorkflowInstanceLinksCount()
218                    throws com.liferay.portal.kernel.exception.SystemException {
219                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLinksCount();
220            }
221    
222            /**
223            * Updates the workflow instance link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
224            *
225            * @param workflowInstanceLink the workflow instance link
226            * @return the workflow instance link that was updated
227            * @throws SystemException if a system exception occurred
228            */
229            public com.liferay.portal.model.WorkflowInstanceLink updateWorkflowInstanceLink(
230                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _workflowInstanceLinkLocalService.updateWorkflowInstanceLink(workflowInstanceLink);
233            }
234    
235            /**
236            * Returns the Spring bean ID for this bean.
237            *
238            * @return the Spring bean ID for this bean
239            */
240            public java.lang.String getBeanIdentifier() {
241                    return _workflowInstanceLinkLocalService.getBeanIdentifier();
242            }
243    
244            /**
245            * Sets the Spring bean ID for this bean.
246            *
247            * @param beanIdentifier the Spring bean ID for this bean
248            */
249            public void setBeanIdentifier(java.lang.String beanIdentifier) {
250                    _workflowInstanceLinkLocalService.setBeanIdentifier(beanIdentifier);
251            }
252    
253            public com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
254                    long userId, long companyId, long groupId, java.lang.String className,
255                    long classPK, long workflowInstanceId)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException {
258                    return _workflowInstanceLinkLocalService.addWorkflowInstanceLink(userId,
259                            companyId, groupId, className, classPK, workflowInstanceId);
260            }
261    
262            public com.liferay.portal.model.WorkflowInstanceLink deleteWorkflowInstanceLink(
263                    long companyId, long groupId, java.lang.String className, long classPK)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    return _workflowInstanceLinkLocalService.deleteWorkflowInstanceLink(companyId,
267                            groupId, className, classPK);
268            }
269    
270            public void deleteWorkflowInstanceLinks(long companyId, long groupId,
271                    java.lang.String className, long classPK)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    _workflowInstanceLinkLocalService.deleteWorkflowInstanceLinks(companyId,
275                            groupId, className, classPK);
276            }
277    
278            public com.liferay.portal.model.WorkflowInstanceLink fetchWorkflowInstanceLink(
279                    long companyId, long groupId, java.lang.String className, long classPK)
280                    throws com.liferay.portal.kernel.exception.SystemException {
281                    return _workflowInstanceLinkLocalService.fetchWorkflowInstanceLink(companyId,
282                            groupId, className, classPK);
283            }
284    
285            public java.lang.String getState(long companyId, long groupId,
286                    java.lang.String className, long classPK)
287                    throws com.liferay.portal.kernel.exception.PortalException,
288                            com.liferay.portal.kernel.exception.SystemException {
289                    return _workflowInstanceLinkLocalService.getState(companyId, groupId,
290                            className, classPK);
291            }
292    
293            public com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
294                    long companyId, long groupId, java.lang.String className, long classPK)
295                    throws com.liferay.portal.kernel.exception.PortalException,
296                            com.liferay.portal.kernel.exception.SystemException {
297                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLink(companyId,
298                            groupId, className, classPK);
299            }
300    
301            public java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
302                    long companyId, long groupId, java.lang.String className, long classPK)
303                    throws com.liferay.portal.kernel.exception.SystemException {
304                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLinks(companyId,
305                            groupId, className, classPK);
306            }
307    
308            public boolean hasWorkflowInstanceLink(long companyId, long groupId,
309                    java.lang.String className, long classPK)
310                    throws com.liferay.portal.kernel.exception.SystemException {
311                    return _workflowInstanceLinkLocalService.hasWorkflowInstanceLink(companyId,
312                            groupId, className, classPK);
313            }
314    
315            public boolean isEnded(long companyId, long groupId,
316                    java.lang.String className, long classPK)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException {
319                    return _workflowInstanceLinkLocalService.isEnded(companyId, groupId,
320                            className, classPK);
321            }
322    
323            public void startWorkflowInstance(long companyId, long groupId,
324                    long userId, java.lang.String className, long classPK,
325                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
326                    throws com.liferay.portal.kernel.exception.PortalException,
327                            com.liferay.portal.kernel.exception.SystemException {
328                    _workflowInstanceLinkLocalService.startWorkflowInstance(companyId,
329                            groupId, userId, className, classPK, workflowContext);
330            }
331    
332            public void updateClassPK(long companyId, long groupId,
333                    java.lang.String className, long oldClassPK, long newClassPK)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException {
336                    _workflowInstanceLinkLocalService.updateClassPK(companyId, groupId,
337                            className, oldClassPK, newClassPK);
338            }
339    
340            /**
341             * @deprecated Renamed to {@link #getWrappedService}
342             */
343            public WorkflowInstanceLinkLocalService getWrappedWorkflowInstanceLinkLocalService() {
344                    return _workflowInstanceLinkLocalService;
345            }
346    
347            /**
348             * @deprecated Renamed to {@link #setWrappedService}
349             */
350            public void setWrappedWorkflowInstanceLinkLocalService(
351                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
352                    _workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
353            }
354    
355            public WorkflowInstanceLinkLocalService getWrappedService() {
356                    return _workflowInstanceLinkLocalService;
357            }
358    
359            public void setWrappedService(
360                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
361                    _workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
362            }
363    
364            private WorkflowInstanceLinkLocalService _workflowInstanceLinkLocalService;
365    }