Liferay 6.1.0-ce-b4

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, 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
protected  SocialActivityCounter addActivityCounter(long groupId, long classNameId, long classPK, String name, int ownerType, int overallValue)
           
 SocialActivityCounter addActivityCounter(long groupId, long classNameId, long classPK, String name, int ownerType, int currentValue, int totalValue)
           
 void addActivityCounters(SocialActivity activity)
           
protected  SocialActivityCounter addNewPeriod(SocialActivityCounter activityCounter)
           
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)
           
 List<SocialActivityCounter> getActivityCounterDistribution(long groupId, String name, int offset, boolean includeCurrentPeriod)
           
 List<SocialActivityCounter> getActivityCounterDistribution(long groupId, String name, int startPeriod, int endPeriod)
           
 List<SocialActivityCounter> getActivityCounters(long groupId, String name, int offset, boolean includeCurrentPeriod)
           
 List<SocialActivityCounter> getActivityCounters(long groupId, String name, int startPeriod, int endPeriod)
           
 SocialActivityCounter getLatestActivityCounter(long groupId, long classNameId, long classPK, String name, int ownerType)
           
 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)
           
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, 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, 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

@Transactional(rollbackFor=SystemException.class,
               propagation=REQUIRES_NEW)
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

getActivityCounterDistribution

public List<SocialActivityCounter> getActivityCounterDistribution(long groupId,
                                                                  String name,
                                                                  int offset,
                                                                  boolean includeCurrentPeriod)
                                                           throws SystemException
Throws:
SystemException

getActivityCounterDistribution

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

getActivityCounters

public List<SocialActivityCounter> getActivityCounters(long groupId,
                                                       String name,
                                                       int offset,
                                                       boolean includeCurrentPeriod)
                                                throws SystemException
Throws:
SystemException

getActivityCounters

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

getLatestActivityCounter

public SocialActivityCounter getLatestActivityCounter(long groupId,
                                                      long classNameId,
                                                      long classPK,
                                                      String name,
                                                      int ownerType)
                                               throws NoSuchActivityCounterException,
                                                      SystemException
Throws:
NoSuchActivityCounterException
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 SocialActivityCounter addActivityCounter(long groupId,
                                                   long classNameId,
                                                   long classPK,
                                                   String name,
                                                   int ownerType,
                                                   int overallValue)
                                            throws PortalException,
                                                   SystemException
Throws:
PortalException
SystemException

addNewPeriod

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

checkActivityLimit

protected boolean checkActivityLimit(User user,
                                     SocialActivity activity,
                                     SocialActivityCounterDefinition activityCounterDefinition)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

incrementActivityCounter

protected void incrementActivityCounter(long groupId,
                                        long classNameId,
                                        long classPK,
                                        String name,
                                        int ownerType,
                                        int increment)
                                 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-b4