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