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.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            * Updates the subscription in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param subscription the subscription
236            * @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.
237            * @return the subscription that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portal.model.Subscription updateSubscription(
241                    com.liferay.portal.model.Subscription subscription, boolean merge)
242                    throws com.liferay.portal.kernel.exception.SystemException {
243                    return _subscriptionLocalService.updateSubscription(subscription, merge);
244            }
245    
246            /**
247            * Returns the Spring bean ID for this bean.
248            *
249            * @return the Spring bean ID for this bean
250            */
251            public java.lang.String getBeanIdentifier() {
252                    return _subscriptionLocalService.getBeanIdentifier();
253            }
254    
255            /**
256            * Sets the Spring bean ID for this bean.
257            *
258            * @param beanIdentifier the Spring bean ID for this bean
259            */
260            public void setBeanIdentifier(java.lang.String beanIdentifier) {
261                    _subscriptionLocalService.setBeanIdentifier(beanIdentifier);
262            }
263    
264            public com.liferay.portal.model.Subscription addSubscription(long userId,
265                    long groupId, java.lang.String className, long classPK)
266                    throws com.liferay.portal.kernel.exception.PortalException,
267                            com.liferay.portal.kernel.exception.SystemException {
268                    return _subscriptionLocalService.addSubscription(userId, groupId,
269                            className, classPK);
270            }
271    
272            public com.liferay.portal.model.Subscription addSubscription(long userId,
273                    long groupId, java.lang.String className, long classPK,
274                    java.lang.String frequency)
275                    throws com.liferay.portal.kernel.exception.PortalException,
276                            com.liferay.portal.kernel.exception.SystemException {
277                    return _subscriptionLocalService.addSubscription(userId, groupId,
278                            className, classPK, frequency);
279            }
280    
281            public void deleteSubscription(long userId, java.lang.String className,
282                    long classPK)
283                    throws com.liferay.portal.kernel.exception.PortalException,
284                            com.liferay.portal.kernel.exception.SystemException {
285                    _subscriptionLocalService.deleteSubscription(userId, className, classPK);
286            }
287    
288            public void deleteSubscriptions(long userId)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException {
291                    _subscriptionLocalService.deleteSubscriptions(userId);
292            }
293    
294            public void deleteSubscriptions(long companyId, java.lang.String className,
295                    long classPK)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException {
298                    _subscriptionLocalService.deleteSubscriptions(companyId, className,
299                            classPK);
300            }
301    
302            public com.liferay.portal.model.Subscription getSubscription(
303                    long companyId, long userId, java.lang.String className, long classPK)
304                    throws com.liferay.portal.kernel.exception.PortalException,
305                            com.liferay.portal.kernel.exception.SystemException {
306                    return _subscriptionLocalService.getSubscription(companyId, userId,
307                            className, classPK);
308            }
309    
310            public java.util.List<com.liferay.portal.model.Subscription> getSubscriptions(
311                    long companyId, java.lang.String className, long classPK)
312                    throws com.liferay.portal.kernel.exception.SystemException {
313                    return _subscriptionLocalService.getSubscriptions(companyId, className,
314                            classPK);
315            }
316    
317            public java.util.List<com.liferay.portal.model.Subscription> getUserSubscriptions(
318                    long userId, int start, int end,
319                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320                    throws com.liferay.portal.kernel.exception.SystemException {
321                    return _subscriptionLocalService.getUserSubscriptions(userId, start,
322                            end, orderByComparator);
323            }
324    
325            public java.util.List<com.liferay.portal.model.Subscription> getUserSubscriptions(
326                    long userId, java.lang.String className)
327                    throws com.liferay.portal.kernel.exception.SystemException {
328                    return _subscriptionLocalService.getUserSubscriptions(userId, className);
329            }
330    
331            public int getUserSubscriptionsCount(long userId)
332                    throws com.liferay.portal.kernel.exception.SystemException {
333                    return _subscriptionLocalService.getUserSubscriptionsCount(userId);
334            }
335    
336            public boolean isSubscribed(long companyId, long userId,
337                    java.lang.String className, long classPK)
338                    throws com.liferay.portal.kernel.exception.SystemException {
339                    return _subscriptionLocalService.isSubscribed(companyId, userId,
340                            className, classPK);
341            }
342    
343            /**
344             * @deprecated Renamed to {@link #getWrappedService}
345             */
346            public SubscriptionLocalService getWrappedSubscriptionLocalService() {
347                    return _subscriptionLocalService;
348            }
349    
350            /**
351             * @deprecated Renamed to {@link #setWrappedService}
352             */
353            public void setWrappedSubscriptionLocalService(
354                    SubscriptionLocalService subscriptionLocalService) {
355                    _subscriptionLocalService = subscriptionLocalService;
356            }
357    
358            public SubscriptionLocalService getWrappedService() {
359                    return _subscriptionLocalService;
360            }
361    
362            public void setWrappedService(
363                    SubscriptionLocalService subscriptionLocalService) {
364                    _subscriptionLocalService = subscriptionLocalService;
365            }
366    
367            private SubscriptionLocalService _subscriptionLocalService;
368    }