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