Class TopicDAO

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

    • TopicDAO

      public TopicDAO()
  • Method Details

    • getTopicsBySpace

      public List<TopicEntity> getTopicsBySpace(String spaceGroupId, String selectedStatus)
    • 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
    • getOpenTickets

      public List<TopicEntity> getOpenTickets()
    • findUpdatedBetween

      public List<TopicEntity> findUpdatedBetween(Calendar fromDate, Calendar toDate)
    • getUpdatedTicketsByStatus

      public List<TopicEntity> getUpdatedTicketsByStatus(String status, Calendar fromDate, Calendar toDate)
    • getUpdatedTicketsBySpaceAndStatus

      public List<TopicEntity> getUpdatedTicketsBySpaceAndStatus(String space, String status, Calendar fromDate, Calendar toDate)
    • getUpdatedTicketsBySpace

      public List<TopicEntity> getUpdatedTicketsBySpace(String space, Calendar fromDate, Calendar toDate)
    • getAllTickets

      public List<TopicEntity> getAllTickets()
    • getAllTicketsWithPagination

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

      public List<TopicEntity> getCreatedTicketsBySpace(String space, Calendar fromDate, Calendar toDate)
    • getCreatedTickets

      public List<TopicEntity> getCreatedTickets(Calendar fromDate, Calendar toDate)
    • getNotAssignedTicketsBySpace

      public List<TopicEntity> getNotAssignedTicketsBySpace(String space)
    • getNotAssignedTickets

      public List<TopicEntity> getNotAssignedTickets()
    • findTicketsForReminder

      public List<TopicEntity> findTicketsForReminder(Calendar toDate)
    • findTicketsForSLAReminder

      public List<TopicEntity> findTicketsForSLAReminder(Calendar instant)
    • countTickets

      public Long countTickets(SpaceEntity space, IssueType type)
    • getEmptyTitleOrCreationDate

      @Deprecated public List<TopicEntity> getEmptyTitleOrCreationDate()
      Deprecated.
    • getWithEmptyTicketID

      public List<TopicEntity> getWithEmptyTicketID()
    • getOpenTicketsBySpace

      public List<TopicEntity> getOpenTicketsBySpace(String selectedSpace, String selectedStatus)
    • findByTicketId

      public TopicEntity findByTicketId(String ticketId)
    • findByStatus

      public List<TopicEntity> findByStatus(String selectedStatus)
    • getOpenTicketsByStatus

      public List<TopicEntity> getOpenTicketsByStatus(String selectedStatus)
    • 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)