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            @Override
242            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
243                    return _workflowDefinitionLinkLocalService.getIndexableActionableDynamicQuery();
244            }
245    
246            /**
247            * Returns the OSGi service identifier.
248            *
249            * @return the OSGi service identifier
250            */
251            @Override
252            public java.lang.String getOSGiServiceIdentifier() {
253                    return _workflowDefinitionLinkLocalService.getOSGiServiceIdentifier();
254            }
255    
256            @Override
257            public com.liferay.portal.model.PersistedModel getPersistedModel(
258                    java.io.Serializable primaryKeyObj)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _workflowDefinitionLinkLocalService.getPersistedModel(primaryKeyObj);
261            }
262    
263            @Override
264            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
265                    long companyId, long groupId, java.lang.String className, long classPK,
266                    long typePK) throws com.liferay.portal.kernel.exception.PortalException {
267                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
268                            groupId, className, classPK, typePK);
269            }
270    
271            @Override
272            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
273                    long companyId, long groupId, java.lang.String className, long classPK,
274                    long typePK, boolean strict)
275                    throws com.liferay.portal.kernel.exception.PortalException {
276                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
277                            groupId, className, classPK, typePK, strict);
278            }
279    
280            /**
281            * Returns the workflow definition link with the primary key.
282            *
283            * @param workflowDefinitionLinkId the primary key of the workflow definition link
284            * @return the workflow definition link
285            * @throws PortalException if a workflow definition link with the primary key could not be found
286            */
287            @Override
288            public com.liferay.portal.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
289                    long workflowDefinitionLinkId)
290                    throws com.liferay.portal.kernel.exception.PortalException {
291                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(workflowDefinitionLinkId);
292            }
293    
294            /**
295            * Returns a range of all the workflow definition links.
296            *
297            * <p>
298            * 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.
299            * </p>
300            *
301            * @param start the lower bound of the range of workflow definition links
302            * @param end the upper bound of the range of workflow definition links (not inclusive)
303            * @return the range of workflow definition links
304            */
305            @Override
306            public java.util.List<com.liferay.portal.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
307                    int start, int end) {
308                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinks(start,
309                            end);
310            }
311    
312            /**
313            * Returns the number of workflow definition links.
314            *
315            * @return the number of workflow definition links
316            */
317            @Override
318            public int getWorkflowDefinitionLinksCount() {
319                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount();
320            }
321    
322            @Override
323            public int getWorkflowDefinitionLinksCount(long companyId, long groupId,
324                    java.lang.String className) {
325                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount(companyId,
326                            groupId, className);
327            }
328    
329            @Override
330            public int getWorkflowDefinitionLinksCount(long companyId,
331                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion) {
332                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount(companyId,
333                            workflowDefinitionName, workflowDefinitionVersion);
334            }
335    
336            @Override
337            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
338                    java.lang.String className) {
339                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
340                            groupId, className);
341            }
342    
343            @Override
344            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
345                    java.lang.String className, long classPK) {
346                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
347                            groupId, className, classPK);
348            }
349    
350            @Override
351            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
352                    java.lang.String className, long classPK, long typePK) {
353                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
354                            groupId, className, classPK, typePK);
355            }
356    
357            @Override
358            public void updateWorkflowDefinitionLink(long userId, long companyId,
359                    long groupId, java.lang.String className, long classPK, long typePK,
360                    java.lang.String workflowDefinition)
361                    throws com.liferay.portal.kernel.exception.PortalException {
362                    _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
363                            companyId, groupId, className, classPK, typePK, workflowDefinition);
364            }
365    
366            @Override
367            public com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
368                    long userId, long companyId, long groupId, java.lang.String className,
369                    long classPK, long typePK, java.lang.String workflowDefinitionName,
370                    int workflowDefinitionVersion)
371                    throws com.liferay.portal.kernel.exception.PortalException {
372                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
373                            companyId, groupId, className, classPK, typePK,
374                            workflowDefinitionName, workflowDefinitionVersion);
375            }
376    
377            /**
378            * Updates the workflow definition link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
379            *
380            * @param workflowDefinitionLink the workflow definition link
381            * @return the workflow definition link that was updated
382            */
383            @Override
384            public com.liferay.portal.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
385                    com.liferay.portal.model.WorkflowDefinitionLink workflowDefinitionLink) {
386                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(workflowDefinitionLink);
387            }
388    
389            @Override
390            public void updateWorkflowDefinitionLinks(long userId, long companyId,
391                    long groupId, java.lang.String className, long classPK,
392                    java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.Long, java.lang.String>> workflowDefinitionOVPs)
393                    throws com.liferay.portal.kernel.exception.PortalException {
394                    _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLinks(userId,
395                            companyId, groupId, className, classPK, workflowDefinitionOVPs);
396            }
397    
398            @Override
399            public WorkflowDefinitionLinkLocalService getWrappedService() {
400                    return _workflowDefinitionLinkLocalService;
401            }
402    
403            @Override
404            public void setWrappedService(
405                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
406                    _workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
407            }
408    
409            private WorkflowDefinitionLinkLocalService _workflowDefinitionLinkLocalService;
410    }