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            @Override
227            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
228                    return _workflowInstanceLinkLocalService.getIndexableActionableDynamicQuery();
229            }
230    
231            /**
232            * Returns the OSGi service identifier.
233            *
234            * @return the OSGi service identifier
235            */
236            @Override
237            public java.lang.String getOSGiServiceIdentifier() {
238                    return _workflowInstanceLinkLocalService.getOSGiServiceIdentifier();
239            }
240    
241            @Override
242            public com.liferay.portal.model.PersistedModel getPersistedModel(
243                    java.io.Serializable primaryKeyObj)
244                    throws com.liferay.portal.kernel.exception.PortalException {
245                    return _workflowInstanceLinkLocalService.getPersistedModel(primaryKeyObj);
246            }
247    
248            @Override
249            public java.lang.String getState(long companyId, long groupId,
250                    java.lang.String className, long classPK)
251                    throws com.liferay.portal.kernel.exception.PortalException {
252                    return _workflowInstanceLinkLocalService.getState(companyId, groupId,
253                            className, classPK);
254            }
255    
256            @Override
257            public com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
258                    long companyId, long groupId, java.lang.String className, long classPK)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLink(companyId,
261                            groupId, className, classPK);
262            }
263    
264            /**
265            * Returns the workflow instance link with the primary key.
266            *
267            * @param workflowInstanceLinkId the primary key of the workflow instance link
268            * @return the workflow instance link
269            * @throws PortalException if a workflow instance link with the primary key could not be found
270            */
271            @Override
272            public com.liferay.portal.model.WorkflowInstanceLink getWorkflowInstanceLink(
273                    long workflowInstanceLinkId)
274                    throws com.liferay.portal.kernel.exception.PortalException {
275                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLink(workflowInstanceLinkId);
276            }
277    
278            @Override
279            public java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
280                    long companyId, long groupId, java.lang.String className, long classPK) {
281                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLinks(companyId,
282                            groupId, className, classPK);
283            }
284    
285            /**
286            * Returns a range of all the workflow instance links.
287            *
288            * <p>
289            * 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.
290            * </p>
291            *
292            * @param start the lower bound of the range of workflow instance links
293            * @param end the upper bound of the range of workflow instance links (not inclusive)
294            * @return the range of workflow instance links
295            */
296            @Override
297            public java.util.List<com.liferay.portal.model.WorkflowInstanceLink> getWorkflowInstanceLinks(
298                    int start, int end) {
299                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLinks(start,
300                            end);
301            }
302    
303            /**
304            * Returns the number of workflow instance links.
305            *
306            * @return the number of workflow instance links
307            */
308            @Override
309            public int getWorkflowInstanceLinksCount() {
310                    return _workflowInstanceLinkLocalService.getWorkflowInstanceLinksCount();
311            }
312    
313            @Override
314            public boolean hasWorkflowInstanceLink(long companyId, long groupId,
315                    java.lang.String className, long classPK) {
316                    return _workflowInstanceLinkLocalService.hasWorkflowInstanceLink(companyId,
317                            groupId, className, classPK);
318            }
319    
320            @Override
321            public boolean isEnded(long companyId, long groupId,
322                    java.lang.String className, long classPK)
323                    throws com.liferay.portal.kernel.exception.PortalException {
324                    return _workflowInstanceLinkLocalService.isEnded(companyId, groupId,
325                            className, classPK);
326            }
327    
328            @Override
329            public void startWorkflowInstance(long companyId, long groupId,
330                    long userId, java.lang.String className, long classPK,
331                    java.util.Map<java.lang.String, java.io.Serializable> workflowContext)
332                    throws com.liferay.portal.kernel.exception.PortalException {
333                    _workflowInstanceLinkLocalService.startWorkflowInstance(companyId,
334                            groupId, userId, className, classPK, workflowContext);
335            }
336    
337            @Override
338            public void updateClassPK(long companyId, long groupId,
339                    java.lang.String className, long oldClassPK, long newClassPK)
340                    throws com.liferay.portal.kernel.exception.PortalException {
341                    _workflowInstanceLinkLocalService.updateClassPK(companyId, groupId,
342                            className, oldClassPK, newClassPK);
343            }
344    
345            /**
346            * Updates the workflow instance link in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
347            *
348            * @param workflowInstanceLink the workflow instance link
349            * @return the workflow instance link that was updated
350            */
351            @Override
352            public com.liferay.portal.model.WorkflowInstanceLink updateWorkflowInstanceLink(
353                    com.liferay.portal.model.WorkflowInstanceLink workflowInstanceLink) {
354                    return _workflowInstanceLinkLocalService.updateWorkflowInstanceLink(workflowInstanceLink);
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    }