Class SilverStatisticsPeasDAOConnexion


  • public class SilverStatisticsPeasDAOConnexion
    extends Object
    Class declaration Get connections data from database
    Author:
    • Method Detail

      • getStatsConnexionAllAll

        public static Collection<String[]> getStatsConnexionAllAll​(String startDate,
                                                                   String endDate)
                                                            throws SQLException
        donne les stats global pour l'enemble de tous les users cad 2 infos, la collection contient donc un seul element
        Parameters:
        startDate -
        endDate -
        Returns:
        Throws:
        SQLException
      • getStatsUserConnexion

        public static Collection[] getStatsUserConnexion​(String startDate,
                                                         String endDate,
                                                         String idUser)
                                                  throws SQLException,
                                                         ParseException
        Get user connection statistics
        Parameters:
        startDate - the start date
        endDate - the end date
        idUser - the user identifier
        Returns:
        an array of date and number of connections of a user between startDate and endDate
        Throws:
        SQLException
        ParseException
      • getStatsGroupConnexion

        public static Collection[] getStatsGroupConnexion​(String startDate,
                                                          String endDate,
                                                          String groupId)
                                                   throws SQLException,
                                                          ParseException
        Returns the group stats : group name, number of connexions, mean connexion time and group id for all the specified group.
        Parameters:
        startDate - the start date
        endDate - the end date
        groupId - the group identifier
        Returns:
        the group stats : group name, number of connexions, mean connexion time and group id for all the groups.
        Throws:
        SQLException
        ParseException
      • getStatsConnexionGroupAll

        public static Collection<String[]> getStatsConnexionGroupAll​(String dateBegin,
                                                                     String dateEnd)
                                                              throws SQLException
        Returns the groups stats : group name, number of connexions, mean connexion time and group id for all the groups.
        Parameters:
        dateBegin -
        dateEnd -
        Returns:
        the group stats : group name, number of connexions, mean connexion time and group id for all the groups.
        Throws:
        SQLException
      • getStatsConnexionAllGroup

        public static Collection<String[]> getStatsConnexionAllGroup​(String dateBegin,
                                                                     String dateEnd,
                                                                     int groupId)
                                                              throws SQLException
        Returns the group stats : Group name, number of connexions, mean connexion time and group id for all the users of a group.
        Parameters:
        dateBegin - .
        dateEnd - .
        groupId - .
        Returns:
        the group stats : Group last name, number of connexions, mean connexion time and group id for all the users of a group.
        Throws:
        SQLException
      • getStatsConnexionUserAll

        public static Collection<String[]> getStatsConnexionUserAll​(String dateBegin,
                                                                    String dateEnd)
                                                             throws SQLException
        Returns the user stats : User last name, number of connexions, mean connexion time and user id for all Silverpeas users.
        Parameters:
        dateBegin -
        dateEnd -
        Returns:
        the user stats : User last name, number of connexions, mean connexion time and user id for all Silverpeas users.
        Throws:
        SQLException
      • getStatsConnexionUser

        public static Collection<String[]> getStatsConnexionUser​(String dateBegin,
                                                                 String dateEnd,
                                                                 int userId)
                                                          throws SQLException
        Returns the user stats : User last name, number of connexions, mean connexion time and user id.
        Parameters:
        dateBegin -
        dateEnd -
        userId -
        Returns:
        Throws:
        SQLException
      • getYears

        public static Collection<String> getYears()
                                           throws SQLException
        Returns:
        if no statistic exist return current year, else return a collection of years which are loaded inside SB_Stat_ConnectionCumul table
        Throws:
        SQLException