Interface TicketSearchService
- All Known Implementing Classes:
DefaultTicketSearchService
public interface TicketSearchService
Service for finding tickets
-
Method Summary
Modifier and TypeMethodDescriptionsearchForTickets(EmployeeModel agent, CsAgentGroupModel group, CsTicketState state) Search for all the tickets with matching assigned Agent and assigned AgentGroup and Ticket State.searchForTickets(String searchString) Search for all tickets where the searchString appears in the headline or comment bodies of the ticket.searchForTickets(String searchString, Set<CsTicketState> states) Search for all tickets where the searchString appears in the headline or comment bodies of the ticket.
-
Method Details
-
searchForTickets
Search for all tickets where the searchString appears in the headline or comment bodies of the ticket.- Parameters:
searchString- The string to search for- Returns:
- A list of tickets that contain the searchString text in their headline or comment bodies
-
searchForTickets
Search for all tickets where the searchString appears in the headline or comment bodies of the ticket. The resulting tickets must also be in one of the specified states.- Parameters:
searchString- The string to search forstates- The states that a ticket must be in to match the criteria- Returns:
- A list of tickets that contain the searchString text in their headline or comment bodies
-
searchForTickets
List<CsTicketModel> searchForTickets(EmployeeModel agent, CsAgentGroupModel group, CsTicketState state) Search for all the tickets with matching assigned Agent and assigned AgentGroup and Ticket State. If any arguments are provided as null then the argument will not be used in the search.- Parameters:
agent- The assigned Agent to matchgroup- The assigned AgentGroup to matchstate- The Ticket State to match- Returns:
- A list of Tickets matching the search criteria.
-