public class TicketService extends BaseService
environmentDAO, spaceDAO, topicDAO, typeDAO| Constructor and Description |
|---|
TicketService(org.exoplatform.forum.service.ForumService forumService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.task.legacy.service.ProjectService projectService,
org.exoplatform.task.legacy.service.StatusService statusService,
org.exoplatform.task.legacy.service.TaskService taskService,
SlaService slaService,
EnvironmentDAO environmentDAO,
SpaceDAO spaceDAO,
TopicDAO topicDAO,
LogDAO logDAO,
org.exoplatform.social.core.manager.IdentityManager identityManager) |
convert, convertpublic TicketService(org.exoplatform.forum.service.ForumService forumService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.task.legacy.service.ProjectService projectService,
org.exoplatform.task.legacy.service.StatusService statusService,
org.exoplatform.task.legacy.service.TaskService taskService,
SlaService slaService,
EnvironmentDAO environmentDAO,
SpaceDAO spaceDAO,
TopicDAO topicDAO,
LogDAO logDAO,
org.exoplatform.social.core.manager.IdentityManager identityManager)
public EnvironmentDTO getTopicEnvironment(String topicId)
public List<TopicEntity> getTicketsEntityByEnvironment(Long id)
public List<TicketDTO> getTickets(String selectedSpace, boolean allTickets, String selectedStatus)
public List<TopicEntity> getAllTickets()
public List<TicketDTO> getAllTicketsWithPagination(int offset, int limit)
public List<TicketDTO> getAssignedTickets(String assignee, String selectedSpace, boolean allTickets, String selectedStatus)
public List<TicketDTO> getMyTickets(String creator, String selectedSpace, boolean allTickets, String selectedStatus)
public String getManagersGroupId(String spaceGroupId) throws Exception
Exceptionpublic SpaceEntity getSpaceByGroupId(String groupID)
public TicketDTO updateTicket(TicketDTO ticketDTO, org.exoplatform.services.organization.User user) throws Exception
ticketDTO - the customer ticketuser - The user who updated the ticketException - if broadcasting the event failedpublic void updateTicketCreator(TicketDTO ticketDTO, String creator) throws Exception
ticketDTO - the ticket to updatecreator - the creator of the ticketExceptionpublic void updateTicketSatisfaction(TicketDTO ticketDTO, String userId) throws Exception
ticketDTO - the ticket to updateExceptionpublic void updateTicketOwner(TicketDTO ticketDTO, Owner owner) throws Exception
ticketDTO - the ticket to updateowner - the creator of the ticketExceptionpublic void updateTicketAssignee(TicketDTO ticketDTO, String assignee) throws Exception
ticketDTO - the ticket to updateassignee - the assignee of the ticketExceptionpublic void cancelTicketWarning(TicketDTO ticketDTO) throws Exception
ticketDTO - the ticket to updateExceptionpublic void updateTicketLink(TicketDTO ticket, String link)
ticket - the ticket to updatelink - the link of the ticketpublic void createTicket(TicketDTO ticketDTO, org.exoplatform.services.organization.User user, String spaceLink) throws Exception
Exceptionpublic void deleteTicket(TicketDTO ticket)
ticket - The ticket to deletepublic List<TicketDTO> getUpdatedTickets(String status, String space, Calendar fromDate, Calendar toDate)
public List<TicketDTO> getCreatedTickets(String space, Calendar fromDate, Calendar toDate)
public void notifyCustomerRate(TicketDTO ticketDTO, String raterUsername, boolean isRatedFromMail)
public List<TopicEntity> findTicketsForReminder(Calendar toDate)
public List<TopicEntity> findAllTickets()
public Long getTicketsCount(SpaceEntity space, IssueType type)
public List<Object[]> countCustomerTicketsGroupdBySpace(boolean internal)
public List<Object[]> countCustomerTicketsGroupdByOwner(boolean internal)
public List<Object[]> countCustomerTicketsGroupdByStatus(boolean internal)
public Long getCustomerOpenTicketsCount(boolean internal)
public Long getCustomerClosedTicketsCount(boolean internal)
public Long getCustomerOpenTicketsCountByDates(boolean internal, Calendar from, Calendar to)
public Long getCustomerClosedTicketsCountByDates(boolean internal, Calendar from, Calendar to)
public List<Object[]> countCustomerTicketsGroupdByStatusAndDates(boolean internal, Calendar from, Calendar to)
public Long countSatisfiedTicketNumber(boolean internal)
public Long countSatisfiedTicketNumberByDates(boolean internal, Calendar from, Calendar to)
public Long countNotSatisfiedTicketNumber(boolean internal)
public Long countNotSatisfiedTicketNumberByDates(boolean internal, Calendar from, Calendar to)
public Double getTimeToFirstResponseAvg(boolean internal)
public Double getTimeToResolutionAvg(boolean internal)
public List<Object[]> countSpaceTicketsGroupdByAssignee(String space)
public List<Object[]> countCustomerTicketsGroupdByAssigneeAndDates(boolean internal, Calendar from, Calendar to)
public List<Object[]> countCustomerTicketsGroupdByAssigne(boolean internal)
public List<Object[]> countCustomerTicketsGroupdBySeverityAndDates(boolean internal, Calendar from, Calendar to)
public List<Object[]> countCustomerTicketsGroupdBySeverity(boolean internal)
public Long countSpaceSatisfiedTicketNumberByDates(String space, Calendar from, Calendar to)
public Long countSpaceNotSatisfiedTicketNumberByDates(String space, Calendar from, Calendar to)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.