001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link WorkflowDefinitionLinkLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see WorkflowDefinitionLinkLocalService
024     * @generated
025     */
026    @ProviderType
027    public class WorkflowDefinitionLinkLocalServiceWrapper
028            implements WorkflowDefinitionLinkLocalService,
029                    ServiceWrapper<WorkflowDefinitionLinkLocalService> {
030            public WorkflowDefinitionLinkLocalServiceWrapper(
031                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
032                    _workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
033            }
034    
035            @Override
036            public com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
037                    long userId, long companyId, long groupId, java.lang.String className,
038                    long classPK, long typePK, java.lang.String workflowDefinitionName,
039                    int workflowDefinitionVersion)
040                    throws com.liferay.portal.kernel.exception.PortalException {
041                    return _workflowDefinitionLinkLocalService.addWorkflowDefinitionLink(userId,
042                            companyId, groupId, className, classPK, typePK,
043                            workflowDefinitionName, workflowDefinitionVersion);
044            }
045    
046            /**
047            * Adds the workflow definition link to the database. Also notifies the appropriate model listeners.
048            *
049            * @param workflowDefinitionLink the workflow definition link
050            * @return the workflow definition link that was added
051            */
052            @Override
053            public com.liferay.portal.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
054                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
055                    return _workflowDefinitionLinkLocalService.addWorkflowDefinitionLink(workflowDefinitionLink);
056            }
057    
058            /**
059            * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database.
060            *
061            * @param workflowDefinitionLinkId the primary key for the new workflow definition link
062            * @return the new workflow definition link
063            */
064            @Override
065            public com.liferay.portal.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
066                    long workflowDefinitionLinkId) {
067                    return _workflowDefinitionLinkLocalService.createWorkflowDefinitionLink(workflowDefinitionLinkId);
068            }
069    
070            /**
071            * @throws PortalException
072            */
073            @Override
074            public com.liferay.portal.model.PersistedModel deletePersistedModel(
075                    com.liferay.portal.model.PersistedModel persistedModel)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return _workflowDefinitionLinkLocalService.deletePersistedModel(persistedModel);
078            }
079    
080            @Override
081            public void deleteWorkflowDefinitionLink(long companyId, long groupId,
082                    java.lang.String className, long classPK, long typePK) {
083                    _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(companyId,
084                            groupId, className, classPK, typePK);
085            }
086    
087            /**
088            * Deletes the workflow definition link from the database. Also notifies the appropriate model listeners.
089            *
090            * @param workflowDefinitionLink the workflow definition link
091            * @return the workflow definition link that was removed
092            */
093            @Override
094            public com.liferay.portal.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
095                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
096                    return _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(workflowDefinitionLink);
097            }
098    
099            /**
100            * Deletes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners.
101            *
102            * @param workflowDefinitionLinkId the primary key of the workflow definition link
103            * @return the workflow definition link that was removed
104            * @throws PortalException if a workflow definition link with the primary key could not be found
105            */
106            @Override
107            public com.liferay.portal.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
108                    long workflowDefinitionLinkId)
109                    throws com.liferay.portal.kernel.exception.PortalException {
110                    return _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
111            }
112    
113            @Override
114            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
115                    return _workflowDefinitionLinkLocalService.dynamicQuery();
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns the matching rows.
120            *
121            * @param dynamicQuery the dynamic query
122            * @return the matching rows
123            */
124            @Override
125            public <T> java.util.List<T> dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
127                    return _workflowDefinitionLinkLocalService.dynamicQuery(dynamicQuery);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns a 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            * @return the range of matching rows
141            */
142            @Override
143            public <T> java.util.List<T> dynamicQuery(
144                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
145                    int end) {
146                    return _workflowDefinitionLinkLocalService.dynamicQuery(dynamicQuery,
147                            start, end);
148            }
149    
150            /**
151            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
152            *
153            * <p>
154            * 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.
155            * </p>
156            *
157            * @param dynamicQuery the dynamic query
158            * @param start the lower bound of the range of model instances
159            * @param end the upper bound of the range of model instances (not inclusive)
160            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
161            * @return the ordered range of matching rows
162            */
163            @Override
164            public <T> java.util.List<T> dynamicQuery(
165                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
166                    int end,
167                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
168                    return _workflowDefinitionLinkLocalService.dynamicQuery(dynamicQuery,
169                            start, end, orderByComparator);
170            }
171    
172            /**
173            * Returns the number of rows matching the dynamic query.
174            *
175            * @param dynamicQuery the dynamic query
176            * @return the number of rows matching the dynamic query
177            */
178            @Override
179            public long dynamicQueryCount(
180                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
181                    return _workflowDefinitionLinkLocalService.dynamicQueryCount(dynamicQuery);
182            }
183    
184            /**
185            * Returns the number of rows matching the dynamic query.
186            *
187            * @param dynamicQuery the dynamic query
188            * @param projection the projection to apply to the query
189            * @return the number of rows matching the dynamic query
190            */
191            @Override
192            public long dynamicQueryCount(
193                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
194                    com.liferay.portal.kernel.dao.orm.Projection projection) {
195                    return _workflowDefinitionLinkLocalService.dynamicQueryCount(dynamicQuery,
196                            projection);
197            }
198    
199            @Override
200            public com.liferay.portal.model.WorkflowDefinitionLink fetchDefaultWorkflowDefinitionLink(
201                    long companyId, java.lang.String className, long classPK, long typePK) {
202                    return _workflowDefinitionLinkLocalService.fetchDefaultWorkflowDefinitionLink(companyId,
203                            className, classPK, typePK);
204            }
205    
206            @Override
207            public com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
208                    long companyId, long groupId, java.lang.String className, long classPK,
209                    long typePK) {
210                    return _workflowDefinitionLinkLocalService.fetchWorkflowDefinitionLink(companyId,
211                            groupId, className, classPK, typePK);
212            }
213    
214            @Override
215            public com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
216                    long companyId, long groupId, java.lang.String className, long classPK,
217                    long typePK, boolean strict) {
218                    return _workflowDefinitionLinkLocalService.fetchWorkflowDefinitionLink(companyId,
219                            groupId, className, classPK, typePK, strict);
220            }
221    
222            @Override
223            public com.liferay.portal.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
224                    long workflowDefinitionLinkId) {
225                    return _workflowDefinitionLinkLocalService.fetchWorkflowDefinitionLink(workflowDefinitionLinkId);
226            }
227    
228            @Override
229            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
230                    return _workflowDefinitionLinkLocalService.getActionableDynamicQuery();
231            }
232    
233            @Override
234            public com.liferay.portal.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
235                    long companyId, java.lang.String className, long classPK, long typePK)
236                    throws com.liferay.portal.kernel.exception.PortalException {
237                    return _workflowDefinitionLinkLocalService.getDefaultWorkflowDefinitionLink(companyId,
238                            className, classPK, typePK);
239            }
240    
241            /**
242            * Returns the OSGi service identifier.
243            *
244            * @return the OSGi service identifier
245            */
246            @Override
247            public java.lang.String getOSGiServiceIdentifier() {
248                    return _workflowDefinitionLinkLocalService.getOSGiServiceIdentifier();
249            }
250    
251            @Override
252            public com.liferay.portal.model.PersistedModel getPersistedModel(
253                    java.io.Serializable primaryKeyObj)
254                    throws com.liferay.portal.kernel.exception.PortalException {
255                    return _workflowDefinitionLinkLocalService.getPersistedModel(primaryKeyObj);
256            }
257    
258            @Override
259            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
260                    long companyId, long groupId, java.lang.String className, long classPK,
261                    long typePK) throws com.liferay.portal.kernel.exception.PortalException {
262                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
263                            groupId, className, classPK, typePK);
264            }
265    
266            @Override
267            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
268                    long companyId, long groupId, java.lang.String className, long classPK,
269                    long typePK, boolean strict)
270                    throws com.liferay.portal.kernel.exception.PortalException {
271                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
272                            groupId, className, classPK, typePK, strict);
273            }
274    
275            /**
276            * Returns the workflow definition link with the primary key.
277            *
278            * @param workflowDefinitionLinkId the primary key of the workflow definition link
279            * @return the workflow definition link
280            * @throws PortalException if a workflow definition link with the primary key could not be found
281            */
282            @Override
283            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
284                    long workflowDefinitionLinkId)
285                    throws com.liferay.portal.kernel.exception.PortalException {
286                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(workflowDefinitionLinkId);
287            }
288    
289            /**
290            * Returns a range of all the workflow definition links.
291            *
292            * <p>
293            * 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.
294            * </p>
295            *
296            * @param start the lower bound of the range of workflow definition links
297            * @param end the upper bound of the range of workflow definition links (not inclusive)
298            * @return the range of workflow definition links
299            */
300            @Override
301            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
302                    int start, int end) {
303                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinks(start,
304                            end);
305            }
306    
307            /**
308            * Returns the number of workflow definition links.
309            *
310            * @return the number of workflow definition links
311            */
312            @Override
313            public int getWorkflowDefinitionLinksCount() {
314                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount();
315            }
316    
317            @Override
318            public int getWorkflowDefinitionLinksCount(long companyId, long groupId,
319                    java.lang.String className) {
320                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount(companyId,
321                            groupId, className);
322            }
323    
324            @Override
325            public int getWorkflowDefinitionLinksCount(long companyId,
326                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion) {
327                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount(companyId,
328                            workflowDefinitionName, workflowDefinitionVersion);
329            }
330    
331            @Override
332            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
333                    java.lang.String className) {
334                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
335                            groupId, className);
336            }
337    
338            @Override
339            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
340                    java.lang.String className, long classPK) {
341                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
342                            groupId, className, classPK);
343            }
344    
345            @Override
346            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
347                    java.lang.String className, long classPK, long typePK) {
348                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
349                            groupId, className, classPK, typePK);
350            }
351    
352            @Override
353            public void updateWorkflowDefinitionLink(long userId, long companyId,
354                    long groupId, java.lang.String className, long classPK, long typePK,
355                    java.lang.String workflowDefinition)
356                    throws com.liferay.portal.kernel.exception.PortalException {
357                    _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
358                            companyId, groupId, className, classPK, typePK, workflowDefinition);
359            }
360    
361            @Override
362            public com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
363                    long userId, long companyId, long groupId, java.lang.String className,
364                    long classPK, long typePK, java.lang.String workflowDefinitionName,
365                    int workflowDefinitionVersion)
366                    throws com.liferay.portal.kernel.exception.PortalException {
367                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
368                            companyId, groupId, className, classPK, typePK,
369                            workflowDefinitionName, workflowDefinitionVersion);
370            }
371    
372            /**
373            * Updates the workflow definition link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
374            *
375            * @param workflowDefinitionLink the workflow definition link
376            * @return the workflow definition link that was updated
377            */
378            @Override
379            public com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
380                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
381                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(workflowDefinitionLink);
382            }
383    
384            @Override
385            public void updateWorkflowDefinitionLinks(long userId, long companyId,
386                    long groupId, java.lang.String className, long classPK,
387                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitionOVPs)
388                    throws com.liferay.portal.kernel.exception.PortalException {
389                    _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLinks(userId,
390                            companyId, groupId, className, classPK, workflowDefinitionOVPs);
391            }
392    
393            /**
394             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
395             */
396            @Deprecated
397            public WorkflowDefinitionLinkLocalService getWrappedWorkflowDefinitionLinkLocalService() {
398                    return _workflowDefinitionLinkLocalService;
399            }
400    
401            /**
402             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
403             */
404            @Deprecated
405            public void setWrappedWorkflowDefinitionLinkLocalService(
406                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
407                    _workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
408            }
409    
410            @Override
411            public WorkflowDefinitionLinkLocalService getWrappedService() {
412                    return _workflowDefinitionLinkLocalService;
413            }
414    
415            @Override
416            public void setWrappedService(
417                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
418                    _workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
419            }
420    
421            private WorkflowDefinitionLinkLocalService _workflowDefinitionLinkLocalService;
422    }