Class DefaultTicketService
java.lang.Object
de.hybris.platform.ticket.service.impl.DefaultTicketService
- All Implemented Interfaces:
TicketService
This service class provides 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.
-
Constructor Summary
Constructors -
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 AbstractOrderModelprotected Map<String,TicketAssociatedObjectResolver> Retrieves 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.getTicketEventsByTicketEventCode(CsTicketModel ticket, String eventCode) Gets a ticket event for givenCsTicketModelobject and an event code.Gets all ticket events forCsTicketModelobject excluding private messages.getTicketEventsForCustomerByTicketEventCode(CsTicketModel ticket, String eventCode) Gets a ticket event, excluding private messages, for givenCsTicketModelobject and an event code.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).getTicketsForSiteAndCustomer(BaseSiteModel site, UserModel customer) Find all tickets that are associated with the site and customer.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 typevoidsetAgentDao(AgentDao agentDao) voidsetAssociatedTicketObjectResolverMap(Map<String, TicketAssociatedObjectResolver> associatedTicketObjectResolverMap) voidsetCommentService(CommentService commentService) voidsetEnumerationService(EnumerationService enumerationService) voidsetTicketDao(TicketDao ticketDao) voidsetTicketSystemComponent(String ticketSystemComponent) voidsetTicketSystemDomain(String ticketSystemDomain)
-
Constructor Details
-
DefaultTicketService
public DefaultTicketService()
-
-
Method Details
-
getAgentGroups
Retrieves a list of the AgentGroups.- Specified by:
getAgentGroupsin interfaceTicketService- Returns:
- The list of AgentGroups
-
getAgentGroupsForBaseStore
Retrieves a list of the AgentGroups for the provided BaseStore- Specified by:
getAgentGroupsForBaseStorein interfaceTicketService- Parameters:
store- The BaseStore to retrieve AgentGroups for- Returns:
- The list of AgentGroups
-
getAgents
Retrieves a list of the Agents as Employees.- Specified by:
getAgentsin interfaceTicketService- Returns:
- The list of Agents
-
getAgentsForBaseStore
Retrieves a list of the Agents as Employees for the provided BaseStore- Specified by:
getAgentsForBaseStorein interfaceTicketService- Parameters:
store- The BaseStore to retrieve Agents for- Returns:
- The list of Agents
-
getEventReasons
Retrieves all available Event Reasons in the system.- Specified by:
getEventReasonsin interfaceTicketService- Returns:
- The list of Event Reasons
-
getEventsForTicket
Gets all ticket events forCsTicketModelobject.- Specified by:
getEventsForTicketin interfaceTicketService- Parameters:
ticket- theCsTicketModelfor which to return ticket events.- Returns:
- A list of ticket events.
-
getTicketEventsForCustomerByTicket
Gets all ticket events forCsTicketModelobject excluding private messages.- Specified by:
getTicketEventsForCustomerByTicketin interfaceTicketService- Parameters:
ticket- theCsTicketModelfor which to return ticket events.- Returns:
- A list of ticket events.
-
getTicketEventsByTicketEventCode
Gets a ticket event for givenCsTicketModelobject and an event code.- Specified by:
getTicketEventsByTicketEventCodein interfaceTicketService- Parameters:
ticket- theCsTicketModelfor which to return the ticket event.eventCode- theeventCodefor which to return the ticket event.- Returns:
- The ticket event.
-
getTicketEventsForCustomerByTicketEventCode
public CsTicketEventModel getTicketEventsForCustomerByTicketEventCode(CsTicketModel ticket, String eventCode) Gets a ticket event, excluding private messages, for givenCsTicketModelobject and an event code.- Specified by:
getTicketEventsForCustomerByTicketEventCodein interfaceTicketService- Parameters:
ticket- theCsTicketModelfor which to return the ticket event.eventCode- theeventCodefor which to return the ticket event.- Returns:
- The ticket event.
-
getInterventionTypes
Retrieves all available Intervention Types in the system.- Specified by:
getInterventionTypesin interfaceTicketService- Returns:
- The list of Intervention Types
-
getResolutionTypes
Retrieves all available Resolution Types in the system.- Specified by:
getResolutionTypesin interfaceTicketService- Returns:
- The list of Resolution Types
-
getTicketCategories
Retrieves all available Ticket Categories in the system.- Specified by:
getTicketCategoriesin interfaceTicketService- Returns:
- The list of Ticket Categories
-
getTicketForTicketEvent
Gets the ticket for givenCsTicketEventModelobject.- Specified by:
getTicketForTicketEventin interfaceTicketService- Parameters:
ticketEvent- the ticket event- Returns:
- the ticket
-
getTicketForTicketId
Lookup a specific ticket by ticket ID- Specified by:
getTicketForTicketIdin interfaceTicketService- Parameters:
ticketId- The id of the ticket to lookup- Returns:
- The ticket with that Id
-
getTicketPriorities
Retrieves all available Ticket Priorities in the system.- Specified by:
getTicketPrioritiesin interfaceTicketService- Returns:
- The list of Ticket Priorities
-
getTicketsForAgent
Find all the tickets that are assigned to the Agent.- Specified by:
getTicketsForAgentin interfaceTicketService- 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.- Specified by:
getTicketsForAgentGroupin interfaceTicketService- 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.- Specified by:
getTicketsForCategoryin interfaceTicketService- 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.- Specified by:
getTicketsForCustomerin interfaceTicketService- Parameters:
customer- The customer to find tickets for- Returns:
- A list of tickets matching search criteria
-
getTicketsForSiteAndCustomer
Find all tickets that are associated with the site and customer.- Specified by:
getTicketsForSiteAndCustomerin interfaceTicketService- Parameters:
site- The base sitecustomer- The customer to find tickets for- Returns:
- A list of tickets matching search criteria
-
getTicketsForCustomerOrderByModifiedTime
Find all tickets that are associated with the customer in order by Modified date and time.- Specified by:
getTicketsForCustomerOrderByModifiedTimein interfaceTicketService- Parameters:
user- the UserModel whose tickets to be returned- Returns:
- List
-
getTicketsForCustomerOrderByModifiedTime
public SearchPageData<CsTicketModel> getTicketsForCustomerOrderByModifiedTime(UserModel user, BaseSiteModel baseSite, PageableData pageableData) Description copied from interface:TicketServiceFind all tickets that are associated with the customer in order by Modified date and time.- Specified by:
getTicketsForCustomerOrderByModifiedTimein interfaceTicketService- Parameters:
user- the UserModel whose tickets to be returnedbaseSite- the base sitepageableData- the pageable data- Returns:
- List
-
getTicketsForOrder
Find all the tickets that are associated with the order.- Specified by:
getTicketsForOrderin interfaceTicketService- 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.- Specified by:
getTicketsForPriorityin interfaceTicketService- 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).- Specified by:
getTicketsForResolutionTypein interfaceTicketService- 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.- Specified by:
getTicketsForStatein interfaceTicketService- 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
Description copied from interface:TicketServiceRetrieves all available Ticket States in the system.- Specified by:
getTicketStatesin interfaceTicketService- Returns:
- The list of Ticket States
-
getTicketType
Description copied from interface:TicketServiceGet the comment type given the code of that type- Specified by:
getTicketTypein interfaceTicketService- Parameters:
type- The type code of comment type to get- Returns:
- The comment type represented by the type code
-
getAssociatedObject
public AbstractOrderModel getAssociatedObject(String associatedCode, String userUid, String siteUid) Description copied from interface:TicketServiceExtract associatedTo object as AbstractOrderModel- Specified by:
getAssociatedObjectin interfaceTicketService- Parameters:
associatedCode- code of associated objectsiteUid- optionalsiteUid- optionaluserUid- optional- Returns:
- AbstractOrderModel
-
getAssociatedTicketObjectResolverMap
-
setAssociatedTicketObjectResolverMap
public void setAssociatedTicketObjectResolverMap(Map<String, TicketAssociatedObjectResolver> associatedTicketObjectResolverMap) -
setAgentDao
-
setCommentService
-
setEnumerationService
-
setTicketDao
-
setTicketSystemComponent
-
setTicketSystemDomain
-