001    /**
002     * Copyright (c) 2000-2012 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    /**
018     * <p>
019     * This class is a wrapper for {@link SubscriptionLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       SubscriptionLocalService
024     * @generated
025     */
026    public class SubscriptionLocalServiceWrapper implements SubscriptionLocalService,
027            ServiceWrapper<SubscriptionLocalService> {
028            public SubscriptionLocalServiceWrapper(
029                    SubscriptionLocalService subscriptionLocalService) {
030                    _subscriptionLocalService = subscriptionLocalService;
031            }
032    
033            /**
034            * Adds the subscription to the database. Also notifies the appropriate model listeners.
035            *
036            * @param subscription the subscription
037            * @return the subscription that was added
038            * @throws SystemException if a system exception occurred
039            */
040            public com.liferay.portal.model.Subscription addSubscription(
041                    com.liferay.portal.model.Subscription subscription)
042                    throws com.liferay.portal.kernel.exception.SystemException {
043                    return _subscriptionLocalService.addSubscription(subscription);
044            }
045    
046            /**
047            * Creates a new subscription with the primary key. Does not add the subscription to the database.
048            *
049            * @param subscriptionId the primary key for the new subscription
050            * @return the new subscription
051            */
052            public com.liferay.portal.model.Subscription createSubscription(
053                    long subscriptionId) {
054                    return _subscriptionLocalService.createSubscription(subscriptionId);
055            }
056    
057            /**
058            * Deletes the subscription with the primary key from the database. Also notifies the appropriate model listeners.
059            *
060            * @param subscriptionId the primary key of the subscription
061            * @throws PortalException if a subscription with the primary key could not be found
062            * @throws SystemException if a system exception occurred
063            */
064            public void deleteSubscription(long subscriptionId)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    _subscriptionLocalService.deleteSubscription(subscriptionId);
068            }
069    
070            /**
071            * Deletes the subscription from the database. Also notifies the appropriate model listeners.
072            *
073            * @param subscription the subscription
074            * @throws PortalException
075            * @throws SystemException if a system exception occurred
076            */
077            public void deleteSubscription(
078                    com.liferay.portal.model.Subscription subscription)
079                    throws com.liferay.portal.kernel.exception.PortalException,
080                            com.liferay.portal.kernel.exception.SystemException {
081                    _subscriptionLocalService.deleteSubscription(subscription);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return _subscriptionLocalService.dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query
106            * @param start the lower bound of the range of model instances
107            * @param end the upper bound of the range of model instances (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return _subscriptionLocalService.dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query
126            * @param start the lower bound of the range of model instances
127            * @param end the upper bound of the range of model instances (not inclusive)
128            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return _subscriptionLocalService.dynamicQuery(dynamicQuery, start, end,
139                            orderByComparator);
140            }
141    
142            /**
143            * Returns the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _subscriptionLocalService.dynamicQueryCount(dynamicQuery);
153            }
154    
155            public com.liferay.portal.model.Subscription fetchSubscription(
156                    long subscriptionId)
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _subscriptionLocalService.fetchSubscription(subscriptionId);
159            }
160    
161            /**
162            * Returns the subscription with the primary key.
163            *
164            * @param subscriptionId the primary key of the subscription
165            * @return the subscription
166            * @throws PortalException if a subscription with the primary key could not be found
167            * @throws SystemException if a system exception occurred
168            */
169            public com.liferay.portal.model.Subscription getSubscription(
170                    long subscriptionId)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _subscriptionLocalService.getSubscription(subscriptionId);
174            }
175    
176            public com.liferay.portal.model.PersistedModel getPersistedModel(
177                    java.io.Serializable primaryKeyObj)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _subscriptionLocalService.getPersistedModel(primaryKeyObj);
181            }
182    
183            /**
184            * Returns a range of all the subscriptions.
185            *
186            * <p>
187            * 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.
188            * </p>
189            *
190            * @param start the lower bound of the range of subscriptions
191            * @param end the upper bound of the range of subscriptions (not inclusive)
192            * @return the range of subscriptions
193            * @throws SystemException if a system exception occurred
194            */
195            public java.util.List<com.liferay.portal.model.Subscription> getSubscriptions(
196                    int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException {
198                    return _subscriptionLocalService.getSubscriptions(start, end);
199            }
200    
201            /**
202            * Returns the number of subscriptions.
203            *
204            * @return the number of subscriptions
205            * @throws SystemException if a system exception occurred
206            */
207            public int getSubscriptionsCount()
208                    throws com.liferay.portal.kernel.exception.SystemException {
209                    return _subscriptionLocalService.getSubscriptionsCount();
210            }
211    
212            /**
213            * Updates the subscription in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
214            *
215            * @param subscription the subscription
216            * @return the subscription that was updated
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portal.model.Subscription updateSubscription(
220                    com.liferay.portal.model.Subscription subscription)
221                    throws com.liferay.portal.kernel.exception.SystemException {
222                    return _subscriptionLocalService.updateSubscription(subscription);
223            }
224    
225            /**
226            * Updates the subscription in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
227            *
228            * @param subscription the subscription
229            * @param merge whether to merge the subscription with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
230            * @return the subscription that was updated
231            * @throws SystemException if a system exception occurred
232            */
233            public com.liferay.portal.model.Subscription updateSubscription(
234                    com.liferay.portal.model.Subscription subscription, boolean merge)
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _subscriptionLocalService.updateSubscription(subscription, merge);
237            }
238    
239            /**
240            * Returns the Spring bean ID for this bean.
241            *
242            * @return the Spring bean ID for this bean
243            */
244            public java.lang.String getBeanIdentifier() {
245                    return _subscriptionLocalService.getBeanIdentifier();
246            }
247    
248            /**
249            * Sets the Spring bean ID for this bean.
250            *
251            * @param beanIdentifier the Spring bean ID for this bean
252            */
253            public void setBeanIdentifier(java.lang.String beanIdentifier) {
254                    _subscriptionLocalService.setBeanIdentifier(beanIdentifier);
255            }
256    
257            public com.liferay.portal.model.Subscription addSubscription(long userId,
258                    long groupId, java.lang.String className, long classPK)
259                    throws com.liferay.portal.kernel.exception.PortalException,
260                            com.liferay.portal.kernel.exception.SystemException {
261                    return _subscriptionLocalService.addSubscription(userId, groupId,
262                            className, classPK);
263            }
264    
265            public com.liferay.portal.model.Subscription addSubscription(long userId,
266                    long groupId, java.lang.String className, long classPK,
267                    java.lang.String frequency)
268                    throws com.liferay.portal.kernel.exception.PortalException,
269                            com.liferay.portal.kernel.exception.SystemException {
270                    return _subscriptionLocalService.addSubscription(userId, groupId,
271                            className, classPK, frequency);
272            }
273    
274            public void deleteSubscription(long userId, java.lang.String className,
275                    long classPK)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException {
278                    _subscriptionLocalService.deleteSubscription(userId, className, classPK);
279            }
280    
281            public void deleteSubscriptions(long userId)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException {
284                    _subscriptionLocalService.deleteSubscriptions(userId);
285            }
286    
287            public void deleteSubscriptions(long companyId, java.lang.String className,
288                    long classPK)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    _subscriptionLocalService.deleteSubscriptions(companyId, className,
292                            classPK);
293            }
294    
295            public com.liferay.portal.model.Subscription getSubscription(
296                    long companyId, long userId, java.lang.String className, long classPK)
297                    throws com.liferay.portal.kernel.exception.PortalException,
298                            com.liferay.portal.kernel.exception.SystemException {
299                    return _subscriptionLocalService.getSubscription(companyId, userId,
300                            className, classPK);
301            }
302    
303            public java.util.List<com.liferay.portal.model.Subscription> getSubscriptions(
304                    long companyId, java.lang.String className, long classPK)
305                    throws com.liferay.portal.kernel.exception.SystemException {
306                    return _subscriptionLocalService.getSubscriptions(companyId, className,
307                            classPK);
308            }
309    
310            public java.util.List<com.liferay.portal.model.Subscription> getUserSubscriptions(
311                    long userId, int start, int end,
312                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    return _subscriptionLocalService.getUserSubscriptions(userId, start,
315                            end, orderByComparator);
316            }
317    
318            public java.util.List<com.liferay.portal.model.Subscription> getUserSubscriptions(
319                    long userId, java.lang.String className)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _subscriptionLocalService.getUserSubscriptions(userId, className);
322            }
323    
324            public int getUserSubscriptionsCount(long userId)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    return _subscriptionLocalService.getUserSubscriptionsCount(userId);
327            }
328    
329            public boolean isSubscribed(long companyId, long userId,
330                    java.lang.String className, long classPK)
331                    throws com.liferay.portal.kernel.exception.SystemException {
332                    return _subscriptionLocalService.isSubscribed(companyId, userId,
333                            className, classPK);
334            }
335    
336            /**
337             * @deprecated Renamed to {@link #getWrappedService}
338             */
339            public SubscriptionLocalService getWrappedSubscriptionLocalService() {
340                    return _subscriptionLocalService;
341            }
342    
343            /**
344             * @deprecated Renamed to {@link #setWrappedService}
345             */
346            public void setWrappedSubscriptionLocalService(
347                    SubscriptionLocalService subscriptionLocalService) {
348                    _subscriptionLocalService = subscriptionLocalService;
349            }
350    
351            public SubscriptionLocalService getWrappedService() {
352                    return _subscriptionLocalService;
353            }
354    
355            public void setWrappedService(
356                    SubscriptionLocalService subscriptionLocalService) {
357                    _subscriptionLocalService = subscriptionLocalService;
358            }
359    
360            private SubscriptionLocalService _subscriptionLocalService;
361    }