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