Class LogDAO

java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<LogEntity,String>
org.exoplatform.cs.dao.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 Details

    • LogDAO

      public LogDAO()
  • Method Details

    • getupdates

      public List<LogEntity> getupdates(Calendar from, Calendar to)
    • getLogsByTicketAndStatus

      public List<LogEntity> getLogsByTicketAndStatus(String topicId, List<String> status)
    • getLogsByTicket

      public List<LogEntity> getLogsByTicket(String topicId)
    • getTimeToFirstResponseBetweenDates

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

      public List<LogEntity> getTimeToResolutionBetweenDates(Calendar from, Calendar to, boolean internal)
    • getLogsByNewValue

      public List<LogEntity> getLogsByNewValue(String newValue)
    • 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)
    • countLogsByTypeAndNewValueAndSpaceBetweenDates

      public Long countLogsByTypeAndNewValueAndSpaceBetweenDates(String spaceId, Calendar from, Calendar to, LogType type, String newValue)
    • 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)
    • countLogsNumberBySpaceBetweenDates

      public Long countLogsNumberBySpaceBetweenDates(String spaceId, Calendar from, Calendar to, LogType type)
    • countLogsNumber

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

      public List<LogEntity> getFirstLogByType(LogType type)
    • getFirstLogByTypeAndSpace

      public List<LogEntity> getFirstLogByTypeAndSpace(String spaceId, LogType type)
    • getByType

      public List<LogEntity> getByType(LogType type, int offset, int limit)
    • 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)