Class DefaultTicketDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.ticket.dao.impl.DefaultTicketDao
Default implementation of
TicketDao interface.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SortQueryDatacreateSortQueryData(String sortCode, String query) findTicketEventsByEventCode(CsTicketModel ticket, String eventCode) Lookup events of the specifiedCsTicketModelobject with the specified event codeFind all ticket events forCsTicketModelobject.findTicketEventsForCustomerByEventCode(CsTicketModel ticket, String eventCode) Lookup events of the specifiedCsTicketModelobject with the specified event code, excluding private messagesFind all ticket events forCsTicketModelobject excluding private messages.findTicketsByAgent(EmployeeModel agent) Find all the tickets that are assigned to the Agent.findTicketsByAgentGroup(CsAgentGroupModel agentGroup) Find all the tickets assigned to the AgentGroup.findTicketsByAgentGroupState(EmployeeModel agent, CsAgentGroupModel group, CsTicketState state) Find tickets by the specified agent, group and state.findTicketsByCategory(CsTicketCategory... category) Find all the tickets that have the provided categories.findTicketsByCustomer(UserModel customer) Find all tickets that are associated with the customer.Find all tickets that are associated with the customer in descending and order by Modified date time.findTicketsByCustomerOrderByModifiedTime(UserModel user, BaseSiteModel baseSite, PageableData pageableData) Find all tickets that are associated with the customer and current site, in descending and order by Modified date time.findTicketsById(String ticketId) Lookup tickets with the specified ticket idfindTicketsByOrder(OrderModel order) Find all the tickets that are associated with the order.findTicketsByPriority(CsTicketPriority... priority) Find all the tickets that have the provided priorities.findTicketsByResolutionType(CsResolutionType... resolutionType) Find all the tickets that have the provided Resolution Type(s).findTicketsByState(CsTicketState... state) Find all the tickets that are in the provided states.findTicketsByStringInTicketOrEvent(String searchString) Find tickets which contain the specified search string in the headline or any of the eventsfindTicketsByStringInTicketOrEventAndStates(String searchString, Set<CsTicketState> states) Find tickets which contain the specified search string in the headline or any of the events and that are also in the given list of states.Find all the tickets that are not assigned to an agent.Find all the tickets that are not assigne to an agent group.voidsetPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultTicketDao
public DefaultTicketDao()
-
-
Method Details
-
findTicketsByAgentGroupState
public List<CsTicketModel> findTicketsByAgentGroupState(EmployeeModel agent, CsAgentGroupModel group, CsTicketState state) Find tickets by the specified agent, group and state. If any of these parameters are null, they should be considered "don't care" - i.e. don't include in the query- Specified by:
findTicketsByAgentGroupStatein interfaceTicketDao- Parameters:
agent- The agent to search for or null if nonegroup- The group to search for or null if nonestate- The state to search for or null if any- Returns:
- The list of tickets matching the specified critera
-
findTicketsByStringInTicketOrEvent
Find tickets which contain the specified search string in the headline or any of the events- Specified by:
findTicketsByStringInTicketOrEventin interfaceTicketDao- Parameters:
searchString- The string to find in the ticket- Returns:
- The list of tickets matching the criteria
-
findTicketsByStringInTicketOrEventAndStates
public List<CsTicketModel> findTicketsByStringInTicketOrEventAndStates(String searchString, Set<CsTicketState> states) Find tickets which contain the specified search string in the headline or any of the events and that are also in the given list of states. If the list of states is empty or null then the state should not be considered in the query.- Specified by:
findTicketsByStringInTicketOrEventAndStatesin interfaceTicketDao- Parameters:
searchString- The string to find in the ticketstates- The states that any returned tickets should be in- Returns:
- The list of tickets matching the criteria
-
findTicketEventsByTicket
Find all ticket events forCsTicketModelobject.- Specified by:
findTicketEventsByTicketin interfaceTicketDao- Parameters:
ticket- theCsTicketModelfor which to return ticket events.- Returns:
- A list of ticket events matching search criteria.
-
findTicketEventsForCustomerByTicket
Find all ticket events forCsTicketModelobject excluding private messages.- Specified by:
findTicketEventsForCustomerByTicketin interfaceTicketDao- Parameters:
ticket- theCsTicketModelfor which to return ticket events.- Returns:
- A list of ticket events matching search criteria.
-
findTicketEventsByEventCode
Lookup events of the specifiedCsTicketModelobject with the specified event code- Specified by:
findTicketEventsByEventCodein interfaceTicketDao- Parameters:
ticket- theCsTicketModelfor which to return ticket events.eventCode- The code of the ticket event to lookup- Returns:
- The ticket events with that event code
-
findTicketEventsForCustomerByEventCode
public List<CsTicketEventModel> findTicketEventsForCustomerByEventCode(CsTicketModel ticket, String eventCode) Lookup events of the specifiedCsTicketModelobject with the specified event code, excluding private messages- Specified by:
findTicketEventsForCustomerByEventCodein interfaceTicketDao- Parameters:
ticket- theCsTicketModelfor which to return ticket events.eventCode- The code of the ticket event to lookup- Returns:
- The ticket events with that event code
-
findTicketsByAgent
Find all the tickets that are assigned to the Agent.- Specified by:
findTicketsByAgentin interfaceTicketDao- Parameters:
agent- The agent to find assigned tickets for- Returns:
- A list of tickets matching search criteria
-
findTicketsByAgentGroup
Find all the tickets assigned to the AgentGroup.- Specified by:
findTicketsByAgentGroupin interfaceTicketDao- Parameters:
agentGroup- The AgentGroup to find assigned tickets for- Returns:
- A list of tickets matching search criteria
-
findTicketsByCategory
Find all the tickets that have the provided categories.- Specified by:
findTicketsByCategoryin interfaceTicketDao- 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
-
findTicketsByCustomer
Find all tickets that are associated with the customer.- Specified by:
findTicketsByCustomerin interfaceTicketDao- Parameters:
customer- The customer to find tickets for- Returns:
- A list of tickets matching search criteria
-
findTicketsById
Lookup tickets with the specified ticket id- Specified by:
findTicketsByIdin interfaceTicketDao- Parameters:
ticketId- The id of the ticket to lookup- Returns:
- The tickets with that Id
-
findTicketsByOrder
Find all the tickets that are associated with the order.- Specified by:
findTicketsByOrderin interfaceTicketDao- Parameters:
order- The order to find tickets for- Returns:
- A list of tickets matching search criteria
-
findTicketsByPriority
Find all the tickets that have the provided priorities.- Specified by:
findTicketsByPriorityin interfaceTicketDao- 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
-
findTicketsByResolutionType
Find all the tickets that have the provided Resolution Type(s).- Specified by:
findTicketsByResolutionTypein interfaceTicketDao- 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
-
findTicketsByState
Find all the tickets that are in the provided states.- Specified by:
findTicketsByStatein interfaceTicketDao- 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
-
findTicketsWithNullAgent
Find all the tickets that are not assigned to an agent.- Specified by:
findTicketsWithNullAgentin interfaceTicketDao- Returns:
- A list of tickets not assigned to an agent
-
findTicketsWithNullAgentGroup
Find all the tickets that are not assigne to an agent group.- Specified by:
findTicketsWithNullAgentGroupin interfaceTicketDao- Returns:
- A list of tickets not assigned to an agent group
-
findTicketsByCustomerOrderByModifiedTime
Description copied from interface:TicketDaoFind all tickets that are associated with the customer in descending and order by Modified date time.- Specified by:
findTicketsByCustomerOrderByModifiedTimein interfaceTicketDao- Returns:
- List
-
findTicketsByCustomerOrderByModifiedTime
public SearchPageData<CsTicketModel> findTicketsByCustomerOrderByModifiedTime(UserModel user, BaseSiteModel baseSite, PageableData pageableData) Description copied from interface:TicketDaoFind all tickets that are associated with the customer and current site, in descending and order by Modified date time.- Specified by:
findTicketsByCustomerOrderByModifiedTimein interfaceTicketDao- Returns:
- List
-
createSortQueryData
-
getPagedFlexibleSearchService
- Returns:
- the pagedFlexibleSearchService
-
setPagedFlexibleSearchService
- Parameters:
pagedFlexibleSearchService- the pagedFlexibleSearchService to set
-