Class TopicDAO

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

    public class TopicDAO
    extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<TopicEntity,​String>
    Created by The eXo Platform SAS
    Since:
    Apr 27, 2016
    Author:
    boubaker.khanfir@exoplatform.com
    • Constructor Detail

      • TopicDAO

        public TopicDAO()
    • Method Detail

      • getTopicsByEnvironment

        public List<TopicEntity> getTopicsByEnvironment​(Long environmentId)
      • getTopicsByAssignee

        public List<TopicEntity> getTopicsByAssignee​(String assignee,
                                                     boolean allTickets,
                                                     String selectedStatus)
        Fetches all topics by assignee
        Parameters:
        assignee - The assignee ID
        allTickets - true if we need to get closed tickets, false otherwise
        selectedStatus -
        Returns:
        List of Topic entities
      • getTopicsByAssignee

        public List<TopicEntity> getTopicsByAssignee​(String assignee,
                                                     String selectedSpace,
                                                     boolean allTickets,
                                                     String selectedStatus)
        Fetches all topics by assignee
        Parameters:
        assignee - The assignee ID
        selectedSpace - the space to retrieve tickets from
        allTickets - true if we need to get closed tickets, false otherwise
        Returns:
        List of Topic entities
      • getAllTicketsWithPagination

        public List<TopicEntity> getAllTicketsWithPagination​(int offset,
                                                             int limit)
      • getTopicsByCreator

        public List<TopicEntity> getTopicsByCreator​(String creator,
                                                    boolean allTickets,
                                                    String selectedStatus)
        Fetches all topics by creator
        Parameters:
        creator - The creator ID
        allTickets - true if we need to get closed tickets, false otherwise
        selectedStatus -
        Returns:
        List of Topic entities
      • getTopicsByCreator

        public List<TopicEntity> getTopicsByCreator​(String creator,
                                                    String selectedSpace,
                                                    boolean allTickets,
                                                    String selectedStatus)
        Fetches all topics by creator
        Parameters:
        creator - The creator ID
        selectedSpace - the space to retrieve tickets from
        allTickets - true if we need to get closed tickets, false otherwise
        Returns:
        List of Topic entities
      • countCustomerTicketsGroupdBySpace

        public List<Object[]> countCustomerTicketsGroupdBySpace​(boolean internal)
      • countCustomerTicketsGroupdByOwner

        public List<Object[]> countCustomerTicketsGroupdByOwner​(boolean internal)
      • countCustomerTicketsGroupdByStatus

        public List<Object[]> countCustomerTicketsGroupdByStatus​(boolean internal)
      • countSpaceTicketsGroupdByStatus

        public List<Object[]> countSpaceTicketsGroupdByStatus​(String selectedSpace)
      • countSpaceTicketsGroupdByOwner

        public List<Object[]> countSpaceTicketsGroupdByOwner​(String selectedSpace)
      • countSpaceTicketsGroupdByAssignee

        public List<Object[]> countSpaceTicketsGroupdByAssignee​(String selectedSpace)
      • countOpenCustomerTickets

        public Long countOpenCustomerTickets​(boolean internal)
      • countClosedCustomerTickets

        public Long countClosedCustomerTickets​(boolean internal)
      • countOpenSpaceTickets

        public Long countOpenSpaceTickets​(String selectedSpace)
      • countClosedSpaceTickets

        public Long countClosedSpaceTickets​(String selectedSpace)
      • countOpenCustomerTicketsByDates

        public Long countOpenCustomerTicketsByDates​(boolean internal,
                                                    Calendar from,
                                                    Calendar to)
      • countClosedCustomerTicketsByDates

        public Long countClosedCustomerTicketsByDates​(boolean internal,
                                                      Calendar from,
                                                      Calendar to)
      • countCustomerTicketsGroupdByStatusAndDates

        public List<Object[]> countCustomerTicketsGroupdByStatusAndDates​(boolean internal,
                                                                         Calendar from,
                                                                         Calendar to)
      • countCustomerTicketsGroupdByAssigneeAndDates

        public List<Object[]> countCustomerTicketsGroupdByAssigneeAndDates​(boolean internal,
                                                                           Calendar from,
                                                                           Calendar to)
      • countCustomerTicketsGroupdByAssignee

        public List<Object[]> countCustomerTicketsGroupdByAssignee​(boolean internal)
      • countUnresolvedTicketsGroupdByAssignee

        public List<Object[]> countUnresolvedTicketsGroupdByAssignee()
      • countCustomerTicketsGroupdBySeverityAndDates

        public List<Object[]> countCustomerTicketsGroupdBySeverityAndDates​(boolean internal,
                                                                           Calendar from,
                                                                           Calendar to)
      • countCustomerTicketsGroupdBySeverity

        public List<Object[]> countCustomerTicketsGroupdBySeverity​(boolean internal)
      • countSpaceTicketsGroupdBySeverity

        public List<Object[]> countSpaceTicketsGroupdBySeverity​(String selectedSpace)
      • getTimeToResolutionAvg

        public double getTimeToResolutionAvg​(boolean internal)
      • getTimeToFirstResponseAvg

        public double getTimeToFirstResponseAvg​(boolean internal)
      • countSatisfiedTicketNumber

        public Long countSatisfiedTicketNumber​(boolean internal)
      • countSatisfiedTicketNumberByDates

        public Long countSatisfiedTicketNumberByDates​(boolean internal,
                                                      Calendar from,
                                                      Calendar to)
      • countNotSatisfiedTicketNumber

        public Long countNotSatisfiedTicketNumber​(boolean internal)
      • countNotSatisfiedTicketNumberByDates

        public Long countNotSatisfiedTicketNumberByDates​(boolean internal,
                                                         Calendar from,
                                                         Calendar to)
      • getSpaceTimeToResolutionAvg

        public double getSpaceTimeToResolutionAvg​(String selectedSpace)
      • getSpaceTimeToFirstResponseAvg

        public double getSpaceTimeToFirstResponseAvg​(String selectedSpace)
      • countSpaceSatisfiedTicketNumber

        public Long countSpaceSatisfiedTicketNumber​(String selectedSpace)
      • countSpaceSatisfiedTicketNumberByDates

        public Long countSpaceSatisfiedTicketNumberByDates​(String selectedSpace,
                                                           Calendar from,
                                                           Calendar to)
      • countSpaceNotSatisfiedTicketNumber

        public Long countSpaceNotSatisfiedTicketNumber​(String selectedSpace)
      • countSpaceNotSatisfiedTicketNumberByDates

        public Long countSpaceNotSatisfiedTicketNumberByDates​(String selectedSpace,
                                                              Calendar from,
                                                              Calendar to)