Package org.exoplatform.cs.service
Class TicketService
java.lang.Object
org.exoplatform.cs.service.BaseService
org.exoplatform.cs.service.TicketService
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
ConstructorsConstructorDescriptionTicketService(org.exoplatform.forum.service.ForumService forumService, TicketAttachmentService ticketAttachmentService, 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
Modifier and TypeMethodDescriptionvoidcancelTicketWarning(TicketDTO ticketDTO) CancelTicketWarningcountCustomerTicketsGroupdByAssigne(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) countSatisfiedTicketNumber(boolean internal) countSatisfiedTicketNumberByDates(boolean internal, Calendar from, Calendar to) countSpaceNotSatisfiedTicketNumberByDates(String space, Calendar from, Calendar to) countSpaceSatisfiedTicketNumberByDates(String space, Calendar from, Calendar to) voidcreateTicket(TicketDTO ticketDTO, org.exoplatform.services.organization.User user, String spaceLink) voiddeleteTicket(TicketDTO ticket) Delete a ticket and the related task or forum topicfindByTicketId(String ticketId) findTicketsForReminder(Calendar toDate) getAllTicketsWithPagination(int offset, int limit) getAssignedTickets(String assignee, String selectedSpace, boolean allTickets, String selectedStatus) getCreatedTickets(String space, Calendar fromDate, Calendar toDate) getCustomerClosedTicketsCount(boolean internal) getCustomerClosedTicketsCountByDates(boolean internal, Calendar from, Calendar to) getCustomerOpenTicketsCount(boolean internal) getCustomerOpenTicketsCountByDates(boolean internal, Calendar from, Calendar to) getManagersGroupId(String spaceGroupId) getMyTickets(String creator, String selectedSpace, boolean allTickets, String selectedStatus) getNotAssignedTickets(String space) getSpaceByGroupId(String groupID) getTickets(String selectedSpace, boolean allTickets, String selectedStatus) getTickets(Calendar fromDate, Calendar toDate) getTicketsCount(SpaceEntity space, IssueType type) getTimeToFirstResponseAvg(boolean internal) getTimeToResolutionAvg(boolean internal) getTopicEnvironment(String topicId) getUpdatedTickets(String status, String space, Calendar fromDate, Calendar toDate) getUpdatedTickets(Calendar from, Calendar to) voidnotifyCustomerRate(TicketDTO ticketDTO, String raterUsername, boolean isRatedFromMail) updateTicket(TicketDTO ticketDTO, org.exoplatform.services.organization.User user) Update TicketvoidupdateTicketAssignee(TicketDTO ticketDTO, String assignee) Update the creator on the entityvoidupdateTicketCreator(TicketDTO ticketDTO, String creator) Update the creator on the entityvoidupdateTicketLink(TicketDTO ticket, String link) Update the link on the entityvoidupdateTicketOwner(TicketDTO ticketDTO, Owner owner) Update the creator on the entityvoidupdateTicketSatisfaction(TicketDTO ticketDTO, String userId) Update the creator on the entityMethods inherited from class org.exoplatform.cs.service.BaseService
convert, convert
-
Constructor Details
-
TicketService
public TicketService(org.exoplatform.forum.service.ForumService forumService, TicketAttachmentService ticketAttachmentService, 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 Details
-
getTopicEnvironment
-
getTicketsOfSpace
-
getTicketsByEnvironment
-
getTicketsEntityByEnvironment
-
getTickets
-
getAllTickets
-
getAllTicketsWithPagination
-
getAssignedTickets
-
getMyTickets
-
getManagersGroupId
- Throws:
Exception
-
getSpaceByGroupId
-
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
Update the creator on the entity- Parameters:
ticketDTO- the ticket to updatecreator- the creator of the ticket- Throws:
Exception
-
updateTicketSatisfaction
Update the creator on the entity- Parameters:
ticketDTO- the ticket to update- Throws:
Exception
-
updateTicketOwner
Update the creator on the entity- Parameters:
ticketDTO- the ticket to updateowner- the creator of the ticket- Throws:
Exception
-
updateTicketAssignee
Update the creator on the entity- Parameters:
ticketDTO- the ticket to updateassignee- the assignee of the ticket- Throws:
Exception
-
cancelTicketWarning
CancelTicketWarning- Parameters:
ticketDTO- the ticket to update- Throws:
Exception
-
updateTicketLink
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
Delete a ticket and the related task or forum topic- Parameters:
ticket- The ticket to delete
-
getTickets
-
getUpdatedTickets
-
getCreatedTickets
-
getNotAssignedTickets
-
notifyCustomerRate
-
findTicketsForReminder
-
findAllTickets
-
getTicketsCount
-
getUpdatedTickets
-
findById
-
findByTicketId
-
countCustomerTicketsGroupdBySpace
-
countCustomerTicketsGroupdByOwner
-
countCustomerTicketsGroupdByStatus
-
getCustomerOpenTicketsCount
-
getCustomerClosedTicketsCount
-
getCustomerOpenTicketsCountByDates
-
getCustomerClosedTicketsCountByDates
-
countCustomerTicketsGroupdByStatusAndDates
-
countSatisfiedTicketNumber
-
countSatisfiedTicketNumberByDates
-
countNotSatisfiedTicketNumber
-
countNotSatisfiedTicketNumberByDates
-
getTimeToFirstResponseAvg
-
getTimeToResolutionAvg
-
countSpaceTicketsGroupdByStatus
-
countSpaceTicketsGroupdByOwner
-
countSpaceTicketsGroupdByAssignee
-
countCustomerTicketsGroupdByAssigneeAndDates
-
countCustomerTicketsGroupdByAssigne
-
countCustomerTicketsGroupdBySeverityAndDates
-
countCustomerTicketsGroupdBySeverity
-
countSpaceSatisfiedTicketNumber
-
countSpaceSatisfiedTicketNumberByDates
-
countSpaceNotSatisfiedTicketNumber
-
countSpaceNotSatisfiedTicketNumberByDates
-
getSpaceTimeToFirstResponseAvg
-
getSpaceTimeToResolutionAvg
-