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.kernel.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 boolean hasWorkflowDefinitionLink(long companyId, long groupId,
037                    java.lang.String className) {
038                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
039                            groupId, className);
040            }
041    
042            @Override
043            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
044                    java.lang.String className, long classPK) {
045                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
046                            groupId, className, classPK);
047            }
048    
049            @Override
050            public boolean hasWorkflowDefinitionLink(long companyId, long groupId,
051                    java.lang.String className, long classPK, long typePK) {
052                    return _workflowDefinitionLinkLocalService.hasWorkflowDefinitionLink(companyId,
053                            groupId, className, classPK, typePK);
054            }
055    
056            @Override
057            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
058                    return _workflowDefinitionLinkLocalService.getActionableDynamicQuery();
059            }
060    
061            @Override
062            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
063                    return _workflowDefinitionLinkLocalService.dynamicQuery();
064            }
065    
066            @Override
067            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
068                    return _workflowDefinitionLinkLocalService.getIndexableActionableDynamicQuery();
069            }
070    
071            /**
072            * @throws PortalException
073            */
074            @Override
075            public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
076                    com.liferay.portal.kernel.model.PersistedModel persistedModel)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    return _workflowDefinitionLinkLocalService.deletePersistedModel(persistedModel);
079            }
080    
081            @Override
082            public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
083                    java.io.Serializable primaryKeyObj)
084                    throws com.liferay.portal.kernel.exception.PortalException {
085                    return _workflowDefinitionLinkLocalService.getPersistedModel(primaryKeyObj);
086            }
087    
088            /**
089            * Adds the workflow definition link to the database. Also notifies the appropriate model listeners.
090            *
091            * @param workflowDefinitionLink the workflow definition link
092            * @return the workflow definition link that was added
093            */
094            @Override
095            public com.liferay.portal.kernel.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
096                    com.liferay.portal.kernel.model.WorkflowDefinitionLink workflowDefinitionLink) {
097                    return _workflowDefinitionLinkLocalService.addWorkflowDefinitionLink(workflowDefinitionLink);
098            }
099    
100            @Override
101            public com.liferay.portal.kernel.model.WorkflowDefinitionLink addWorkflowDefinitionLink(
102                    long userId, long companyId, long groupId, java.lang.String className,
103                    long classPK, long typePK, java.lang.String workflowDefinitionName,
104                    int workflowDefinitionVersion)
105                    throws com.liferay.portal.kernel.exception.PortalException {
106                    return _workflowDefinitionLinkLocalService.addWorkflowDefinitionLink(userId,
107                            companyId, groupId, className, classPK, typePK,
108                            workflowDefinitionName, workflowDefinitionVersion);
109            }
110    
111            /**
112            * Creates a new workflow definition link with the primary key. Does not add the workflow definition link to the database.
113            *
114            * @param workflowDefinitionLinkId the primary key for the new workflow definition link
115            * @return the new workflow definition link
116            */
117            @Override
118            public com.liferay.portal.kernel.model.WorkflowDefinitionLink createWorkflowDefinitionLink(
119                    long workflowDefinitionLinkId) {
120                    return _workflowDefinitionLinkLocalService.createWorkflowDefinitionLink(workflowDefinitionLinkId);
121            }
122    
123            /**
124            * Deletes the workflow definition link from the database. Also notifies the appropriate model listeners.
125            *
126            * @param workflowDefinitionLink the workflow definition link
127            * @return the workflow definition link that was removed
128            */
129            @Override
130            public com.liferay.portal.kernel.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
131                    com.liferay.portal.kernel.model.WorkflowDefinitionLink workflowDefinitionLink) {
132                    return _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(workflowDefinitionLink);
133            }
134    
135            /**
136            * Deletes the workflow definition link with the primary key from the database. Also notifies the appropriate model listeners.
137            *
138            * @param workflowDefinitionLinkId the primary key of the workflow definition link
139            * @return the workflow definition link that was removed
140            * @throws PortalException if a workflow definition link with the primary key could not be found
141            */
142            @Override
143            public com.liferay.portal.kernel.model.WorkflowDefinitionLink deleteWorkflowDefinitionLink(
144                    long workflowDefinitionLinkId)
145                    throws com.liferay.portal.kernel.exception.PortalException {
146                    return _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(workflowDefinitionLinkId);
147            }
148    
149            @Override
150            public com.liferay.portal.kernel.model.WorkflowDefinitionLink fetchDefaultWorkflowDefinitionLink(
151                    long companyId, java.lang.String className, long classPK, long typePK) {
152                    return _workflowDefinitionLinkLocalService.fetchDefaultWorkflowDefinitionLink(companyId,
153                            className, classPK, typePK);
154            }
155    
156            @Override
157            public com.liferay.portal.kernel.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
158                    long companyId, long groupId, java.lang.String className, long classPK,
159                    long typePK) {
160                    return _workflowDefinitionLinkLocalService.fetchWorkflowDefinitionLink(companyId,
161                            groupId, className, classPK, typePK);
162            }
163    
164            @Override
165            public com.liferay.portal.kernel.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
166                    long companyId, long groupId, java.lang.String className, long classPK,
167                    long typePK, boolean strict) {
168                    return _workflowDefinitionLinkLocalService.fetchWorkflowDefinitionLink(companyId,
169                            groupId, className, classPK, typePK, strict);
170            }
171    
172            @Override
173            public com.liferay.portal.kernel.model.WorkflowDefinitionLink fetchWorkflowDefinitionLink(
174                    long workflowDefinitionLinkId) {
175                    return _workflowDefinitionLinkLocalService.fetchWorkflowDefinitionLink(workflowDefinitionLinkId);
176            }
177    
178            @Override
179            public com.liferay.portal.kernel.model.WorkflowDefinitionLink getDefaultWorkflowDefinitionLink(
180                    long companyId, java.lang.String className, long classPK, long typePK)
181                    throws com.liferay.portal.kernel.exception.PortalException {
182                    return _workflowDefinitionLinkLocalService.getDefaultWorkflowDefinitionLink(companyId,
183                            className, classPK, typePK);
184            }
185    
186            @Override
187            public com.liferay.portal.kernel.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
188                    long companyId, long groupId, java.lang.String className, long classPK,
189                    long typePK) throws com.liferay.portal.kernel.exception.PortalException {
190                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
191                            groupId, className, classPK, typePK);
192            }
193    
194            @Override
195            public com.liferay.portal.kernel.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
196                    long companyId, long groupId, java.lang.String className, long classPK,
197                    long typePK, boolean strict)
198                    throws com.liferay.portal.kernel.exception.PortalException {
199                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(companyId,
200                            groupId, className, classPK, typePK, strict);
201            }
202    
203            /**
204            * Returns the workflow definition link with the primary key.
205            *
206            * @param workflowDefinitionLinkId the primary key of the workflow definition link
207            * @return the workflow definition link
208            * @throws PortalException if a workflow definition link with the primary key could not be found
209            */
210            @Override
211            public com.liferay.portal.kernel.model.WorkflowDefinitionLink getWorkflowDefinitionLink(
212                    long workflowDefinitionLinkId)
213                    throws com.liferay.portal.kernel.exception.PortalException {
214                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLink(workflowDefinitionLinkId);
215            }
216    
217            /**
218            * Updates the workflow definition link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
219            *
220            * @param workflowDefinitionLink the workflow definition link
221            * @return the workflow definition link that was updated
222            */
223            @Override
224            public com.liferay.portal.kernel.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
225                    com.liferay.portal.kernel.model.WorkflowDefinitionLink workflowDefinitionLink) {
226                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(workflowDefinitionLink);
227            }
228    
229            @Override
230            public com.liferay.portal.kernel.model.WorkflowDefinitionLink updateWorkflowDefinitionLink(
231                    long userId, long companyId, long groupId, java.lang.String className,
232                    long classPK, long typePK, java.lang.String workflowDefinitionName,
233                    int workflowDefinitionVersion)
234                    throws com.liferay.portal.kernel.exception.PortalException {
235                    return _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
236                            companyId, groupId, className, classPK, typePK,
237                            workflowDefinitionName, workflowDefinitionVersion);
238            }
239    
240            /**
241            * Returns the number of workflow definition links.
242            *
243            * @return the number of workflow definition links
244            */
245            @Override
246            public int getWorkflowDefinitionLinksCount() {
247                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount();
248            }
249    
250            @Override
251            public int getWorkflowDefinitionLinksCount(long companyId,
252                    java.lang.String workflowDefinitionName, int workflowDefinitionVersion) {
253                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount(companyId,
254                            workflowDefinitionName, workflowDefinitionVersion);
255            }
256    
257            @Override
258            public int getWorkflowDefinitionLinksCount(long companyId, long groupId,
259                    java.lang.String className) {
260                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinksCount(companyId,
261                            groupId, className);
262            }
263    
264            /**
265            * Returns the OSGi service identifier.
266            *
267            * @return the OSGi service identifier
268            */
269            @Override
270            public java.lang.String getOSGiServiceIdentifier() {
271                    return _workflowDefinitionLinkLocalService.getOSGiServiceIdentifier();
272            }
273    
274            /**
275            * Performs a dynamic query on the database and returns the matching rows.
276            *
277            * @param dynamicQuery the dynamic query
278            * @return the matching rows
279            */
280            @Override
281            public <T> java.util.List<T> dynamicQuery(
282                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
283                    return _workflowDefinitionLinkLocalService.dynamicQuery(dynamicQuery);
284            }
285    
286            /**
287            * Performs a dynamic query on the database and returns a range of the matching rows.
288            *
289            * <p>
290            * 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.
291            * </p>
292            *
293            * @param dynamicQuery the dynamic query
294            * @param start the lower bound of the range of model instances
295            * @param end the upper bound of the range of model instances (not inclusive)
296            * @return the range of matching rows
297            */
298            @Override
299            public <T> java.util.List<T> dynamicQuery(
300                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
301                    int end) {
302                    return _workflowDefinitionLinkLocalService.dynamicQuery(dynamicQuery,
303                            start, end);
304            }
305    
306            /**
307            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
308            *
309            * <p>
310            * 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.
311            * </p>
312            *
313            * @param dynamicQuery the dynamic query
314            * @param start the lower bound of the range of model instances
315            * @param end the upper bound of the range of model instances (not inclusive)
316            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
317            * @return the ordered range of matching rows
318            */
319            @Override
320            public <T> java.util.List<T> dynamicQuery(
321                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
322                    int end,
323                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
324                    return _workflowDefinitionLinkLocalService.dynamicQuery(dynamicQuery,
325                            start, end, orderByComparator);
326            }
327    
328            /**
329            * Returns a range of all the workflow definition links.
330            *
331            * <p>
332            * 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.
333            * </p>
334            *
335            * @param start the lower bound of the range of workflow definition links
336            * @param end the upper bound of the range of workflow definition links (not inclusive)
337            * @return the range of workflow definition links
338            */
339            @Override
340            public java.util.List<com.liferay.portal.kernel.model.WorkflowDefinitionLink> getWorkflowDefinitionLinks(
341                    int start, int end) {
342                    return _workflowDefinitionLinkLocalService.getWorkflowDefinitionLinks(start,
343                            end);
344            }
345    
346            /**
347            * Returns the number of rows matching the dynamic query.
348            *
349            * @param dynamicQuery the dynamic query
350            * @return the number of rows matching the dynamic query
351            */
352            @Override
353            public long dynamicQueryCount(
354                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
355                    return _workflowDefinitionLinkLocalService.dynamicQueryCount(dynamicQuery);
356            }
357    
358            /**
359            * Returns the number of rows matching the dynamic query.
360            *
361            * @param dynamicQuery the dynamic query
362            * @param projection the projection to apply to the query
363            * @return the number of rows matching the dynamic query
364            */
365            @Override
366            public long dynamicQueryCount(
367                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
368                    com.liferay.portal.kernel.dao.orm.Projection projection) {
369                    return _workflowDefinitionLinkLocalService.dynamicQueryCount(dynamicQuery,
370                            projection);
371            }
372    
373            @Override
374            public void deleteWorkflowDefinitionLink(long companyId, long groupId,
375                    java.lang.String className, long classPK, long typePK) {
376                    _workflowDefinitionLinkLocalService.deleteWorkflowDefinitionLink(companyId,
377                            groupId, className, classPK, typePK);
378            }
379    
380            @Override
381            public void updateWorkflowDefinitionLink(long userId, long companyId,
382                    long groupId, java.lang.String className, long classPK, long typePK,
383                    java.lang.String workflowDefinition)
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    _workflowDefinitionLinkLocalService.updateWorkflowDefinitionLink(userId,
386                            companyId, groupId, className, classPK, typePK, workflowDefinition);
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    }