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