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