Liferay 6.1.0-ce-rc1

com.liferay.portlet.social.service.impl
Class SocialActivityCounterLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.social.service.base.SocialActivityCounterLocalServiceBaseImpl
      extended by com.liferay.portlet.social.service.impl.SocialActivityCounterLocalServiceImpl
All Implemented Interfaces:
IdentifiableBean, PersistedModelLocalService, SocialActivityCounterLocalService

public class SocialActivityCounterLocalServiceImpl
extends SocialActivityCounterLocalServiceBaseImpl


Field Summary
 
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
 
Constructor Summary
SocialActivityCounterLocalServiceImpl()
           
 
Method Summary
 SocialActivityCounter addActivityCounter(long groupId, long classNameId, long classPK, String name, int ownerType, int currentValue, int totalValue)
           
protected  boolean addActivityCounter(User user, User assetEntryUser, SocialActivityCounterDefinition activityCounterDefinition)
           
 void addActivityCounters(SocialActivity activity)
           
protected  SocialActivityCounter addNewPeriod(SocialActivityCounter activityCounter, int periodLength)
           
protected  boolean checkActivityLimit(User user, SocialActivity activity, SocialActivityCounterDefinition activityCounterDefinition)
           
 void deleteActivityCounters(AssetEntry assetEntry)
           
 void deleteActivityCounters(long classNameId, long classPK)
           
 SocialActivityCounter fetchLatestActivityCounter(long groupId, long classNameId, long classPK, String name, int ownerType)
           
 SocialActivityCounter fetchLatestActivityCounter(long groupId, long classNameId, long classPK, String name, int ownerType, boolean retrieveFromCache)
           
 SocialActivityCounter getLatestActivityCounter(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> getOffsetActivityCounterDistribution(long groupId, String name, int startOffset, int endOffset)
           
 List<SocialActivityCounter> getOffsetActivityCounters(long groupId, String name, int startOffset, int endOffset)
           
 List<SocialActivityCounter> getPeriodActivityCounterDistribution(long groupId, String name, int startPeriod, int endPeriod)
           
 List<SocialActivityCounter> getPeriodActivityCounters(long groupId, String name, int startPeriod, int endPeriod)
           
 int getUserActivityCounters(long groupId, String[] rankingNames)
           
 List<Tuple> getUserActivityCounters(long groupId, String[] rankingNames, String[] selectedNames, int start, int end)
           
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, 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
 

Constructor Detail

SocialActivityCounterLocalServiceImpl

public SocialActivityCounterLocalServiceImpl()
Method Detail

addActivityCounter

public SocialActivityCounter addActivityCounter(long groupId,
                                                long classNameId,
                                                long classPK,
                                                String name,
                                                int ownerType,
                                                int currentValue,
                                                int totalValue)
                                         throws PortalException,
                                                SystemException
Throws:
PortalException
SystemException

addActivityCounters

public void addActivityCounters(SocialActivity activity)
                         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

fetchLatestActivityCounter

public SocialActivityCounter fetchLatestActivityCounter(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        String name,
                                                        int ownerType)
                                                 throws SystemException
Throws:
SystemException

fetchLatestActivityCounter

public SocialActivityCounter fetchLatestActivityCounter(long groupId,
                                                        long classNameId,
                                                        long classPK,
                                                        String name,
                                                        int ownerType,
                                                        boolean retrieveFromCache)
                                                 throws SystemException
Throws:
SystemException

getLatestActivityCounter

public SocialActivityCounter getLatestActivityCounter(long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String name,
                                                      int ownerType)
                                               throws NoSuchActivityCounterException,
                                                      SystemException
Throws:
NoSuchActivityCounterException
SystemException

getOffsetActivityCounterDistribution

public List<SocialActivityCounter> getOffsetActivityCounterDistribution(long groupId,
                                                                        String name,
                                                                        int startOffset,
                                                                        int endOffset)
                                                                 throws SystemException
Throws:
SystemException

getOffsetActivityCounters

public List<SocialActivityCounter> getOffsetActivityCounters(long groupId,
                                                             String name,
                                                             int startOffset,
                                                             int endOffset)
                                                      throws SystemException
Throws:
SystemException

getPeriodActivityCounterDistribution

public List<SocialActivityCounter> getPeriodActivityCounterDistribution(long groupId,
                                                                        String name,
                                                                        int startPeriod,
                                                                        int endPeriod)
                                                                 throws SystemException
Throws:
SystemException

getPeriodActivityCounters

public List<SocialActivityCounter> getPeriodActivityCounters(long groupId,
                                                             String name,
                                                             int startPeriod,
                                                             int endPeriod)
                                                      throws SystemException
Throws:
SystemException

getUserActivityCounters

public int getUserActivityCounters(long groupId,
                                   String[] rankingNames)
                            throws SystemException
Throws:
SystemException

getUserActivityCounters

public List<Tuple> getUserActivityCounters(long groupId,
                                           String[] rankingNames,
                                           String[] selectedNames,
                                           int start,
                                           int end)
                                    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)

addNewPeriod

protected SocialActivityCounter addNewPeriod(SocialActivityCounter activityCounter,
                                             int periodLength)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

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

Liferay 6.1.0-ce-rc1