com.liferay.portlet.social.service.impl
Class SocialActivityCounterLocalServiceImpl
java.lang.Object
com.liferay.portlet.social.service.base.SocialActivityCounterLocalServiceBaseImpl
com.liferay.portlet.social.service.impl.SocialActivityCounterLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.bean.IdentifiableBean, com.liferay.portal.service.PersistedModelLocalService, com.liferay.portlet.social.service.SocialActivityCounterLocalService
public class SocialActivityCounterLocalServiceImpl
- extends SocialActivityCounterLocalServiceBaseImpl
- Author:
- Zsolt Berentey, Shuyang Zhou
| Fields inherited from class com.liferay.portlet.social.service.base.SocialActivityCounterLocalServiceBaseImpl |
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, lockFinder, lockLocalService, lockPersistence, persistedModelLocalServiceRegistry, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityAchievementLocalService, socialActivityAchievementPersistence, socialActivityCounterFinder, socialActivityCounterLocalService, socialActivityCounterPersistence, socialActivityFinder, socialActivityInterpreterLocalService, socialActivityLimitLocalService, socialActivityLimitPersistence, socialActivityLocalService, socialActivityPersistence, socialActivitySettingLocalService, socialActivitySettingPersistence, socialActivitySettingService, socialRelationLocalService, socialRelationPersistence, socialRequestInterpreterLocalService, socialRequestLocalService, socialRequestPersistence, userFinder, userLocalService, userPersistence, userService |
|
Method Summary |
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)
|
protected boolean |
addActivityCounter(com.liferay.portal.model.User user,
com.liferay.portal.model.User assetEntryUser,
com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
|
void |
addActivityCounters(com.liferay.portlet.social.model.SocialActivity activity)
|
protected com.liferay.portlet.social.model.SocialActivityCounter |
addNewPeriod(com.liferay.portlet.social.model.SocialActivityCounter activityCounter,
int periodLength)
|
protected boolean |
checkActivityLimit(com.liferay.portal.model.User user,
com.liferay.portlet.social.model.SocialActivity activity,
com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
|
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)
|
void |
deleteActivityCounters(com.liferay.portlet.asset.model.AssetEntry assetEntry)
|
void |
deleteActivityCounters(long classNameId,
long classPK)
|
com.liferay.portlet.social.model.SocialActivityCounter |
fetchActivityCounterByEndPeriod(long groupId,
long classNameId,
long classPK,
java.lang.String name,
int ownerType,
int endPeriod)
|
com.liferay.portlet.social.model.SocialActivityCounter |
fetchActivityCounterByStartPeriod(long groupId,
long classNameId,
long classPK,
java.lang.String name,
int ownerType,
int startPeriod)
|
com.liferay.portlet.social.model.SocialActivityCounter |
fetchLatestActivityCounter(long groupId,
long classNameId,
long classPK,
java.lang.String name,
int ownerType)
|
protected java.lang.String |
getLockKey(long groupId,
long classNameId,
long classPK,
java.lang.String name,
int ownerType)
|
java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> |
getOffsetActivityCounters(long groupId,
java.lang.String name,
int startOffset,
int endOffset)
|
java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> |
getOffsetDistributionActivityCounters(long groupId,
java.lang.String name,
int startOffset,
int endOffset)
|
java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> |
getPeriodActivityCounters(long groupId,
java.lang.String name,
int startPeriod,
int endPeriod)
|
java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> |
getPeriodDistributionActivityCounters(long groupId,
java.lang.String name,
int startPeriod,
int endPeriod)
|
java.util.List<com.liferay.portal.kernel.util.Tuple> |
getUserActivityCounters(long groupId,
java.lang.String[] rankingNames,
java.lang.String[] selectedNames,
int start,
int end)
|
int |
getUserActivityCountersCount(long groupId,
java.lang.String[] rankingNames)
|
protected void |
incrementActivityCounter(long groupId,
long classNameId,
long classPK,
java.lang.String name,
int ownerType,
int increment,
int periodLength)
|
protected void |
incrementActivityCounter(long groupId,
com.liferay.portal.model.User user,
com.liferay.portlet.asset.model.AssetEntry assetEntry,
com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
|
void |
incrementUserAchievementCounter(long userId,
long groupId)
|
| Methods inherited from class com.liferay.portlet.social.service.base.SocialActivityCounterLocalServiceBaseImpl |
addSocialActivityCounter, afterPropertiesSet, createSocialActivityCounter, deleteSocialActivityCounter, deleteSocialActivityCounter, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchSocialActivityCounter, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBeanIdentifier, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getLockFinder, getLockLocalService, getLockPersistence, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityAchievementLocalService, getSocialActivityAchievementPersistence, getSocialActivityCounter, getSocialActivityCounterFinder, getSocialActivityCounterLocalService, getSocialActivityCounterPersistence, getSocialActivityCounters, getSocialActivityCountersCount, getSocialActivityFinder, getSocialActivityInterpreterLocalService, getSocialActivityLimitLocalService, getSocialActivityLimitPersistence, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivitySettingLocalService, getSocialActivitySettingPersistence, getSocialActivitySettingService, getSocialRelationLocalService, getSocialRelationPersistence, getSocialRequestInterpreterLocalService, getSocialRequestLocalService, getSocialRequestPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBeanIdentifier, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setLockFinder, setLockLocalService, setLockPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityAchievementLocalService, setSocialActivityAchievementPersistence, setSocialActivityCounterFinder, setSocialActivityCounterLocalService, setSocialActivityCounterPersistence, setSocialActivityFinder, setSocialActivityInterpreterLocalService, setSocialActivityLimitLocalService, setSocialActivityLimitPersistence, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivitySettingLocalService, setSocialActivitySettingPersistence, setSocialActivitySettingService, setSocialRelationLocalService, setSocialRelationPersistence, setSocialRequestInterpreterLocalService, setSocialRequestLocalService, setSocialRequestPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateSocialActivityCounter, updateSocialActivityCounter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocialActivityCounterLocalServiceImpl
public SocialActivityCounterLocalServiceImpl()
addActivityCounter
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addActivityCounters
public void addActivityCounters(com.liferay.portlet.social.model.SocialActivity activity)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
createActivityCounter
@Transactional(propagation=REQUIRES_NEW)
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
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteActivityCounters
public void deleteActivityCounters(com.liferay.portlet.asset.model.AssetEntry assetEntry)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteActivityCounters
public void deleteActivityCounters(long classNameId,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchActivityCounterByEndPeriod
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
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchActivityCounterByStartPeriod
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
- Throws:
com.liferay.portal.kernel.exception.SystemException
fetchLatestActivityCounter
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
- Throws:
com.liferay.portal.kernel.exception.SystemException
getOffsetActivityCounters
public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getOffsetActivityCounters(long groupId,
java.lang.String name,
int startOffset,
int endOffset)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getOffsetDistributionActivityCounters
public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getOffsetDistributionActivityCounters(long groupId,
java.lang.String name,
int startOffset,
int endOffset)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getPeriodActivityCounters
public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getPeriodActivityCounters(long groupId,
java.lang.String name,
int startPeriod,
int endPeriod)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getPeriodDistributionActivityCounters
public java.util.List<com.liferay.portlet.social.model.SocialActivityCounter> getPeriodDistributionActivityCounters(long groupId,
java.lang.String name,
int startPeriod,
int endPeriod)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getUserActivityCounters
public java.util.List<com.liferay.portal.kernel.util.Tuple> getUserActivityCounters(long groupId,
java.lang.String[] rankingNames,
java.lang.String[] selectedNames,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getUserActivityCountersCount
public int getUserActivityCountersCount(long groupId,
java.lang.String[] rankingNames)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
incrementUserAchievementCounter
public void incrementUserAchievementCounter(long userId,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addActivityCounter
protected boolean addActivityCounter(com.liferay.portal.model.User user,
com.liferay.portal.model.User assetEntryUser,
com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
addNewPeriod
protected com.liferay.portlet.social.model.SocialActivityCounter addNewPeriod(com.liferay.portlet.social.model.SocialActivityCounter activityCounter,
int periodLength)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
checkActivityLimit
protected boolean checkActivityLimit(com.liferay.portal.model.User user,
com.liferay.portlet.social.model.SocialActivity activity,
com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getLockKey
protected java.lang.String getLockKey(long groupId,
long classNameId,
long classPK,
java.lang.String name,
int ownerType)
incrementActivityCounter
protected void incrementActivityCounter(long groupId,
long classNameId,
long classPK,
java.lang.String name,
int ownerType,
int increment,
int periodLength)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
incrementActivityCounter
protected void incrementActivityCounter(long groupId,
com.liferay.portal.model.User user,
com.liferay.portlet.asset.model.AssetEntry assetEntry,
com.liferay.portlet.social.model.SocialActivityCounterDefinition activityCounterDefinition)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException