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