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 WorkflowDefinitionLinkLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       WorkflowDefinitionLinkLocalService
024     * @generated
025     */
026    public class WorkflowDefinitionLinkLocalServiceWrapper
027            implements WorkflowDefinitionLinkLocalService,
028                    ServiceWrapper<WorkflowDefinitionLinkLocalService> {
029            public WorkflowDefinitionLinkLocalServiceWrapper(
030                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
031                    _workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
032            }
033    
034            /**
035            * Adds the workflow definition link to the database. Also notifies the appropriate model listeners.
036            *
037            * @param workflowDefinitionLink the workflow definition link
038            * @return the workflow definition link that was added
039            * @throws SystemException if a system exception occurred
040            */
041            public com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
042                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _workflowDefinitionLinkLocalService.addWorkflowDefinitionLink(workflowDefinitionLink);
045            }
046    
047            /**
048            * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database.
049            *
050            * @param workflowDefinitionLinkId the primary key for the new workflow definition link
051            * @return the new workflow definition link
052            */
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            * @throws PortalException if a workflow definition link with the primary key could not be found
063            * @throws SystemException if a system exception occurred
064            */
065            public void deleteWorkflowDefinitionLink(long workflowDefinitionLinkId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
069            }
070    
071            /**
072            * Deletes the workflow definition link from the database. Also notifies the appropriate model listeners.
073            *
074            * @param workflowDefinitionLink the workflow definition link
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteWorkflowDefinitionLink(
078                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
079                    throws com.liferay.portal.kernel.exception.SystemException {
080                    _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(workflowDefinitionLink);
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 _workflowDefinitionLinkLocalService.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 _workflowDefinitionLinkLocalService.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 _workflowDefinitionLinkLocalService.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 _workflowDefinitionLinkLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
156                    long workflowDefinitionLinkId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _workflowDefinitionLinkLocalService.fetchWorkflowDefinitionLink(workflowDefinitionLinkId);
159            }
160    
161            /**
162            * Returns the workflow definition link with the primary key.
163            *
164            * @param workflowDefinitionLinkId the primary key of the workflow definition link
165            * @return the workflow definition link
166            * @throws PortalException if a workflow definition link with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
170                    long workflowDefinitionLinkId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(workflowDefinitionLinkId);
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 _workflowDefinitionLinkLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the workflow definition 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 definition links
191            * @param end the upper bound of the range of workflow definition links (not inclusive)
192            * @return the range of workflow definition links
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinks(start,
199                            end);
200            }
201    
202            /**
203            * Returns the number of workflow definition links.
204            *
205            * @return the number of workflow definition links
206            * @throws SystemException if a system exception occurred
207            */
208            public int getWorkflowDefinitionLinksCount()
209                    throws com.liferay.portal.kernel.exception.SystemException {
210                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount();
211            }
212    
213            /**
214            * Updates the workflow definition link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
215            *
216            * @param workflowDefinitionLink the workflow definition link
217            * @return the workflow definition link that was updated
218            * @throws SystemException if a system exception occurred
219            */
220            public com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
221                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink)
222                    throws com.liferay.portal.kernel.exception.SystemException {
223                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(workflowDefinitionLink);
224            }
225    
226            /**
227            * Updates the workflow definition link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
228            *
229            * @param workflowDefinitionLink the workflow definition link
230            * @param merge whether to merge the workflow definition 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 definition link that was updated
232            * @throws SystemException if a system exception occurred
233            */
234            public com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
235                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink,
236                    boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(workflowDefinitionLink,
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 _workflowDefinitionLinkLocalService.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                    _workflowDefinitionLinkLocalService.setBeanIdentifier(beanIdentifier);
258            }
259    
260            public com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
261                    long userId, long companyId, long groupId, java.lang.String className,
262                    long classPK, long typePK, java.lang.String workflowDefinitionName,
263                    int workflowDefinitionVersion)
264                    throws com.liferay.portal.kernel.exception.PortalException,
265                            com.liferay.portal.kernel.exception.SystemException {
266                    return _workflowDefinitionLinkLocalService.addWorkflowDefinitionLink(userId,
267                            companyId, groupId, className, classPK, typePK,
268                            workflowDefinitionName, workflowDefinitionVersion);
269            }
270    
271            public void deleteWorkflowDefinitionLink(long companyId, long groupId,
272                    java.lang.String className, long classPK, long typePK)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(companyId,
276                            groupId, className, classPK, typePK);
277            }
278    
279            public com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
280                    long companyId, java.lang.String className, long classPK, long typePK)
281                    throws com.liferay.portal.kernel.exception.PortalException,
282                            com.liferay.portal.kernel.exception.SystemException {
283                    return _workflowDefinitionLinkLocalService.getDefaultWorkflowDefinitionLink(companyId,
284                            className, classPK, typePK);
285            }
286    
287            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
288                    long companyId, long groupId, java.lang.String className, long classPK,
289                    long typePK)
290                    throws com.liferay.portal.kernel.exception.PortalException,
291                            com.liferay.portal.kernel.exception.SystemException {
292                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
293                            groupId, className, classPK, typePK);
294            }
295    
296            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
297                    long companyId, long groupId, java.lang.String className, long classPK,
298                    long typePK, boolean strict)
299                    throws com.liferay.portal.kernel.exception.PortalException,
300                            com.liferay.portal.kernel.exception.SystemException {
301                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
302                            groupId, className, classPK, typePK, strict);
303            }
304    
305            public int getWorkflowDefinitionLinksCount(long companyId,
306                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion)
307                    throws com.liferay.portal.kernel.exception.SystemException {
308                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount(companyId,
309                            workflowDefinitionName, workflowDefinitionVersion);
310            }
311    
312            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
313                    java.lang.String className)
314                    throws com.liferay.portal.kernel.exception.PortalException,
315                            com.liferay.portal.kernel.exception.SystemException {
316                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
317                            groupId, className);
318            }
319    
320            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
321                    java.lang.String className, long classPK)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
325                            groupId, className, classPK);
326            }
327    
328            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
329                    java.lang.String className, long classPK, long typePK)
330                    throws com.liferay.portal.kernel.exception.PortalException,
331                            com.liferay.portal.kernel.exception.SystemException {
332                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
333                            groupId, className, classPK, typePK);
334            }
335    
336            public void updateWorkflowDefinitionLink(long userId, long companyId,
337                    long groupId, java.lang.String className, long classPK, long typePK,
338                    java.lang.String workflowDefinition)
339                    throws com.liferay.portal.kernel.exception.PortalException,
340                            com.liferay.portal.kernel.exception.SystemException {
341                    _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
342                            companyId, groupId, className, classPK, typePK, workflowDefinition);
343            }
344    
345            public com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
346                    long userId, long companyId, long groupId, java.lang.String className,
347                    long classPK, long typePK, java.lang.String workflowDefinitionName,
348                    int workflowDefinitionVersion)
349                    throws com.liferay.portal.kernel.exception.PortalException,
350                            com.liferay.portal.kernel.exception.SystemException {
351                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
352                            companyId, groupId, className, classPK, typePK,
353                            workflowDefinitionName, workflowDefinitionVersion);
354            }
355    
356            public void updateWorkflowDefinitionLinks(long userId, long companyId,
357                    long groupId, java.lang.String className, long classPK,
358                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitions)
359                    throws com.liferay.portal.kernel.exception.PortalException,
360                            com.liferay.portal.kernel.exception.SystemException {
361                    _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLinks(userId,
362                            companyId, groupId, className, classPK, workflowDefinitions);
363            }
364    
365            /**
366             * @deprecated Renamed to {@link #getWrappedService}
367             */
368            public WorkflowDefinitionLinkLocalService getWrappedWorkflowDefinitionLinkLocalService() {
369                    return _workflowDefinitionLinkLocalService;
370            }
371    
372            /**
373             * @deprecated Renamed to {@link #setWrappedService}
374             */
375            public void setWrappedWorkflowDefinitionLinkLocalService(
376                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
377                    _workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
378            }
379    
380            public WorkflowDefinitionLinkLocalService getWrappedService() {
381                    return _workflowDefinitionLinkLocalService;
382            }
383    
384            public void setWrappedService(
385                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
386                    _workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
387            }
388    
389            private WorkflowDefinitionLinkLocalService _workflowDefinitionLinkLocalService;
390    }