001    /**
002     * Copyright (c) 2000-2013 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            * Updates the workflow instance link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
237            *
238            * @param workflowInstanceLink the workflow instance link
239            * @param merge whether to merge the workflow instance link with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
240            * @return the workflow instance link that was updated
241            * @throws SystemException if a system exception occurred
242            */
243            public com.liferay.portal.model.WorkflowInstanceLink updateWorkflowInstanceLink(
244                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink,
245                    boolean merge)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    return _workflowInstanceLinkLocalService.updateWorkflowInstanceLink(workflowInstanceLink,
248                            merge);
249            }
250    
251            /**
252            * Returns the Spring bean ID for this bean.
253            *
254            * @return the Spring bean ID for this bean
255            */
256            public java.lang.String getBeanIdentifier() {
257                    return _workflowInstanceLinkLocalService.getBeanIdentifier();
258            }
259    
260            /**
261            * Sets the Spring bean ID for this bean.
262            *
263            * @param beanIdentifier the Spring bean ID for this bean
264            */
265            public void setBeanIdentifier(java.lang.String beanIdentifier) {
266                    _workflowInstanceLinkLocalService.setBeanIdentifier(beanIdentifier);
267            }
268    
269            public com.liferay.portal.model.WorkflowInstanceLink addWorkflowInstanceLink(
270                    long userId, long companyId, long groupId, java.lang.String className,
271                    long classPK, long workflowInstanceId)
272                    throws com.liferay.portal.kernel.exception.PortalException,
273                            com.liferay.portal.kernel.exception.SystemException {
274                    return _workflowInstanceLinkLocalService.addWorkflowInstanceLink(userId,
275                            companyId, groupId, className, classPK, workflowInstanceId);
276            }
277    
278            public void deleteWorkflowInstanceLink(long companyId, long groupId,
279                    java.lang.String className, long classPK)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _workflowInstanceLinkLocalService.deleteWorkflowInstanceLink(companyId,
283                            groupId, className, classPK);
284            }
285    
286            public void deleteWorkflowInstanceLinks(long companyId, long groupId,
287                    java.lang.String className, long classPK)
288                    throws com.liferay.portal.kernel.exception.PortalException,
289                            com.liferay.portal.kernel.exception.SystemException {
290                    _workflowInstanceLinkLocalService.deleteWorkflowInstanceLinks(companyId,
291                            groupId, className, classPK);
292            }
293    
294            public com.liferay.portal.model.WorkflowInstanceLink fetchWorkflowInstanceLink(
295                    long companyId, long groupId, java.lang.String className, long classPK)
296                    throws com.liferay.portal.kernel.exception.SystemException {
297                    return _workflowInstanceLinkLocalService.fetchWorkflowInstanceLink(companyId,
298                            groupId, className, classPK);
299            }
300    
301            public java.lang.String getState(long companyId, long groupId,
302                    java.lang.String className, long classPK)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException {
305                    return _workflowInstanceLinkLocalService.getState(companyId, groupId,
306                            className, classPK);
307            }
308    
309            public com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
310                    long companyId, long groupId, java.lang.String className, long classPK)
311                    throws com.liferay.portal.kernel.exception.PortalException,
312                            com.liferay.portal.kernel.exception.SystemException {
313                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLink(companyId,
314                            groupId, className, classPK);
315            }
316    
317            public java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
318                    long companyId, long groupId, java.lang.String className, long classPK)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLinks(companyId,
321                            groupId, className, classPK);
322            }
323    
324            public boolean hasWorkflowInstanceLink(long companyId, long groupId,
325                    java.lang.String className, long classPK)
326                    throws com.liferay.portal.kernel.exception.SystemException {
327                    return _workflowInstanceLinkLocalService.hasWorkflowInstanceLink(companyId,
328                            groupId, className, classPK);
329            }
330    
331            public boolean isEnded(long companyId, long groupId,
332                    java.lang.String className, long classPK)
333                    throws com.liferay.portal.kernel.exception.PortalException,
334                            com.liferay.portal.kernel.exception.SystemException {
335                    return _workflowInstanceLinkLocalService.isEnded(companyId, groupId,
336                            className, classPK);
337            }
338    
339            public void startWorkflowInstance(long companyId, long groupId,
340                    long userId, java.lang.String className, long classPK,
341                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    _workflowInstanceLinkLocalService.startWorkflowInstance(companyId,
345                            groupId, userId, className, classPK, workflowContext);
346            }
347    
348            public void updateClassPK(long companyId, long groupId,
349                    java.lang.String className, long oldClassPK, long newClassPK)
350                    throws com.liferay.portal.kernel.exception.PortalException,
351                            com.liferay.portal.kernel.exception.SystemException {
352                    _workflowInstanceLinkLocalService.updateClassPK(companyId, groupId,
353                            className, oldClassPK, newClassPK);
354            }
355    
356            /**
357             * @deprecated Renamed to {@link #getWrappedService}
358             */
359            public WorkflowInstanceLinkLocalService getWrappedWorkflowInstanceLinkLocalService() {
360                    return _workflowInstanceLinkLocalService;
361            }
362    
363            /**
364             * @deprecated Renamed to {@link #setWrappedService}
365             */
366            public void setWrappedWorkflowInstanceLinkLocalService(
367                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
368                    _workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
369            }
370    
371            public WorkflowInstanceLinkLocalService getWrappedService() {
372                    return _workflowInstanceLinkLocalService;
373            }
374    
375            public void setWrappedService(
376                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
377                    _workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
378            }
379    
380            private WorkflowInstanceLinkLocalService _workflowInstanceLinkLocalService;
381    }