com.stratelia.webactiv.util.statistic.control
Interface StatisticBm

All Known Implementing Classes:
StatisticBmEJB

public interface StatisticBm


Method Summary
 void addStat(String userId, ForeignPK foreignPK, int action, String objectType)
           
 void addStat(String userId, SilverpeasContent content)
           
 void deleteStats(ForeignPK foreignPK, String objectType)
           
 void deleteStats(SilverpeasContent content)
           
 void deleteStatsOfComponent(String componentId)
           
 int getCount(ForeignPK foreignPK, int action, String objectType)
           
 int getCount(ForeignPK foreignPK, String objectType)
           
 int getCount(List<ForeignPK> foreignPKs, int action, String objectType)
           
 int getCount(SilverpeasContent content)
           
 int getCount(SilverpeasContent content, int action)
           
 int getCountByPeriod(List<WAPrimaryKey> primaryKeys, int action, String objectType, Date startDate, Date endDate)
           
 int getCountByPeriodAndUser(List<WAPrimaryKey> primaryKeys, String objectType, Date startDate, Date endDate, List<String> userIds)
           
 int getDistinctCountByPeriod(List<WAPrimaryKey> primaryKeys, int action, String objectType, Date startDate, Date endDate)
           
 int getDistinctCountByPeriodUser(List<WAPrimaryKey> primaryKeys, int action, String objectType, Date startDate, Date endDate, List<String> userIds)
           
 Collection<HistoryObjectDetail> getHistoryByAction(ForeignPK foreignPK, int action, String objectType)
           
 Collection<HistoryByUser> getHistoryByObject(ForeignPK foreignPK, int action, String objectType)
           
 Collection<HistoryByUser> getHistoryByObject(ForeignPK foreignPK, int action, String objectType, List<String> userIds)
           
 Collection<HistoryObjectDetail> getHistoryByObjectAndUser(ForeignPK foreignPK, int action, String objectType, String userId)
           
 Collection<HistoryObjectDetail> getLastHistoryOfObjectsForUser(String userId, int actionType, String objectType, int nbObjects)
          Gets the last history detail of each object associated to a user.
 boolean isRead(SilverpeasContent content, String userId)
           
 void moveStat(ForeignPK toForeignPK, int actionType, String objectType)
           
 

Method Detail

addStat

void addStat(String userId,
             ForeignPK foreignPK,
             int action,
             String objectType)

addStat

void addStat(String userId,
             SilverpeasContent content)

getHistoryByAction

Collection<HistoryObjectDetail> getHistoryByAction(ForeignPK foreignPK,
                                                   int action,
                                                   String objectType)

getHistoryByObjectAndUser

Collection<HistoryObjectDetail> getHistoryByObjectAndUser(ForeignPK foreignPK,
                                                          int action,
                                                          String objectType,
                                                          String userId)

getHistoryByObject

Collection<HistoryByUser> getHistoryByObject(ForeignPK foreignPK,
                                             int action,
                                             String objectType)

getHistoryByObject

Collection<HistoryByUser> getHistoryByObject(ForeignPK foreignPK,
                                             int action,
                                             String objectType,
                                             List<String> userIds)

deleteStats

void deleteStats(ForeignPK foreignPK,
                 String objectType)

deleteStats

void deleteStats(SilverpeasContent content)

deleteStatsOfComponent

void deleteStatsOfComponent(String componentId)

getCount

int getCount(List<ForeignPK> foreignPKs,
             int action,
             String objectType)

getCount

int getCount(SilverpeasContent content,
             int action)

getCount

int getCount(ForeignPK foreignPK,
             int action,
             String objectType)

getCount

int getCount(ForeignPK foreignPK,
             String objectType)

getCount

int getCount(SilverpeasContent content)

moveStat

void moveStat(ForeignPK toForeignPK,
              int actionType,
              String objectType)

getCountByPeriod

int getCountByPeriod(List<WAPrimaryKey> primaryKeys,
                     int action,
                     String objectType,
                     Date startDate,
                     Date endDate)
Parameters:
primaryKeys -
action -
objectType - String representation of an object type
startDate - the start date
endDate - the end date
Returns:
the number of access over a list of publications between startDate and endDate

getCountByPeriodAndUser

int getCountByPeriodAndUser(List<WAPrimaryKey> primaryKeys,
                            String objectType,
                            Date startDate,
                            Date endDate,
                            List<String> userIds)
Parameters:
primaryKeys -
objectType - String representation of an object type
startDate - the start date
endDate - the end date
userIds - the user identifiers
Returns:
the number of access over a list of publications between startDate and endDate for specific user

getDistinctCountByPeriod

int getDistinctCountByPeriod(List<WAPrimaryKey> primaryKeys,
                             int action,
                             String objectType,
                             Date startDate,
                             Date endDate)
Parameters:
primaryKeys -
action -
objectType - String representation of an object type
startDate - the start date
endDate - the end date
Returns:
the number of access over a list of publications between startDate and endDate

getDistinctCountByPeriodUser

int getDistinctCountByPeriodUser(List<WAPrimaryKey> primaryKeys,
                                 int action,
                                 String objectType,
                                 Date startDate,
                                 Date endDate,
                                 List<String> userIds)

getLastHistoryOfObjectsForUser

Collection<HistoryObjectDetail> getLastHistoryOfObjectsForUser(String userId,
                                                               int actionType,
                                                               String objectType,
                                                               int nbObjects)
Gets the last history detail of each object associated to a user. The result is sorted on the date time from the youngest to the oldest and limited according to the nbObjects parameter.

Parameters:
userId -
actionType -
objectType -
nbObjects -
Returns:
ordered list of unique objects used by the user

isRead

boolean isRead(SilverpeasContent content,
               String userId)


Copyright © 2016 Silverpeas. All Rights Reserved.