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