All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portlet.social.service.SocialActivityCounterLocalServiceWrapper Maven / Gradle / Ivy

Go to download

Contains interfaces for the portal services. Interfaces are only loaded by the global class loader and are shared by all plugins.

There is a newer version: 7.0.0-nightly
Show newest version
/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portlet.social.service;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.service.ServiceWrapper;

/**
 * Provides a wrapper for {@link SocialActivityCounterLocalService}.
 *
 * @author Brian Wing Shun Chan
 * @see SocialActivityCounterLocalService
 * @generated
 */
@ProviderType
public class SocialActivityCounterLocalServiceWrapper
	implements SocialActivityCounterLocalService,
		ServiceWrapper {
	public SocialActivityCounterLocalServiceWrapper(
		SocialActivityCounterLocalService socialActivityCounterLocalService) {
		_socialActivityCounterLocalService = socialActivityCounterLocalService;
	}

	/**
	* Adds the social activity counter to the database. Also notifies the appropriate model listeners.
	*
	* @param socialActivityCounter the social activity counter
	* @return the social activity counter that was added
	* @throws SystemException if a system exception occurred
	*/
	@Override
	public com.liferay.portlet.social.model.SocialActivityCounter addSocialActivityCounter(
		com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _socialActivityCounterLocalService.addSocialActivityCounter(socialActivityCounter);
	}

	/**
	* Creates a new social activity counter with the primary key. Does not add the social activity counter to the database.
	*
	* @param activityCounterId the primary key for the new social activity counter
	* @return the new social activity counter
	*/
	@Override
	public com.liferay.portlet.social.model.SocialActivityCounter createSocialActivityCounter(
		long activityCounterId) {
		return _socialActivityCounterLocalService.createSocialActivityCounter(activityCounterId);
	}

	/**
	* Deletes the social activity counter with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param activityCounterId the primary key of the social activity counter
	* @return the social activity counter that was removed
	* @throws PortalException if a social activity counter with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	@Override
	public com.liferay.portlet.social.model.SocialActivityCounter deleteSocialActivityCounter(
		long activityCounterId)
		throws com.liferay.portal.kernel.exception.PortalException,
			com.liferay.portal.kernel.exception.SystemException {
		return _socialActivityCounterLocalService.deleteSocialActivityCounter(activityCounterId);
	}

	/**
	* Deletes the social activity counter from the database. Also notifies the appropriate model listeners.
	*
	* @param socialActivityCounter the social activity counter
	* @return the social activity counter that was removed
	* @throws SystemException if a system exception occurred
	*/
	@Override
	public com.liferay.portlet.social.model.SocialActivityCounter deleteSocialActivityCounter(
		com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _socialActivityCounterLocalService.deleteSocialActivityCounter(socialActivityCounter);
	}

	@Override
	public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
		return _socialActivityCounterLocalService.dynamicQuery();
	}

	/**
	* Performs a dynamic query on the database and returns the matching rows.
	*
	* @param dynamicQuery the dynamic query
	* @return the matching rows
	* @throws SystemException if a system exception occurred
	*/
	@Override
	@SuppressWarnings("rawtypes")
	public java.util.List dynamicQuery(
		com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
		throws com.liferay.portal.kernel.exception.SystemException {
		return _socialActivityCounterLocalService.dynamicQuery(dynamicQuery);
	}

	/**
	* Performs a dynamic query on the database and returns a range of the matching rows.
	*
	* 

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.social.model.impl.SocialActivityCounterModelImpl}. If both orderByComparator 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. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @return the range of matching rows * @throws SystemException if a system exception occurred */ @Override @SuppressWarnings("rawtypes") public java.util.List dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.dynamicQuery(dynamicQuery, start, end); } /** * Performs a dynamic query on the database and returns an ordered range of the matching rows. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.social.model.impl.SocialActivityCounterModelImpl}. If both orderByComparator 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. *

* * @param dynamicQuery the dynamic query * @param start the lower bound of the range of model instances * @param end the upper bound of the range of model instances (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching rows * @throws SystemException if a system exception occurred */ @Override @SuppressWarnings("rawtypes") public java.util.List dynamicQuery( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.dynamicQuery(dynamicQuery, start, end, orderByComparator); } /** * Returns the number of rows that match the dynamic query. * * @param dynamicQuery the dynamic query * @return the number of rows that match the dynamic query * @throws SystemException if a system exception occurred */ @Override public long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.dynamicQueryCount(dynamicQuery); } /** * Returns the number of rows that match the dynamic query. * * @param dynamicQuery the dynamic query * @param projection the projection to apply to the query * @return the number of rows that match the dynamic query * @throws SystemException if a system exception occurred */ @Override public long dynamicQueryCount( com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.dynamicQueryCount(dynamicQuery, projection); } @Override public com.liferay.portlet.social.model.SocialActivityCounter fetchSocialActivityCounter( long activityCounterId) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.fetchSocialActivityCounter(activityCounterId); } /** * Returns the social activity counter with the primary key. * * @param activityCounterId the primary key of the social activity counter * @return the social activity counter * @throws PortalException if a social activity counter with the primary key could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.social.model.SocialActivityCounter getSocialActivityCounter( long activityCounterId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getSocialActivityCounter(activityCounterId); } @Override public com.liferay.portal.model.PersistedModel getPersistedModel( java.io.Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getPersistedModel(primaryKeyObj); } /** * Returns a range of all the social activity counters. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end 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.social.model.impl.SocialActivityCounterModelImpl}. If both orderByComparator 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. *

* * @param start the lower bound of the range of social activity counters * @param end the upper bound of the range of social activity counters (not inclusive) * @return the range of social activity counters * @throws SystemException if a system exception occurred */ @Override public java.util.List getSocialActivityCounters( int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getSocialActivityCounters(start, end); } /** * Returns the number of social activity counters. * * @return the number of social activity counters * @throws SystemException if a system exception occurred */ @Override public int getSocialActivityCountersCount() throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getSocialActivityCountersCount(); } /** * Updates the social activity counter in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param socialActivityCounter the social activity counter * @return the social activity counter that was updated * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.social.model.SocialActivityCounter updateSocialActivityCounter( com.liferay.portlet.social.model.SocialActivityCounter socialActivityCounter) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.updateSocialActivityCounter(socialActivityCounter); } /** * Returns the Spring bean ID for this bean. * * @return the Spring bean ID for this bean */ @Override public java.lang.String getBeanIdentifier() { return _socialActivityCounterLocalService.getBeanIdentifier(); } /** * Sets the Spring bean ID for this bean. * * @param beanIdentifier the Spring bean ID for this bean */ @Override public void setBeanIdentifier(java.lang.String beanIdentifier) { _socialActivityCounterLocalService.setBeanIdentifier(beanIdentifier); } /** * Adds an activity counter with a default period length. * *

* This method uses the lock service to guard against multiple threads * trying to insert the same counter because this service is called * asynchronously from the social activity service. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class this counter belongs to * @param classPK the primary key of the entity this counter belongs to * @param name the counter's name * @param ownerType the counter's owner type. Acceptable values are TYPE_ACTOR, TYPE_ASSET and TYPE_CREATOR defined in {@link com.liferay.portlet.social.model.SocialActivityCounterConstants}. * @param currentValue the counter's current value (optionally 0) * @param totalValue the counter's total value (optionally 0) * @param startPeriod the counter's start period * @param endPeriod the counter's end period * @return the added activity counter * @throws PortalException if the group or the previous activity counter could not be found * @throws SystemException if a system exception occurred * @deprecated As of 6.2.0, replaced by {@link #addActivityCounter(long, long, long, String, int, int, long, int)} */ @Override public com.liferay.portlet.social.model.SocialActivityCounter addActivityCounter( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType, int currentValue, int totalValue, int startPeriod, int endPeriod) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.addActivityCounter(groupId, classNameId, classPK, name, ownerType, currentValue, totalValue, startPeriod, endPeriod); } /** * Adds an activity counter specifying a previous activity and period * length. * *

* This method uses the lock service to guard against multiple threads * trying to insert the same counter because this service is called * asynchronously from the social activity service. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class this counter belongs to * @param classPK the primary key of the entity this counter belongs to * @param name the counter name * @param ownerType the counter's owner type. Acceptable values are TYPE_ACTOR, TYPE_ASSET and TYPE_CREATOR defined in {@link com.liferay.portlet.social.model.SocialActivityCounterConstants}. * @param currentValue the current value of the counter (optionally 0) * @param totalValue the counter's total value (optionally 0) * @param startPeriod the counter's start period * @param endPeriod the counter's end period * @param previousActivityCounterId the primary key of the activity counter for the previous time period (optionally 0, if this is the first) * @param periodLength the period length in days, PERIOD_LENGTH_INFINITE for never ending counters or PERIOD_LENGTH_SYSTEM for the period length defined in portal-ext.properties. For more information see {@link com.liferay.portlet.social.model.SocialActivityCounterConstants}. * @return the added activity counter * @throws PortalException if the group or the previous activity counter could not be found * @throws SystemException if a system exception occurred * @deprecated As of 6.2.0, replaced by {@link #addActivityCounter(long, long, long, String, int, int, long, int)} */ @Override public com.liferay.portlet.social.model.SocialActivityCounter addActivityCounter( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType, int currentValue, int totalValue, int startPeriod, int endPeriod, long previousActivityCounterId, int periodLength) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.addActivityCounter(groupId, classNameId, classPK, name, ownerType, currentValue, totalValue, startPeriod, endPeriod, previousActivityCounterId, periodLength); } /** * Adds an activity counter specifying a previous activity and period * length. * *

* This method uses the lock service to guard against multiple threads * trying to insert the same counter because this service is called * asynchronously from the social activity service. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class this counter belongs to * @param classPK the primary key of the entity this counter belongs to * @param name the counter name * @param ownerType the counter's owner type. Acceptable values are TYPE_ACTOR, TYPE_ASSET and TYPE_CREATOR defined in {@link com.liferay.portlet.social.model.SocialActivityCounterConstants}. * @param totalValue the counter's total value (optionally 0) * @param previousActivityCounterId the primary key of the activity counter for the previous time period (optionally 0, if this is the first) * @param periodLength the period length in days, PERIOD_LENGTH_INFINITE for never ending counters or PERIOD_LENGTH_SYSTEM for the period length defined in portal-ext.properties. For more information see {@link com.liferay.portlet.social.model.SocialActivityCounterConstants}. * @return the added activity counter * @throws PortalException if the group or the previous activity counter could not be found * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.social.model.SocialActivityCounter addActivityCounter( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType, int totalValue, long previousActivityCounterId, int periodLength) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.addActivityCounter(groupId, classNameId, classPK, name, ownerType, totalValue, previousActivityCounterId, periodLength); } /** * Adds or increments activity counters related to an activity. * *

* This method is called asynchronously from the social activity service * when the user performs an activity defined in *
liferay-social.xml. *

* *

* This method first calls the activity processor class, if there is one * defined for the activity, checks for limits and increments all the * counters that belong to the activity. Afterwards, it processes the * activity with respect to achievement classes, if any. Lastly it * increments the built-in user.activities and * asset.activities counters. *

* * @param activity the social activity * @throws PortalException if an expected group or expected previous activity counters could not be found * @throws SystemException if a system exception occurred */ @Override public void addActivityCounters( com.liferay.portlet.social.model.SocialActivity activity) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.addActivityCounters(activity); } /** * Creates an activity counter with a default period length, adding it into * the database. * * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class this counter belongs to * @param classPK the primary key of the entity this counter belongs to * @param name the counter's name * @param ownerType the counter's owner type. Acceptable values are TYPE_ACTOR, TYPE_ASSET and TYPE_CREATOR defined in {@link com.liferay.portlet.social.model.SocialActivityCounterConstants}. * @param currentValue the counter's current value (optionally 0) * @param totalValue the counter's total value (optionally 0) * @param startPeriod the counter's start period * @param endPeriod the counter's end period * @return the created activity counter * @throws PortalException if the group or a previous activity counter could not be found * @throws SystemException if a system exception occurred * @deprecated As of 6.2.0, replaced by {@link #addActivityCounter(long, long, long, String, int, int, long, int)} */ @Override public com.liferay.portlet.social.model.SocialActivityCounter createActivityCounter( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType, int currentValue, int totalValue, int startPeriod, int endPeriod) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.createActivityCounter(groupId, classNameId, classPK, name, ownerType, currentValue, totalValue, startPeriod, endPeriod); } /** * Creates an activity counter, adding it into the database. * *

* This method actually creates the counter in the database. It requires a * new transaction so that other threads can find the new counter when the * lock in the calling method is released. *

* * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class this counter belongs to * @param classPK the primary key of the entity this counter belongs to * @param name the counter's name * @param ownerType the counter's owner type. Acceptable values are TYPE_ACTOR, TYPE_ASSET and TYPE_CREATOR defined in {@link com.liferay.portlet.social.model.SocialActivityCounterConstants}. * @param currentValue the counter's current value (optionally 0) * @param totalValue the counter's total value of the counter (optionally 0) * @param startPeriod the counter's start period * @param endPeriod the counter's end period * @param previousActivityCounterId the primary key of the activity counter for the previous time period (optionally 0, if this is the first) * @param periodLength the period length in days, PERIOD_LENGTH_INFINITE for never ending counters or PERIOD_LENGTH_SYSTEM for the period length defined in portal-ext.properties. For more information see {@link com.liferay.portlet.social.model.SocialActivityConstants}. * @return the created activity counter * @throws PortalException if the group or the previous activity counter could not be found * @throws SystemException if a system exception occurred * @deprecated As of 6.2.0, replaced by {@link #addActivityCounter(long, long, long, String, int, int, long, int)} */ @Override public com.liferay.portlet.social.model.SocialActivityCounter createActivityCounter( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType, int currentValue, int totalValue, int startPeriod, int endPeriod, long previousActivityCounterId, int periodLength) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.createActivityCounter(groupId, classNameId, classPK, name, ownerType, currentValue, totalValue, startPeriod, endPeriod, previousActivityCounterId, periodLength); } /** * Deletes all activity counters, limits, and settings related to the asset. * *

* This method subtracts the asset's popularity from the owner's * contribution points. It also creates a new contribution period if the * latest one does not belong to the current period. *

* * @param assetEntry the asset entry * @throws PortalException if the new contribution counter could not be created * @throws SystemException if a system exception occurred */ @Override public void deleteActivityCounters( com.liferay.portlet.asset.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.deleteActivityCounters(assetEntry); } /** * Deletes all activity counters, limits, and settings related to the entity * identified by the class name ID and class primary key. * * @param classNameId the primary key of the entity's class * @param classPK the primary key of the entity * @throws PortalException if the entity is an asset and its owner's contribution counter could not be updated * @throws SystemException if a system exception occurred */ @Override public void deleteActivityCounters(long classNameId, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.deleteActivityCounters(classNameId, classPK); } /** * Deletes all activity counters for the entity identified by the class name * and class primary key. * * @param className the entity's class name * @param classPK the primary key of the entity * @throws PortalException if the entity is an asset and its owner's contribution counter could not be updated * @throws SystemException if a system exception occurred */ @Override public void deleteActivityCounters(java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.deleteActivityCounters(className, classPK); } /** * Disables all the counters of an asset identified by the class name ID and * class primary key. * *

* This method is used by the recycle bin to disable all counters of assets * put into the recycle bin. It adjusts the owner's contribution score. *

* * @param classNameId the primary key of the asset's class * @param classPK the primary key of the asset * @throws PortalException if the asset owner's contribution counter could not be updated * @throws SystemException if a system exception occurred */ @Override public void disableActivityCounters(long classNameId, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.disableActivityCounters(classNameId, classPK); } /** * Disables all the counters of an asset identified by the class name and * class primary key. * *

* This method is used by the recycle bin to disable all counters of assets * put into the recycle bin. It adjusts the owner's contribution score. *

* * @param className the asset's class name * @param classPK the primary key of the asset * @throws PortalException if the asset owner's contribution counter could not be updated * @throws SystemException if a system exception occurred */ @Override public void disableActivityCounters(java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.disableActivityCounters(className, classPK); } /** * Enables all activity counters of an asset identified by the class name ID * and class primary key. * *

* This method is used by the recycle bin to enable all counters of assets * restored from the recycle bin. It adjusts the owner's contribution score. *

* * @param classNameId the primary key of the asset's class * @param classPK the primary key of the asset * @throws PortalException if the asset owner's contribution counter could not be updated * @throws SystemException if a system exception occurred */ @Override public void enableActivityCounters(long classNameId, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.enableActivityCounters(classNameId, classPK); } /** * Enables all the counters of an asset identified by the class name and * class primary key. * *

* This method is used by the recycle bin to enable all counters of assets * restored from the recycle bin. It adjusts the owner's contribution score. *

* * @param className the asset's class name * @param classPK the primary key of the asset * @throws PortalException if the asset owner's contribution counter could not be updated * @throws SystemException if a system exception occurred */ @Override public void enableActivityCounters(java.lang.String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.enableActivityCounters(className, classPK); } /** * Returns the activity counter with the given name, owner, and end period * that belong to the given entity. * * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class * @param classPK the primary key of the entity * @param name the counter name * @param ownerType the owner type * @param endPeriod the end period, -1 for the latest one * @return the matching activity counter * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.social.model.SocialActivityCounter fetchActivityCounterByEndPeriod( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType, int endPeriod) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.fetchActivityCounterByEndPeriod(groupId, classNameId, classPK, name, ownerType, endPeriod); } /** * Returns the activity counter with the given name, owner, and start period * that belong to the given entity. * * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class * @param classPK the primary key of the entity * @param name the counter name * @param ownerType the owner type * @param startPeriod the start period * @return the matching activity counter * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.social.model.SocialActivityCounter fetchActivityCounterByStartPeriod( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType, int startPeriod) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.fetchActivityCounterByStartPeriod(groupId, classNameId, classPK, name, ownerType, startPeriod); } /** * Returns the latest activity counter with the given name and owner that * belong to the given entity. * * @param groupId the primary key of the group * @param classNameId the primary key of the entity's class * @param classPK the primary key of the entity * @param name the counter name * @param ownerType the owner type * @return the matching activity counter * @throws SystemException if a system exception occurred */ @Override public com.liferay.portlet.social.model.SocialActivityCounter fetchLatestActivityCounter( long groupId, long classNameId, long classPK, java.lang.String name, int ownerType) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.fetchLatestActivityCounter(groupId, classNameId, classPK, name, ownerType); } /** * Returns all the activity counters with the given name and period offsets. * *

* The start and end offsets can belong to different periods. This method * groups the counters by name and returns the sum of their current values. *

* * @param groupId the primary key of the group * @param name the counter name * @param startOffset the offset for the start period * @param endOffset the offset for the end period * @return the matching activity counters * @throws SystemException if a system exception occurred */ @Override public java.util.List getOffsetActivityCounters( long groupId, java.lang.String name, int startOffset, int endOffset) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getOffsetActivityCounters(groupId, name, startOffset, endOffset); } /** * Returns the distribution of the activity counters with the given name and * period offsets. * *

* The start and end offsets can belong to different periods. This method * groups the counters by their owner entity (usually some asset) and * returns a counter for each entity class with the sum of the counters' * current values. *

* * @param groupId the primary key of the group * @param name the counter name * @param startOffset the offset for the start period * @param endOffset the offset for the end period * @return the distribution of matching activity counters * @throws SystemException if a system exception occurred */ @Override public java.util.List getOffsetDistributionActivityCounters( long groupId, java.lang.String name, int startOffset, int endOffset) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getOffsetDistributionActivityCounters(groupId, name, startOffset, endOffset); } /** * Returns all the activity counters with the given name and time period. * *

* The start and end period values can belong to different periods. This * method groups the counters by name and returns the sum of their current * values. *

* * @param groupId the primary key of the group * @param name the counter name * @param startPeriod the start period * @param endPeriod the end period * @return the matching activity counters * @throws SystemException if a system exception occurred */ @Override public java.util.List getPeriodActivityCounters( long groupId, java.lang.String name, int startPeriod, int endPeriod) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getPeriodActivityCounters(groupId, name, startPeriod, endPeriod); } /** * Returns the distribution of activity counters with the given name and * time period. * *

* The start and end period values can belong to different periods. This * method groups the counters by their owner entity (usually some asset) and * returns a counter for each entity class with the sum of the counters' * current values. *

* * @param groupId the primary key of the group * @param name the counter name * @param startPeriod the start period * @param endPeriod the end period * @return the distribution of matching activity counters * @throws SystemException if a system exception occurred */ @Override public java.util.List getPeriodDistributionActivityCounters( long groupId, java.lang.String name, int startPeriod, int endPeriod) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getPeriodDistributionActivityCounters(groupId, name, startPeriod, endPeriod); } /** * Returns the range of tuples that contain users and a list of activity * counters. * *

* The counters returned for each user are passed to this method in the * selectedNames array. The method also accepts an array of counter names * that are used to rank the users. *

* *

* Useful when paginating results. Returns a maximum of end - * start instances. start and end are not * primary keys, they are indexes in the result set. Thus, 0 * refers to the first result in the set. Setting both start * and end to {@link * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full * result set. *

* * @param groupId the primary key of the group * @param rankingNames the ranking counter names * @param selectedNames the counter names that will be returned with each user * @param start the lower bound of the range of results * @param end the upper bound of the range of results (not inclusive) * @return the range of matching tuples * @throws SystemException if a system exception occurred */ @Override public java.util.List getUserActivityCounters( long groupId, java.lang.String[] rankingNames, java.lang.String[] selectedNames, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getUserActivityCounters(groupId, rankingNames, selectedNames, start, end); } /** * Returns the number of users having a rank based on the given counters. * * @param groupId the primary key of the group * @param rankingNames the ranking counter names * @return the number of matching users * @throws SystemException if a system exception occurred */ @Override public int getUserActivityCountersCount(long groupId, java.lang.String[] rankingNames) throws com.liferay.portal.kernel.exception.SystemException { return _socialActivityCounterLocalService.getUserActivityCountersCount(groupId, rankingNames); } /** * Increments the user.achievements counter for a user. * *

* This method should be used by an external achievement class when the * users unlocks an achievement. *

* * @param userId the primary key of the user * @param groupId the primary key of the group * @throws PortalException if the group or an expected previous activity counter could not be found * @throws SystemException if a system exception occurred */ @Override public void incrementUserAchievementCounter(long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { _socialActivityCounterLocalService.incrementUserAchievementCounter(userId, groupId); } /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ public SocialActivityCounterLocalService getWrappedSocialActivityCounterLocalService() { return _socialActivityCounterLocalService; } /** * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} */ public void setWrappedSocialActivityCounterLocalService( SocialActivityCounterLocalService socialActivityCounterLocalService) { _socialActivityCounterLocalService = socialActivityCounterLocalService; } @Override public SocialActivityCounterLocalService getWrappedService() { return _socialActivityCounterLocalService; } @Override public void setWrappedService( SocialActivityCounterLocalService socialActivityCounterLocalService) { _socialActivityCounterLocalService = socialActivityCounterLocalService; } private SocialActivityCounterLocalService _socialActivityCounterLocalService; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy