Package org.exoplatform.cs.service
Class TicketService
- java.lang.Object
-
- org.exoplatform.cs.service.BaseService
-
- org.exoplatform.cs.service.TicketService
-
public class TicketService extends BaseService
Created by The eXo Platform SAS- Since:
- Apr 27, 2016
- Author:
- boubaker.khanfir@exoplatform.com
-
-
Field Summary
-
Fields inherited from class org.exoplatform.cs.service.BaseService
environmentDAO, spaceDAO, topicDAO, typeDAO
-
-
Constructor Summary
Constructors Constructor Description TicketService(org.exoplatform.forum.service.ForumService forumService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.task.service.ProjectService projectService, org.exoplatform.task.service.StatusService statusService, org.exoplatform.task.service.TaskService taskService, SlaService slaService, EnvironmentDAO environmentDAO, SpaceDAO spaceDAO, TopicDAO topicDAO, LogDAO logDAO, org.exoplatform.social.core.manager.IdentityManager identityManager)
-
Method Summary
-
Methods inherited from class org.exoplatform.cs.service.BaseService
convert, convert
-
-
-
-
Constructor Detail
-
TicketService
public TicketService(org.exoplatform.forum.service.ForumService forumService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.task.service.ProjectService projectService, org.exoplatform.task.service.StatusService statusService, org.exoplatform.task.service.TaskService taskService, SlaService slaService, EnvironmentDAO environmentDAO, SpaceDAO spaceDAO, TopicDAO topicDAO, LogDAO logDAO, org.exoplatform.social.core.manager.IdentityManager identityManager)
-
-
Method Detail
-
getTopicEnvironment
public EnvironmentDTO getTopicEnvironment(String topicId)
-
getTicketsEntityByEnvironment
public List<TopicEntity> getTicketsEntityByEnvironment(Long id)
-
getTickets
public List<TicketDTO> getTickets(String selectedSpace, boolean allTickets, String selectedStatus)
-
getAllTickets
public List<TopicEntity> getAllTickets()
-
getAllTicketsWithPagination
public List<TicketDTO> getAllTicketsWithPagination(int offset, int limit)
-
getAssignedTickets
public List<TicketDTO> getAssignedTickets(String assignee, String selectedSpace, boolean allTickets, String selectedStatus)
-
getMyTickets
public List<TicketDTO> getMyTickets(String creator, String selectedSpace, boolean allTickets, String selectedStatus)
-
getManagersGroupId
public String getManagersGroupId(String spaceGroupId) throws Exception
- Throws:
Exception
-
getSpaceByGroupId
public SpaceEntity getSpaceByGroupId(String groupID)
-
updateTicket
public TicketDTO updateTicket(TicketDTO ticketDTO, org.exoplatform.services.organization.User user) throws Exception
Update Ticket- Parameters:
ticketDTO- the customer ticketuser- The user who updated the ticket- Returns:
- TicketDTO updated
- Throws:
Exception- if broadcasting the event failed
-
updateTicketCreator
public void updateTicketCreator(TicketDTO ticketDTO, String creator) throws Exception
Update the creator on the entity- Parameters:
ticketDTO- the ticket to updatecreator- the creator of the ticket- Throws:
Exception
-
updateTicketSatisfaction
public void updateTicketSatisfaction(TicketDTO ticketDTO, String userId) throws Exception
Update the creator on the entity- Parameters:
ticketDTO- the ticket to update- Throws:
Exception
-
updateTicketOwner
public void updateTicketOwner(TicketDTO ticketDTO, Owner owner) throws Exception
Update the creator on the entity- Parameters:
ticketDTO- the ticket to updateowner- the creator of the ticket- Throws:
Exception
-
updateTicketAssignee
public void updateTicketAssignee(TicketDTO ticketDTO, String assignee) throws Exception
Update the creator on the entity- Parameters:
ticketDTO- the ticket to updateassignee- the assignee of the ticket- Throws:
Exception
-
cancelTicketWarning
public void cancelTicketWarning(TicketDTO ticketDTO) throws Exception
CancelTicketWarning- Parameters:
ticketDTO- the ticket to update- Throws:
Exception
-
updateTicketLink
public void updateTicketLink(TicketDTO ticket, String link)
Update the link on the entity- Parameters:
ticket- the ticket to updatelink- the link of the ticket
-
createTicket
public void createTicket(TicketDTO ticketDTO, org.exoplatform.services.organization.User user, String spaceLink) throws Exception
- Throws:
Exception
-
deleteTicket
public void deleteTicket(TicketDTO ticket)
Delete a ticket and the related task or forum topic- Parameters:
ticket- The ticket to delete
-
getUpdatedTickets
public List<TicketDTO> getUpdatedTickets(String status, String space, Calendar fromDate, Calendar toDate)
-
getCreatedTickets
public List<TicketDTO> getCreatedTickets(String space, Calendar fromDate, Calendar toDate)
-
notifyCustomerRate
public void notifyCustomerRate(TicketDTO ticketDTO, String raterUsername, boolean isRatedFromMail)
-
findTicketsForReminder
public List<TopicEntity> findTicketsForReminder(Calendar toDate)
-
findAllTickets
public List<TopicEntity> findAllTickets()
-
getTicketsCount
public Long getTicketsCount(SpaceEntity space, IssueType type)
-
countCustomerTicketsGroupdBySpace
public List<Object[]> countCustomerTicketsGroupdBySpace(boolean internal)
-
countCustomerTicketsGroupdByOwner
public List<Object[]> countCustomerTicketsGroupdByOwner(boolean internal)
-
countCustomerTicketsGroupdByStatus
public List<Object[]> countCustomerTicketsGroupdByStatus(boolean internal)
-
getCustomerOpenTicketsCount
public Long getCustomerOpenTicketsCount(boolean internal)
-
getCustomerClosedTicketsCount
public Long getCustomerClosedTicketsCount(boolean internal)
-
getCustomerOpenTicketsCountByDates
public Long getCustomerOpenTicketsCountByDates(boolean internal, Calendar from, Calendar to)
-
getCustomerClosedTicketsCountByDates
public Long getCustomerClosedTicketsCountByDates(boolean internal, Calendar from, Calendar to)
-
countCustomerTicketsGroupdByStatusAndDates
public List<Object[]> countCustomerTicketsGroupdByStatusAndDates(boolean internal, Calendar from, Calendar to)
-
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)
-
getTimeToFirstResponseAvg
public Double getTimeToFirstResponseAvg(boolean internal)
-
getTimeToResolutionAvg
public Double getTimeToResolutionAvg(boolean internal)
-
countSpaceTicketsGroupdByStatus
public List<Object[]> countSpaceTicketsGroupdByStatus(String space)
-
countSpaceTicketsGroupdByAssignee
public List<Object[]> countSpaceTicketsGroupdByAssignee(String space)
-
countCustomerTicketsGroupdByAssigneeAndDates
public List<Object[]> countCustomerTicketsGroupdByAssigneeAndDates(boolean internal, Calendar from, Calendar to)
-
countCustomerTicketsGroupdByAssigne
public List<Object[]> countCustomerTicketsGroupdByAssigne(boolean internal)
-
countCustomerTicketsGroupdBySeverityAndDates
public List<Object[]> countCustomerTicketsGroupdBySeverityAndDates(boolean internal, Calendar from, Calendar to)
-
countCustomerTicketsGroupdBySeverity
public List<Object[]> countCustomerTicketsGroupdBySeverity(boolean internal)
-
countSpaceSatisfiedTicketNumberByDates
public Long countSpaceSatisfiedTicketNumberByDates(String space, Calendar from, Calendar to)
-
countSpaceNotSatisfiedTicketNumberByDates
public Long countSpaceNotSatisfiedTicketNumberByDates(String space, Calendar from, Calendar to)
-
-