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