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.portlet.wiki.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.service.ServiceWrapper;
020    
021    /**
022     * Provides a wrapper for {@link WikiPageResourceLocalService}.
023     *
024     * @author Brian Wing Shun Chan
025     * @see WikiPageResourceLocalService
026     * @generated
027     */
028    @ProviderType
029    public class WikiPageResourceLocalServiceWrapper
030            implements WikiPageResourceLocalService,
031                    ServiceWrapper<WikiPageResourceLocalService> {
032            public WikiPageResourceLocalServiceWrapper(
033                    WikiPageResourceLocalService wikiPageResourceLocalService) {
034                    _wikiPageResourceLocalService = wikiPageResourceLocalService;
035            }
036    
037            @Override
038            public com.liferay.portlet.wiki.model.WikiPageResource addPageResource(
039                    long nodeId, java.lang.String title) {
040                    return _wikiPageResourceLocalService.addPageResource(nodeId, title);
041            }
042    
043            /**
044            * Adds the wiki page resource to the database. Also notifies the appropriate model listeners.
045            *
046            * @param wikiPageResource the wiki page resource
047            * @return the wiki page resource that was added
048            */
049            @Override
050            public com.liferay.portlet.wiki.model.WikiPageResource addWikiPageResource(
051                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
052                    return _wikiPageResourceLocalService.addWikiPageResource(wikiPageResource);
053            }
054    
055            /**
056            * Creates a new wiki page resource with the primary key. Does not add the wiki page resource to the database.
057            *
058            * @param resourcePrimKey the primary key for the new wiki page resource
059            * @return the new wiki page resource
060            */
061            @Override
062            public com.liferay.portlet.wiki.model.WikiPageResource createWikiPageResource(
063                    long resourcePrimKey) {
064                    return _wikiPageResourceLocalService.createWikiPageResource(resourcePrimKey);
065            }
066    
067            @Override
068            public void deletePageResource(long nodeId, java.lang.String title)
069                    throws com.liferay.portal.kernel.exception.PortalException {
070                    _wikiPageResourceLocalService.deletePageResource(nodeId, title);
071            }
072    
073            /**
074            * @throws PortalException
075            */
076            @Override
077            public com.liferay.portal.model.PersistedModel deletePersistedModel(
078                    com.liferay.portal.model.PersistedModel persistedModel)
079                    throws com.liferay.portal.kernel.exception.PortalException {
080                    return _wikiPageResourceLocalService.deletePersistedModel(persistedModel);
081            }
082    
083            /**
084            * Deletes the wiki page resource with the primary key from the database. Also notifies the appropriate model listeners.
085            *
086            * @param resourcePrimKey the primary key of the wiki page resource
087            * @return the wiki page resource that was removed
088            * @throws PortalException if a wiki page resource with the primary key could not be found
089            */
090            @Override
091            public com.liferay.portlet.wiki.model.WikiPageResource deleteWikiPageResource(
092                    long resourcePrimKey)
093                    throws com.liferay.portal.kernel.exception.PortalException {
094                    return _wikiPageResourceLocalService.deleteWikiPageResource(resourcePrimKey);
095            }
096    
097            /**
098            * Deletes the wiki page resource from the database. Also notifies the appropriate model listeners.
099            *
100            * @param wikiPageResource the wiki page resource
101            * @return the wiki page resource that was removed
102            */
103            @Override
104            public com.liferay.portlet.wiki.model.WikiPageResource deleteWikiPageResource(
105                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
106                    return _wikiPageResourceLocalService.deleteWikiPageResource(wikiPageResource);
107            }
108    
109            @Override
110            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
111                    return _wikiPageResourceLocalService.dynamicQuery();
112            }
113    
114            /**
115            * Performs a dynamic query on the database and returns the matching rows.
116            *
117            * @param dynamicQuery the dynamic query
118            * @return the matching rows
119            */
120            @Override
121            public <T> java.util.List<T> dynamicQuery(
122                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
123                    return _wikiPageResourceLocalService.dynamicQuery(dynamicQuery);
124            }
125    
126            /**
127            * Performs a dynamic query on the database and returns a range of the matching rows.
128            *
129            * <p>
130            * 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.portlet.wiki.model.impl.WikiPageResourceModelImpl}. 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.
131            * </p>
132            *
133            * @param dynamicQuery the dynamic query
134            * @param start the lower bound of the range of model instances
135            * @param end the upper bound of the range of model instances (not inclusive)
136            * @return the range of matching rows
137            */
138            @Override
139            public <T> java.util.List<T> dynamicQuery(
140                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141                    int end) {
142                    return _wikiPageResourceLocalService.dynamicQuery(dynamicQuery, start,
143                            end);
144            }
145    
146            /**
147            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
148            *
149            * <p>
150            * 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.portlet.wiki.model.impl.WikiPageResourceModelImpl}. 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.
151            * </p>
152            *
153            * @param dynamicQuery the dynamic query
154            * @param start the lower bound of the range of model instances
155            * @param end the upper bound of the range of model instances (not inclusive)
156            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
157            * @return the ordered range of matching rows
158            */
159            @Override
160            public <T> java.util.List<T> dynamicQuery(
161                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
162                    int end,
163                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
164                    return _wikiPageResourceLocalService.dynamicQuery(dynamicQuery, start,
165                            end, orderByComparator);
166            }
167    
168            /**
169            * Returns the number of rows matching the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @return the number of rows matching the dynamic query
173            */
174            @Override
175            public long dynamicQueryCount(
176                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
177                    return _wikiPageResourceLocalService.dynamicQueryCount(dynamicQuery);
178            }
179    
180            /**
181            * Returns the number of rows matching the dynamic query.
182            *
183            * @param dynamicQuery the dynamic query
184            * @param projection the projection to apply to the 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                    com.liferay.portal.kernel.dao.orm.Projection projection) {
191                    return _wikiPageResourceLocalService.dynamicQueryCount(dynamicQuery,
192                            projection);
193            }
194    
195            @Override
196            public com.liferay.portlet.wiki.model.WikiPageResource fetchPageResource(
197                    long nodeId, java.lang.String title) {
198                    return _wikiPageResourceLocalService.fetchPageResource(nodeId, title);
199            }
200    
201            @Override
202            public com.liferay.portlet.wiki.model.WikiPageResource fetchPageResource(
203                    java.lang.String uuid) {
204                    return _wikiPageResourceLocalService.fetchPageResource(uuid);
205            }
206    
207            @Override
208            public com.liferay.portlet.wiki.model.WikiPageResource fetchWikiPageResource(
209                    long resourcePrimKey) {
210                    return _wikiPageResourceLocalService.fetchWikiPageResource(resourcePrimKey);
211            }
212    
213            @Override
214            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
215                    return _wikiPageResourceLocalService.getActionableDynamicQuery();
216            }
217    
218            /**
219            * Returns the Spring bean ID for this bean.
220            *
221            * @return the Spring bean ID for this bean
222            */
223            @Override
224            public java.lang.String getBeanIdentifier() {
225                    return _wikiPageResourceLocalService.getBeanIdentifier();
226            }
227    
228            @Override
229            public com.liferay.portlet.wiki.model.WikiPageResource getPageResource(
230                    long nodeId, java.lang.String title)
231                    throws com.liferay.portal.kernel.exception.PortalException {
232                    return _wikiPageResourceLocalService.getPageResource(nodeId, title);
233            }
234    
235            @Override
236            public com.liferay.portlet.wiki.model.WikiPageResource getPageResource(
237                    long pageResourcePrimKey)
238                    throws com.liferay.portal.kernel.exception.PortalException {
239                    return _wikiPageResourceLocalService.getPageResource(pageResourcePrimKey);
240            }
241    
242            @Override
243            public long getPageResourcePrimKey(long nodeId, java.lang.String title) {
244                    return _wikiPageResourceLocalService.getPageResourcePrimKey(nodeId,
245                            title);
246            }
247    
248            @Override
249            public com.liferay.portal.model.PersistedModel getPersistedModel(
250                    java.io.Serializable primaryKeyObj)
251                    throws com.liferay.portal.kernel.exception.PortalException {
252                    return _wikiPageResourceLocalService.getPersistedModel(primaryKeyObj);
253            }
254    
255            /**
256            * Returns the wiki page resource with the primary key.
257            *
258            * @param resourcePrimKey the primary key of the wiki page resource
259            * @return the wiki page resource
260            * @throws PortalException if a wiki page resource with the primary key could not be found
261            */
262            @Override
263            public com.liferay.portlet.wiki.model.WikiPageResource getWikiPageResource(
264                    long resourcePrimKey)
265                    throws com.liferay.portal.kernel.exception.PortalException {
266                    return _wikiPageResourceLocalService.getWikiPageResource(resourcePrimKey);
267            }
268    
269            /**
270            * Returns a range of all the wiki page resources.
271            *
272            * <p>
273            * 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.portlet.wiki.model.impl.WikiPageResourceModelImpl}. 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.
274            * </p>
275            *
276            * @param start the lower bound of the range of wiki page resources
277            * @param end the upper bound of the range of wiki page resources (not inclusive)
278            * @return the range of wiki page resources
279            */
280            @Override
281            public java.util.List<com.liferay.portlet.wiki.model.WikiPageResource> getWikiPageResources(
282                    int start, int end) {
283                    return _wikiPageResourceLocalService.getWikiPageResources(start, end);
284            }
285    
286            /**
287            * Returns the number of wiki page resources.
288            *
289            * @return the number of wiki page resources
290            */
291            @Override
292            public int getWikiPageResourcesCount() {
293                    return _wikiPageResourceLocalService.getWikiPageResourcesCount();
294            }
295    
296            /**
297            * Sets the Spring bean ID for this bean.
298            *
299            * @param beanIdentifier the Spring bean ID for this bean
300            */
301            @Override
302            public void setBeanIdentifier(java.lang.String beanIdentifier) {
303                    _wikiPageResourceLocalService.setBeanIdentifier(beanIdentifier);
304            }
305    
306            /**
307            * Updates the wiki page resource in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
308            *
309            * @param wikiPageResource the wiki page resource
310            * @return the wiki page resource that was updated
311            */
312            @Override
313            public com.liferay.portlet.wiki.model.WikiPageResource updateWikiPageResource(
314                    com.liferay.portlet.wiki.model.WikiPageResource wikiPageResource) {
315                    return _wikiPageResourceLocalService.updateWikiPageResource(wikiPageResource);
316            }
317    
318            /**
319             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
320             */
321            @Deprecated
322            public WikiPageResourceLocalService getWrappedWikiPageResourceLocalService() {
323                    return _wikiPageResourceLocalService;
324            }
325    
326            /**
327             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
328             */
329            @Deprecated
330            public void setWrappedWikiPageResourceLocalService(
331                    WikiPageResourceLocalService wikiPageResourceLocalService) {
332                    _wikiPageResourceLocalService = wikiPageResourceLocalService;
333            }
334    
335            @Override
336            public WikiPageResourceLocalService getWrappedService() {
337                    return _wikiPageResourceLocalService;
338            }
339    
340            @Override
341            public void setWrappedService(
342                    WikiPageResourceLocalService wikiPageResourceLocalService) {
343                    _wikiPageResourceLocalService = wikiPageResourceLocalService;
344            }
345    
346            private WikiPageResourceLocalService _wikiPageResourceLocalService;
347    }