Package org.exoplatform.cs.dao
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
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncountClosedCustomerTickets(boolean internal) countClosedCustomerTicketsByDates(boolean internal, Calendar from, Calendar to) countClosedSpaceTickets(String selectedSpace) countCustomerTicketsGroupdByAssignee(boolean internal) countCustomerTicketsGroupdByAssigneeAndDates(boolean internal, Calendar from, Calendar to) countCustomerTicketsGroupdByOwner(boolean internal) countCustomerTicketsGroupdBySeverity(boolean internal) countCustomerTicketsGroupdBySeverityAndDates(boolean internal, Calendar from, Calendar to) countCustomerTicketsGroupdBySpace(boolean internal) countCustomerTicketsGroupdByStatus(boolean internal) countCustomerTicketsGroupdByStatusAndDates(boolean internal, Calendar from, Calendar to) countNotSatisfiedTicketNumber(boolean internal) countNotSatisfiedTicketNumberByDates(boolean internal, Calendar from, Calendar to) countOpenCustomerTickets(boolean internal) countOpenCustomerTicketsByDates(boolean internal, Calendar from, Calendar to) countOpenSpaceTickets(String selectedSpace) countSatisfiedTicketNumber(boolean internal) countSatisfiedTicketNumberByDates(boolean internal, Calendar from, Calendar to) countSpaceNotSatisfiedTicketNumber(String selectedSpace) countSpaceNotSatisfiedTicketNumberByDates(String selectedSpace, Calendar from, Calendar to) countSpaceSatisfiedTicketNumber(String selectedSpace) countSpaceSatisfiedTicketNumberByDates(String selectedSpace, Calendar from, Calendar to) countSpaceTicketsGroupdByAssignee(String selectedSpace) countSpaceTicketsGroupdByOwner(String selectedSpace) countSpaceTicketsGroupdBySeverity(String selectedSpace) countSpaceTicketsGroupdByStatus(String selectedSpace) countTickets(SpaceEntity space, IssueType type) findByStatus(String selectedStatus) findByTicketId(String ticketId) findTicketsForReminder(Calendar toDate) findTicketsForSLAReminder(Calendar instant) findUpdatedBetween(Calendar fromDate, Calendar toDate) getAllTicketsWithPagination(int offset, int limit) getCreatedTickets(Calendar fromDate, Calendar toDate) getCreatedTicketsBySpace(String space, Calendar fromDate, Calendar toDate) Deprecated.getOpenTicketsBySpace(String selectedSpace, String selectedStatus) getOpenTicketsByStatus(String selectedStatus) doublegetSpaceTimeToFirstResponseAvg(String selectedSpace) doublegetSpaceTimeToResolutionAvg(String selectedSpace) doublegetTimeToFirstResponseAvg(boolean internal) doublegetTimeToResolutionAvg(boolean internal) getTopicsByAssignee(String assignee, boolean allTickets, String selectedStatus) Fetches all topics by assigneegetTopicsByAssignee(String assignee, String selectedSpace, boolean allTickets, String selectedStatus) Fetches all topics by assigneegetTopicsByCreator(String creator, boolean allTickets, String selectedStatus) Fetches all topics by creatorgetTopicsByCreator(String creator, String selectedSpace, boolean allTickets, String selectedStatus) Fetches all topics by creatorgetTopicsByEnvironment(Long environmentId) getTopicsBySpace(String spaceGroupId, String selectedStatus) getUpdatedTicketsBySpace(String space, Calendar fromDate, Calendar toDate) getUpdatedTicketsBySpaceAndStatus(String space, String status, Calendar fromDate, Calendar toDate) getUpdatedTicketsByStatus(String status, Calendar fromDate, Calendar toDate) Methods inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAll
-
Constructor Details
-
TopicDAO
public TopicDAO()
-
-
Method Details
-
getTopicsBySpace
-
getTopicsByEnvironment
-
getTopicsByAssignee
public List<TopicEntity> getTopicsByAssignee(String assignee, boolean allTickets, String selectedStatus) Fetches all topics by assignee- Parameters:
assignee- The assignee IDallTickets- true if we need to get closed tickets, false otherwiseselectedStatus-- 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 IDselectedSpace- the space to retrieve tickets fromallTickets- true if we need to get closed tickets, false otherwise- Returns:
- List of Topic entities
-
getOpenTickets
-
findUpdatedBetween
-
getUpdatedTicketsByStatus
public List<TopicEntity> getUpdatedTicketsByStatus(String status, Calendar fromDate, Calendar toDate) -
getUpdatedTicketsBySpaceAndStatus
-
getUpdatedTicketsBySpace
-
getAllTickets
-
getAllTicketsWithPagination
-
getCreatedTicketsBySpace
-
getCreatedTickets
-
getNotAssignedTicketsBySpace
-
getNotAssignedTickets
-
findTicketsForReminder
-
findTicketsForSLAReminder
-
countTickets
-
getEmptyTitleOrCreationDate
Deprecated. -
getWithEmptyTicketID
-
getOpenTicketsBySpace
-
findByTicketId
-
findByStatus
-
getOpenTicketsByStatus
-
getTopicsByCreator
public List<TopicEntity> getTopicsByCreator(String creator, boolean allTickets, String selectedStatus) Fetches all topics by creator- Parameters:
creator- The creator IDallTickets- true if we need to get closed tickets, false otherwiseselectedStatus-- 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 IDselectedSpace- the space to retrieve tickets fromallTickets- true if we need to get closed tickets, false otherwise- Returns:
- List of Topic entities
-
countCustomerTicketsGroupdBySpace
-
countCustomerTicketsGroupdByOwner
-
countCustomerTicketsGroupdByStatus
-
countSpaceTicketsGroupdByStatus
-
countSpaceTicketsGroupdByOwner
-
countSpaceTicketsGroupdByAssignee
-
countOpenCustomerTickets
-
countClosedCustomerTickets
-
countOpenSpaceTickets
-
countClosedSpaceTickets
-
countOpenCustomerTicketsByDates
-
countClosedCustomerTicketsByDates
-
countCustomerTicketsGroupdByStatusAndDates
-
countCustomerTicketsGroupdByAssigneeAndDates
-
countCustomerTicketsGroupdByAssignee
-
countUnresolvedTicketsGroupdByAssignee
-
countCustomerTicketsGroupdBySeverityAndDates
-
countCustomerTicketsGroupdBySeverity
-
countSpaceTicketsGroupdBySeverity
-
getTimeToResolutionAvg
public double getTimeToResolutionAvg(boolean internal) -
getTimeToFirstResponseAvg
public double getTimeToFirstResponseAvg(boolean internal) -
countSatisfiedTicketNumber
-
countSatisfiedTicketNumberByDates
-
countNotSatisfiedTicketNumber
-
countNotSatisfiedTicketNumberByDates
-
getSpaceTimeToResolutionAvg
-
getSpaceTimeToFirstResponseAvg
-
countSpaceSatisfiedTicketNumber
-
countSpaceSatisfiedTicketNumberByDates
-
countSpaceNotSatisfiedTicketNumber
-
countSpaceNotSatisfiedTicketNumberByDates
-