001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.social.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link SocialActivityCounterLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SocialActivityCounterLocalService
026     * @generated
027     */
028    public class SocialActivityCounterLocalServiceWrapper
029            implements SocialActivityCounterLocalService,
030                    ServiceWrapper<SocialActivityCounterLocalService> {
031            public SocialActivityCounterLocalServiceWrapper(
032                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
033                    _socialActivityCounterLocalService = socialActivityCounterLocalService;
034            }
035    
036            /**
037            * Adds the social activity counter to the database. Also notifies the appropriate model listeners.
038            *
039            * @param socialActivityCounter the social activity counter
040            * @return the social activity counter that was added
041            * @throws SystemException if a system exception occurred
042            */
043            public com.liferay.portlet.social.model.SocialActivityCounter addSocialActivityCounter(
044                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
045                    throws com.liferay.portal.kernel.exception.SystemException {
046                    return _socialActivityCounterLocalService.addSocialActivityCounter(socialActivityCounter);
047            }
048    
049            /**
050            * Creates a new social activity counter with the primary key. Does not add the social activity counter to the database.
051            *
052            * @param activityCounterId the primary key for the new social activity counter
053            * @return the new social activity counter
054            */
055            public com.liferay.portlet.social.model.SocialActivityCounter createSocialActivityCounter(
056                    long activityCounterId) {
057                    return _socialActivityCounterLocalService.createSocialActivityCounter(activityCounterId);
058            }
059    
060            /**
061            * Deletes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param activityCounterId the primary key of the social activity counter
064            * @throws PortalException if a social activity counter with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public void deleteSocialActivityCounter(long activityCounterId)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    _socialActivityCounterLocalService.deleteSocialActivityCounter(activityCounterId);
071            }
072    
073            /**
074            * Deletes the social activity counter from the database. Also notifies the appropriate model listeners.
075            *
076            * @param socialActivityCounter the social activity counter
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteSocialActivityCounter(
080                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
081                    throws com.liferay.portal.kernel.exception.SystemException {
082                    _socialActivityCounterLocalService.deleteSocialActivityCounter(socialActivityCounter);
083            }
084    
085            /**
086            * Performs a dynamic query on the database and returns the matching rows.
087            *
088            * @param dynamicQuery the dynamic query
089            * @return the matching rows
090            * @throws SystemException if a system exception occurred
091            */
092            @SuppressWarnings("rawtypes")
093            public java.util.List dynamicQuery(
094                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
095                    throws com.liferay.portal.kernel.exception.SystemException {
096                    return _socialActivityCounterLocalService.dynamicQuery(dynamicQuery);
097            }
098    
099            /**
100            * Performs a dynamic query on the database and returns a range of the matching rows.
101            *
102            * <p>
103            * 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.
104            * </p>
105            *
106            * @param dynamicQuery the dynamic query
107            * @param start the lower bound of the range of model instances
108            * @param end the upper bound of the range of model instances (not inclusive)
109            * @return the range of matching rows
110            * @throws SystemException if a system exception occurred
111            */
112            @SuppressWarnings("rawtypes")
113            public java.util.List dynamicQuery(
114                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115                    int end) throws com.liferay.portal.kernel.exception.SystemException {
116                    return _socialActivityCounterLocalService.dynamicQuery(dynamicQuery,
117                            start, end);
118            }
119    
120            /**
121            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
122            *
123            * <p>
124            * 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.
125            * </p>
126            *
127            * @param dynamicQuery the dynamic query
128            * @param start the lower bound of the range of model instances
129            * @param end the upper bound of the range of model instances (not inclusive)
130            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
131            * @return the ordered range of matching rows
132            * @throws SystemException if a system exception occurred
133            */
134            @SuppressWarnings("rawtypes")
135            public java.util.List dynamicQuery(
136                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137                    int end,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException {
140                    return _socialActivityCounterLocalService.dynamicQuery(dynamicQuery,
141                            start, end, orderByComparator);
142            }
143    
144            /**
145            * Returns the number of rows that match the dynamic query.
146            *
147            * @param dynamicQuery the dynamic query
148            * @return the number of rows that match the dynamic query
149            * @throws SystemException if a system exception occurred
150            */
151            public long dynamicQueryCount(
152                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153                    throws com.liferay.portal.kernel.exception.SystemException {
154                    return _socialActivityCounterLocalService.dynamicQueryCount(dynamicQuery);
155            }
156    
157            public com.liferay.portlet.social.model.SocialActivityCounter fetchSocialActivityCounter(
158                    long activityCounterId)
159                    throws com.liferay.portal.kernel.exception.SystemException {
160                    return _socialActivityCounterLocalService.fetchSocialActivityCounter(activityCounterId);
161            }
162    
163            /**
164            * Returns the social activity counter with the primary key.
165            *
166            * @param activityCounterId the primary key of the social activity counter
167            * @return the social activity counter
168            * @throws PortalException if a social activity counter with the primary key could not be found
169            * @throws SystemException if a system exception occurred
170            */
171            public com.liferay.portlet.social.model.SocialActivityCounter getSocialActivityCounter(
172                    long activityCounterId)
173                    throws com.liferay.portal.kernel.exception.PortalException,
174                            com.liferay.portal.kernel.exception.SystemException {
175                    return _socialActivityCounterLocalService.getSocialActivityCounter(activityCounterId);
176            }
177    
178            public com.liferay.portal.model.PersistedModel getPersistedModel(
179                    java.io.Serializable primaryKeyObj)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return _socialActivityCounterLocalService.getPersistedModel(primaryKeyObj);
183            }
184    
185            /**
186            * Returns a range of all the social activity counters.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of social activity counters
193            * @param end the upper bound of the range of social activity counters (not inclusive)
194            * @return the range of social activity counters
195            * @throws SystemException if a system exception occurred
196            */
197            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getSocialActivityCounters(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return _socialActivityCounterLocalService.getSocialActivityCounters(start,
201                            end);
202            }
203    
204            /**
205            * Returns the number of social activity counters.
206            *
207            * @return the number of social activity counters
208            * @throws SystemException if a system exception occurred
209            */
210            public int getSocialActivityCountersCount()
211                    throws com.liferay.portal.kernel.exception.SystemException {
212                    return _socialActivityCounterLocalService.getSocialActivityCountersCount();
213            }
214    
215            /**
216            * Updates the social activity counter in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
217            *
218            * @param socialActivityCounter the social activity counter
219            * @return the social activity counter that was updated
220            * @throws SystemException if a system exception occurred
221            */
222            public com.liferay.portlet.social.model.SocialActivityCounter updateSocialActivityCounter(
223                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
224                    throws com.liferay.portal.kernel.exception.SystemException {
225                    return _socialActivityCounterLocalService.updateSocialActivityCounter(socialActivityCounter);
226            }
227    
228            /**
229            * Updates the social activity counter in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
230            *
231            * @param socialActivityCounter the social activity counter
232            * @param merge whether to merge the social activity counter 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.
233            * @return the social activity counter that was updated
234            * @throws SystemException if a system exception occurred
235            */
236            public com.liferay.portlet.social.model.SocialActivityCounter updateSocialActivityCounter(
237                    com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter,
238                    boolean merge)
239                    throws com.liferay.portal.kernel.exception.SystemException {
240                    return _socialActivityCounterLocalService.updateSocialActivityCounter(socialActivityCounter,
241                            merge);
242            }
243    
244            /**
245            * Returns the Spring bean ID for this bean.
246            *
247            * @return the Spring bean ID for this bean
248            */
249            public java.lang.String getBeanIdentifier() {
250                    return _socialActivityCounterLocalService.getBeanIdentifier();
251            }
252    
253            /**
254            * Sets the Spring bean ID for this bean.
255            *
256            * @param beanIdentifier the Spring bean ID for this bean
257            */
258            public void setBeanIdentifier(java.lang.String beanIdentifier) {
259                    _socialActivityCounterLocalService.setBeanIdentifier(beanIdentifier);
260            }
261    
262            public com.liferay.portlet.social.model.SocialActivityCounter addActivityCounter(
263                    long groupId, long classNameId, long classPK, java.lang.String name,
264                    int ownerType, int currentValue, int totalValue)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException {
267                    return _socialActivityCounterLocalService.addActivityCounter(groupId,
268                            classNameId, classPK, name, ownerType, currentValue, totalValue);
269            }
270    
271            public void addActivityCounters(
272                    com.liferay.portlet.social.model.SocialActivity activity)
273                    throws com.liferay.portal.kernel.exception.PortalException,
274                            com.liferay.portal.kernel.exception.SystemException {
275                    _socialActivityCounterLocalService.addActivityCounters(activity);
276            }
277    
278            public void deleteActivityCounters(
279                    com.liferay.portlet.asset.model.AssetEntry assetEntry)
280                    throws com.liferay.portal.kernel.exception.PortalException,
281                            com.liferay.portal.kernel.exception.SystemException {
282                    _socialActivityCounterLocalService.deleteActivityCounters(assetEntry);
283            }
284    
285            public void deleteActivityCounters(long classNameId, long classPK)
286                    throws com.liferay.portal.kernel.exception.SystemException {
287                    _socialActivityCounterLocalService.deleteActivityCounters(classNameId,
288                            classPK);
289            }
290    
291            public com.liferay.portlet.social.model.SocialActivityCounter fetchLatestActivityCounter(
292                    long groupId, long classNameId, long classPK, java.lang.String name,
293                    int ownerType)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    return _socialActivityCounterLocalService.fetchLatestActivityCounter(groupId,
296                            classNameId, classPK, name, ownerType);
297            }
298    
299            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounterDistribution(
300                    long groupId, java.lang.String name, int offset,
301                    boolean includeCurrentPeriod)
302                    throws com.liferay.portal.kernel.exception.SystemException {
303                    return _socialActivityCounterLocalService.getActivityCounterDistribution(groupId,
304                            name, offset, includeCurrentPeriod);
305            }
306    
307            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounterDistribution(
308                    long groupId, java.lang.String name, int startPeriod, int endPeriod)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    return _socialActivityCounterLocalService.getActivityCounterDistribution(groupId,
311                            name, startPeriod, endPeriod);
312            }
313    
314            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounters(
315                    long groupId, java.lang.String name, int offset,
316                    boolean includeCurrentPeriod)
317                    throws com.liferay.portal.kernel.exception.SystemException {
318                    return _socialActivityCounterLocalService.getActivityCounters(groupId,
319                            name, offset, includeCurrentPeriod);
320            }
321    
322            public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getActivityCounters(
323                    long groupId, java.lang.String name, int startPeriod, int endPeriod)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _socialActivityCounterLocalService.getActivityCounters(groupId,
326                            name, startPeriod, endPeriod);
327            }
328    
329            public com.liferay.portlet.social.model.SocialActivityCounter getLatestActivityCounter(
330                    long groupId, long classNameId, long classPK, java.lang.String name,
331                    int ownerType)
332                    throws com.liferay.portal.kernel.exception.SystemException,
333                            com.liferay.portlet.social.NoSuchActivityCounterException {
334                    return _socialActivityCounterLocalService.getLatestActivityCounter(groupId,
335                            classNameId, classPK, name, ownerType);
336            }
337    
338            public int getUserActivityCounters(long groupId,
339                    java.lang.String[] rankingNames)
340                    throws com.liferay.portal.kernel.exception.SystemException {
341                    return _socialActivityCounterLocalService.getUserActivityCounters(groupId,
342                            rankingNames);
343            }
344    
345            public java.util.List<com.liferay.portal.kernel.util.Tuple> getUserActivityCounters(
346                    long groupId, java.lang.String[] rankingNames,
347                    java.lang.String[] selectedNames, int start, int end)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _socialActivityCounterLocalService.getUserActivityCounters(groupId,
350                            rankingNames, selectedNames, start, end);
351            }
352    
353            public void incrementUserAchievementCounter(long userId, long groupId)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    _socialActivityCounterLocalService.incrementUserAchievementCounter(userId,
357                            groupId);
358            }
359    
360            /**
361             * @deprecated Renamed to {@link #getWrappedService}
362             */
363            public SocialActivityCounterLocalService getWrappedSocialActivityCounterLocalService() {
364                    return _socialActivityCounterLocalService;
365            }
366    
367            /**
368             * @deprecated Renamed to {@link #setWrappedService}
369             */
370            public void setWrappedSocialActivityCounterLocalService(
371                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
372                    _socialActivityCounterLocalService = socialActivityCounterLocalService;
373            }
374    
375            public SocialActivityCounterLocalService getWrappedService() {
376                    return _socialActivityCounterLocalService;
377            }
378    
379            public void setWrappedService(
380                    SocialActivityCounterLocalService socialActivityCounterLocalService) {
381                    _socialActivityCounterLocalService = socialActivityCounterLocalService;
382            }
383    
384            private SocialActivityCounterLocalService _socialActivityCounterLocalService;
385    }