Class LogDAO

  • All Implemented Interfaces:
    org.exoplatform.commons.api.persistence.GenericDAO<LogEntity,​String>

    public class LogDAO
    extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<LogEntity,​String>
    Created by IntelliJ IDEA. User: ali Date: 06/01/17 Time: 12:15
    • Constructor Detail

      • LogDAO

        public LogDAO()
    • Method Detail

      • getTimeToFirstResponseBetweenDates

        public List<LogEntity> getTimeToFirstResponseBetweenDates​(Calendar from,
                                                                  Calendar to,
                                                                  boolean internal)
      • getTimeToFirstResponseAvgBetweenDates

        public Double getTimeToFirstResponseAvgBetweenDates​(Calendar from,
                                                            Calendar to,
                                                            boolean internal)
      • getTimeToFirstResponseAvgBySpaceBetweenDates

        public Double getTimeToFirstResponseAvgBySpaceBetweenDates​(String spaceId,
                                                                   Calendar from,
                                                                   Calendar to)
      • getTimeToResolutionAvgBetweenDates

        public Double getTimeToResolutionAvgBetweenDates​(Calendar from,
                                                         Calendar to,
                                                         boolean internal)
      • getTimeToResolutionAvgBySpaceBetweenDates

        public Double getTimeToResolutionAvgBySpaceBetweenDates​(String spaceId,
                                                                Calendar from,
                                                                Calendar to)
      • countLogsByTypeAndNewValueBetweenDates

        public Long countLogsByTypeAndNewValueBetweenDates​(Calendar from,
                                                           Calendar to,
                                                           LogType type,
                                                           String newValue,
                                                           boolean internal)
      • countLogsByTypeAndNewValueBetweenDatesGroupedByTickets

        public int countLogsByTypeAndNewValueBetweenDatesGroupedByTickets​(Calendar from,
                                                                          Calendar to,
                                                                          LogType type,
                                                                          String newValue,
                                                                          boolean internal)
      • countLogsByTypeAndNewValueAndSpaceBetweenDatesGroupedByTickets

        public int countLogsByTypeAndNewValueAndSpaceBetweenDatesGroupedByTickets​(String spaceId,
                                                                                  Calendar from,
                                                                                  Calendar to,
                                                                                  LogType type,
                                                                                  String newValue)
      • countLogsNumberBetweenDates

        public Long countLogsNumberBetweenDates​(Calendar from,
                                                Calendar to,
                                                LogType type,
                                                boolean internal)
      • countLogsNumber

        public Long countLogsNumber​(LogType type,
                                    String newValue,
                                    boolean internal)
      • getTimeToFirstResponseFirstLog

        public List<LogEntity> getTimeToFirstResponseFirstLog()
      • getTimeToResolutionFirstLog

        public List<LogEntity> getTimeToResolutionFirstLog()
      • countLogsGroupdByNewValue

        public List<Object[]> countLogsGroupdByNewValue​(boolean internal)
      • getLogsGroupdByNewValue

        public List<Object[]> getLogsGroupdByNewValue​(boolean internal)
      • countLogsGroupdByNewValueAndDates

        public List<Object[]> countLogsGroupdByNewValueAndDates​(boolean internal,
                                                                Calendar to)
      • countLogsBySpaceGroupdByNewValueAndDates

        public List<Object[]> countLogsBySpaceGroupdByNewValueAndDates​(String spaceId,
                                                                       Calendar to)