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