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