Class DefaultTicketSearchService
- java.lang.Object
-
- de.hybris.platform.ticket.service.impl.DefaultTicketSearchService
-
- All Implemented Interfaces:
TicketSearchService
public class DefaultTicketSearchService extends java.lang.Object implements TicketSearchService
This service class is used for finding tickets
-
-
Constructor Summary
Constructors Constructor Description DefaultTicketSearchService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CsTicketModel>searchForTickets(EmployeeModel agent, CsAgentGroupModel group, CsTicketState state)Search for all the tickets with matching assigned Agent and assigned AgentGroup and Ticket State.java.util.List<CsTicketModel>searchForTickets(java.lang.String searchString)Search for all tickets where the searchString appears in the headline or comment bodies of the ticket.java.util.List<CsTicketModel>searchForTickets(java.lang.String searchString, java.util.Set<CsTicketState> states)Search for all tickets where the searchString appears in the headline or comment bodies of the ticket.voidsetTicketDao(TicketDao ticketDao)
-
-
-
Method Detail
-
searchForTickets
public java.util.List<CsTicketModel> searchForTickets(java.lang.String searchString)
Description copied from interface:TicketSearchServiceSearch for all tickets where the searchString appears in the headline or comment bodies of the ticket.- Specified by:
searchForTicketsin interfaceTicketSearchService- Parameters:
searchString- The string to search for- Returns:
- A list of tickets that contain the searchString text in their headline or comment bodies
-
searchForTickets
public java.util.List<CsTicketModel> searchForTickets(java.lang.String searchString, java.util.Set<CsTicketState> states)
Description copied from interface:TicketSearchServiceSearch 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.- Specified by:
searchForTicketsin interfaceTicketSearchService- 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
public java.util.List<CsTicketModel> searchForTickets(EmployeeModel agent, CsAgentGroupModel group, CsTicketState state)
Description copied from interface:TicketSearchServiceSearch 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.- Specified by:
searchForTicketsin interfaceTicketSearchService- 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.
-
setTicketDao
public void setTicketDao(TicketDao ticketDao)
-
-