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