com.liferay.portlet.social.service.impl
Class SocialActivityCounterLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.social.service.base.SocialActivityCounterLocalServiceBaseImpl
com.liferay.portlet.social.service.impl.SocialActivityCounterLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, SocialActivityCounterLocalService
public class SocialActivityCounterLocalServiceImpl
- extends SocialActivityCounterLocalServiceBaseImpl
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 |
SocialActivityCounter |
addActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod)
|
SocialActivityCounter |
addActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod,
long previousActivityCounterId,
int periodLength)
|
protected boolean |
addActivityCounter(User user,
User assetEntryUser,
SocialActivityCounterDefinition activityCounterDefinition)
|
void |
addActivityCounters(SocialActivity activity)
|
protected boolean |
checkActivityLimit(User user,
SocialActivity activity,
SocialActivityCounterDefinition activityCounterDefinition)
|
SocialActivityCounter |
createActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod)
Deprecated. createActivityCounter(long, long, long, String, int,
int, int, int, int, long, int) |
SocialActivityCounter |
createActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod,
long previousActivityCounterId,
int periodLength)
|
void |
deleteActivityCounters(AssetEntry assetEntry)
|
void |
deleteActivityCounters(long classNameId,
long classPK)
|
SocialActivityCounter |
fetchActivityCounterByEndPeriod(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int endPeriod)
|
SocialActivityCounter |
fetchActivityCounterByStartPeriod(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int startPeriod)
|
SocialActivityCounter |
fetchLatestActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType)
|
protected String |
getLockKey(long groupId,
long classNameId,
long classPK,
String name,
int ownerType)
|
List<SocialActivityCounter> |
getOffsetActivityCounters(long groupId,
String name,
int startOffset,
int endOffset)
|
List<SocialActivityCounter> |
getOffsetDistributionActivityCounters(long groupId,
String name,
int startOffset,
int endOffset)
|
List<SocialActivityCounter> |
getPeriodActivityCounters(long groupId,
String name,
int startPeriod,
int endPeriod)
|
List<SocialActivityCounter> |
getPeriodDistributionActivityCounters(long groupId,
String name,
int startPeriod,
int endPeriod)
|
List<Tuple> |
getUserActivityCounters(long groupId,
String[] rankingNames,
String[] selectedNames,
int start,
int end)
|
int |
getUserActivityCountersCount(long groupId,
String[] rankingNames)
|
protected void |
incrementActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int increment,
int periodLength)
|
protected void |
incrementActivityCounter(long groupId,
User user,
AssetEntry assetEntry,
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, 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 SocialActivityCounter addActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addActivityCounter
public SocialActivityCounter addActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod,
long previousActivityCounterId,
int periodLength)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addActivityCounters
public void addActivityCounters(SocialActivity activity)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
createActivityCounter
@Transactional(propagation=REQUIRES_NEW)
public SocialActivityCounter createActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod)
throws PortalException,
SystemException
- Deprecated.
createActivityCounter(long, long, long, String, int,
int, int, int, int, long, int)
- Throws:
PortalException
SystemException
createActivityCounter
@Transactional(propagation=REQUIRES_NEW)
public SocialActivityCounter createActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int currentValue,
int totalValue,
int startPeriod,
int endPeriod,
long previousActivityCounterId,
int periodLength)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteActivityCounters
public void deleteActivityCounters(AssetEntry assetEntry)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteActivityCounters
public void deleteActivityCounters(long classNameId,
long classPK)
throws SystemException
- Throws:
SystemException
fetchActivityCounterByEndPeriod
public SocialActivityCounter fetchActivityCounterByEndPeriod(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int endPeriod)
throws SystemException
- Throws:
SystemException
fetchActivityCounterByStartPeriod
public SocialActivityCounter fetchActivityCounterByStartPeriod(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int startPeriod)
throws SystemException
- Throws:
SystemException
fetchLatestActivityCounter
public SocialActivityCounter fetchLatestActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType)
throws SystemException
- Throws:
SystemException
getOffsetActivityCounters
public List<SocialActivityCounter> getOffsetActivityCounters(long groupId,
String name,
int startOffset,
int endOffset)
throws SystemException
- Throws:
SystemException
getOffsetDistributionActivityCounters
public List<SocialActivityCounter> getOffsetDistributionActivityCounters(long groupId,
String name,
int startOffset,
int endOffset)
throws SystemException
- Throws:
SystemException
getPeriodActivityCounters
public List<SocialActivityCounter> getPeriodActivityCounters(long groupId,
String name,
int startPeriod,
int endPeriod)
throws SystemException
- Throws:
SystemException
getPeriodDistributionActivityCounters
public List<SocialActivityCounter> getPeriodDistributionActivityCounters(long groupId,
String name,
int startPeriod,
int endPeriod)
throws SystemException
- Throws:
SystemException
getUserActivityCounters
public List<Tuple> getUserActivityCounters(long groupId,
String[] rankingNames,
String[] selectedNames,
int start,
int end)
throws SystemException
- Throws:
SystemException
getUserActivityCountersCount
public int getUserActivityCountersCount(long groupId,
String[] rankingNames)
throws SystemException
- Throws:
SystemException
incrementUserAchievementCounter
public void incrementUserAchievementCounter(long userId,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addActivityCounter
protected boolean addActivityCounter(User user,
User assetEntryUser,
SocialActivityCounterDefinition activityCounterDefinition)
checkActivityLimit
protected boolean checkActivityLimit(User user,
SocialActivity activity,
SocialActivityCounterDefinition activityCounterDefinition)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getLockKey
protected String getLockKey(long groupId,
long classNameId,
long classPK,
String name,
int ownerType)
incrementActivityCounter
protected void incrementActivityCounter(long groupId,
long classNameId,
long classPK,
String name,
int ownerType,
int increment,
int periodLength)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
incrementActivityCounter
protected void incrementActivityCounter(long groupId,
User user,
AssetEntry assetEntry,
SocialActivityCounterDefinition activityCounterDefinition)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException