Interface TicketService
- All Known Implementing Classes:
DefaultTicketService
public interface TicketService
Service to provide mechanism to find CsTickets by various attributes. Also provides methods to retrieve lists of
Agents, AgentGroups, Priorities, States, Intervention Types and Reasons based on the available instances at runtime.
- Spring Bean ID:
- ticketService
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves a list of the AgentGroups.Retrieves a list of the AgentGroups for the provided BaseStoreRetrieves a list of the Agents as Employees.Retrieves a list of the Agents as Employees for the provided BaseStoregetAssociatedObject(String associatedCode, String userUid, String siteUid) Extract associatedTo object as AbstractOrderModelRetrieves all available Event Reasons in the system.getEventsForTicket(CsTicketModel ticket) Gets all ticket events forCsTicketModelobject.Retrieves all available Intervention Types in the system.Retrieves all available Resolution Types in the system.Retrieves all available Ticket Categories in the system.Gets all ticket events forCsTicketModelobject excluding private messages.getTicketForTicketEvent(CsTicketEventModel ticketEvent) Gets the ticket for givenCsTicketEventModelobject.getTicketForTicketId(String ticketId) Lookup a specific ticket by ticket IDRetrieves all available Ticket Priorities in the system.getTicketsForAgent(EmployeeModel agent) Find all the tickets that are assigned to the Agent.getTicketsForAgentGroup(CsAgentGroupModel agentGroup) Find all the tickets assigned to the AgentGroup.getTicketsForCategory(CsTicketCategory... category) Find all the tickets that have the provided categories.getTicketsForCustomer(UserModel customer) Find all tickets that are associated with the customer.Find all tickets that are associated with the customer in order by Modified date and time.getTicketsForCustomerOrderByModifiedTime(UserModel user, BaseSiteModel baseSite, PageableData pageableData) Find all tickets that are associated with the customer in order by Modified date and time.getTicketsForOrder(OrderModel order) Find all the tickets that are associated with the order.getTicketsForPriority(CsTicketPriority... priority) Find all the tickets that have the provided priorities.getTicketsForResolutionType(CsResolutionType... resolutionType) Find all the tickets that have the provided Resolution Type(s).getTicketsForState(CsTicketState... state) Find all the tickets that are in the provided states.Retrieves all available Ticket States in the system.getTicketType(String type) Get the comment type given the code of that type
-
Method Details
-
getAgentGroups
List<CsAgentGroupModel> getAgentGroups()Retrieves a list of the AgentGroups.- Returns:
- The list of AgentGroups
-
getAgentGroupsForBaseStore
Retrieves a list of the AgentGroups for the provided BaseStore- Parameters:
store- The BaseStore to retrieve AgentGroups for- Returns:
- The list of AgentGroups
-
getAgents
List<EmployeeModel> getAgents()Retrieves a list of the Agents as Employees.- Returns:
- The list of Agents
-
getAgentsForBaseStore
Retrieves a list of the Agents as Employees for the provided BaseStore- Parameters:
store- The BaseStore to retrieve Agents for- Returns:
- The list of Agents
-
getEventReasons
List<CsEventReason> getEventReasons()Retrieves all available Event Reasons in the system.- Returns:
- The list of Event Reasons
-
getEventsForTicket
Gets all ticket events forCsTicketModelobject.- Parameters:
ticket- theCsTicketModelfor which to return ticket events.- Returns:
- A list of ticket events.
-
getTicketEventsForCustomerByTicket
Gets all ticket events forCsTicketModelobject excluding private messages.- Parameters:
ticket- theCsTicketModelfor which to return ticket events.- Returns:
- A list of ticket events.
-
getInterventionTypes
List<CsInterventionType> getInterventionTypes()Retrieves all available Intervention Types in the system.- Returns:
- The list of Intervention Types
-
getResolutionTypes
List<CsResolutionType> getResolutionTypes()Retrieves all available Resolution Types in the system.- Returns:
- The list of Resolution Types
-
getTicketCategories
List<CsTicketCategory> getTicketCategories()Retrieves all available Ticket Categories in the system.- Returns:
- The list of Ticket Categories
-
getTicketForTicketEvent
Gets the ticket for givenCsTicketEventModelobject.- Parameters:
ticketEvent- the ticket event- Returns:
- the ticket
-
getTicketForTicketId
Lookup a specific ticket by ticket ID- Parameters:
ticketId- The id of the ticket to lookup- Returns:
- The ticket with that Id
-
getTicketPriorities
List<CsTicketPriority> getTicketPriorities()Retrieves all available Ticket Priorities in the system.- Returns:
- The list of Ticket Priorities
-
getTicketsForAgent
Find all the tickets that are assigned to the Agent.- Parameters:
agent- The agent to find assigned tickets for- Returns:
- A list of tickets matching search criteria
-
getTicketsForAgentGroup
Find all the tickets assigned to the AgentGroup.- Parameters:
agentGroup- The AgentGroup to find assigned tickets for- Returns:
- A list of tickets matching search criteria
-
getTicketsForCategory
Find all the tickets that have the provided categories.- Parameters:
category- The category/categories for which to return tickets. The number of arguments is variable and may be zero, although zero arguments will return an empty list.- Returns:
- A list of tickets matching search criteria
-
getTicketsForCustomer
Find all tickets that are associated with the customer.- Parameters:
customer- The customer to find tickets for- Returns:
- A list of tickets matching search criteria
-
getTicketsForOrder
Find all the tickets that are associated with the order.- Parameters:
order- The order to find tickets for- Returns:
- A list of tickets matching search criteria
-
getTicketsForPriority
Find all the tickets that have the provided priorities.- Parameters:
priority- The priority/priorities for which to return tickets. The number of arguments is variable and may be zero, although zero arguments will return an empty list.- Returns:
- A list of tickets matching search criteria
-
getTicketsForResolutionType
Find all the tickets that have the provided Resolution Type(s).- Parameters:
resolutionType- The Resolution Type(s) for which to return tickets. The number of arguments is variable and may be zero, although zero arguments will return an empty list.- Returns:
- A list of tickets matching search criteria
-
getTicketsForState
Find all the tickets that are in the provided states.- Parameters:
state- The state(s) for which to return tickets. The number of arguments is variable and may be zero, although zero arguments will return an empty list.- Returns:
- A list of tickets matching search criteria
-
getTicketStates
List<CsTicketState> getTicketStates()Retrieves all available Ticket States in the system.- Returns:
- The list of Ticket States
-
getTicketType
Get the comment type given the code of that type- Parameters:
type- The type code of comment type to get- Returns:
- The comment type represented by the type code
-
getTicketsForCustomerOrderByModifiedTime
Find all tickets that are associated with the customer in order by Modified date and time.- Parameters:
user- the UserModel whose tickets to be returned- Returns:
- List
-
getTicketsForCustomerOrderByModifiedTime
SearchPageData<CsTicketModel> getTicketsForCustomerOrderByModifiedTime(UserModel user, BaseSiteModel baseSite, PageableData pageableData) Find all tickets that are associated with the customer in order by Modified date and time.- Parameters:
user- the UserModel whose tickets to be returnedbaseSite- the base sitepageableData- the pageable data- Returns:
- List
-
getAssociatedObject
Extract associatedTo object as AbstractOrderModel- Parameters:
associatedCode- code of associated objectuserUid- optionalsiteUid- optional- Returns:
- AbstractOrderModel, nullable
-