public class DefaultTicketService extends java.lang.Object implements TicketService
| Constructor and Description |
|---|
DefaultTicketService() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<CsAgentGroupModel> |
getAgentGroups()
Retrieves a list of the AgentGroups.
|
java.util.List<CsAgentGroupModel> |
getAgentGroupsForBaseStore(BaseStoreModel store)
Retrieves a list of the AgentGroups for the provided BaseStore
|
java.util.List<EmployeeModel> |
getAgents()
Retrieves a list of the Agents as Employees.
|
java.util.List<EmployeeModel> |
getAgentsForBaseStore(BaseStoreModel store)
Retrieves a list of the Agents as Employees for the provided BaseStore
|
AbstractOrderModel |
getAssociatedObject(java.lang.String associatedCode,
java.lang.String userUid,
java.lang.String siteUid)
Extract associatedTo object as AbstractOrderModel
|
protected java.util.Map<java.lang.String,TicketAssociatedObjectResolver> |
getAssociatedTicketObjectResolverMap() |
java.util.List<CsEventReason> |
getEventReasons()
Retrieves all available Event Reasons in the system.
|
java.util.List<CsTicketEventModel> |
getEventsForTicket(CsTicketModel ticket)
Gets all ticket events for
CsTicketModel object. |
java.util.List<CsInterventionType> |
getInterventionTypes()
Retrieves all available Intervention Types in the system.
|
java.util.List<CsResolutionType> |
getResolutionTypes()
Retrieves all available Resolution Types in the system.
|
java.util.List<CsTicketCategory> |
getTicketCategories()
Retrieves all available Ticket Categories in the system.
|
java.util.List<CsTicketEventModel> |
getTicketEventsForCustomerByTicket(CsTicketModel ticket)
Gets all ticket events for
CsTicketModel object excluding private messages. |
CsTicketModel |
getTicketForTicketEvent(CsTicketEventModel ticketEvent)
Gets the ticket for given
CsTicketEventModel object. |
CsTicketModel |
getTicketForTicketId(java.lang.String ticketId)
Lookup a specific ticket by ticket ID
|
java.util.List<CsTicketPriority> |
getTicketPriorities()
Retrieves all available Ticket Priorities in the system.
|
java.util.List<CsTicketModel> |
getTicketsForAgent(EmployeeModel agent)
Find all the tickets that are assigned to the Agent.
|
java.util.List<CsTicketModel> |
getTicketsForAgentGroup(CsAgentGroupModel agentGroup)
Find all the tickets assigned to the AgentGroup.
|
java.util.List<CsTicketModel> |
getTicketsForCategory(CsTicketCategory... category)
Find all the tickets that have the provided categories.
|
java.util.List<CsTicketModel> |
getTicketsForCustomer(UserModel customer)
Find all tickets that are associated with the customer.
|
java.util.List<CsTicketModel> |
getTicketsForCustomerOrderByModifiedTime(UserModel user)
Find all tickets that are associated with the customer in order by Modified date and time.
|
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.
|
java.util.List<CsTicketModel> |
getTicketsForOrder(OrderModel order)
Find all the tickets that are associated with the order.
|
java.util.List<CsTicketModel> |
getTicketsForPriority(CsTicketPriority... priority)
Find all the tickets that have the provided priorities.
|
java.util.List<CsTicketModel> |
getTicketsForResolutionType(CsResolutionType... resolutionType)
Find all the tickets that have the provided Resolution Type(s).
|
java.util.List<CsTicketModel> |
getTicketsForState(CsTicketState... state)
Find all the tickets that are in the provided states.
|
java.util.List<CsTicketState> |
getTicketStates()
Retrieves all available Ticket States in the system.
|
CommentTypeModel |
getTicketType(java.lang.String type)
Get the comment type given the code of that type
|
void |
setAgentDao(AgentDao agentDao) |
void |
setAssociatedTicketObjectResolverMap(java.util.Map<java.lang.String,TicketAssociatedObjectResolver> associatedTicketObjectResolverMap) |
void |
setCommentService(CommentService commentService) |
void |
setEnumerationService(EnumerationService enumerationService) |
void |
setTicketDao(TicketDao ticketDao) |
void |
setTicketSystemComponent(java.lang.String ticketSystemComponent) |
void |
setTicketSystemDomain(java.lang.String ticketSystemDomain) |
public java.util.List<CsAgentGroupModel> getAgentGroups()
getAgentGroups in interface TicketServicepublic java.util.List<CsAgentGroupModel> getAgentGroupsForBaseStore(BaseStoreModel store)
getAgentGroupsForBaseStore in interface TicketServicestore - The BaseStore to retrieve AgentGroups forpublic java.util.List<EmployeeModel> getAgents()
getAgents in interface TicketServicepublic java.util.List<EmployeeModel> getAgentsForBaseStore(BaseStoreModel store)
getAgentsForBaseStore in interface TicketServicestore - The BaseStore to retrieve Agents forpublic java.util.List<CsEventReason> getEventReasons()
getEventReasons in interface TicketServicepublic java.util.List<CsTicketEventModel> getEventsForTicket(CsTicketModel ticket)
CsTicketModel object.getEventsForTicket in interface TicketServiceticket - the CsTicketModel for which to return ticket events.public java.util.List<CsTicketEventModel> getTicketEventsForCustomerByTicket(CsTicketModel ticket)
CsTicketModel object excluding private messages.getTicketEventsForCustomerByTicket in interface TicketServiceticket - the CsTicketModel for which to return ticket events.public java.util.List<CsInterventionType> getInterventionTypes()
getInterventionTypes in interface TicketServicepublic java.util.List<CsResolutionType> getResolutionTypes()
getResolutionTypes in interface TicketServicepublic java.util.List<CsTicketCategory> getTicketCategories()
getTicketCategories in interface TicketServicepublic CsTicketModel getTicketForTicketEvent(CsTicketEventModel ticketEvent)
CsTicketEventModel object.getTicketForTicketEvent in interface TicketServiceticketEvent - the ticket eventpublic CsTicketModel getTicketForTicketId(java.lang.String ticketId)
getTicketForTicketId in interface TicketServiceticketId - The id of the ticket to lookuppublic java.util.List<CsTicketPriority> getTicketPriorities()
getTicketPriorities in interface TicketServicepublic java.util.List<CsTicketModel> getTicketsForAgent(EmployeeModel agent)
getTicketsForAgent in interface TicketServiceagent - The agent to find assigned tickets forpublic java.util.List<CsTicketModel> getTicketsForAgentGroup(CsAgentGroupModel agentGroup)
getTicketsForAgentGroup in interface TicketServiceagentGroup - The AgentGroup to find assigned tickets forpublic java.util.List<CsTicketModel> getTicketsForCategory(CsTicketCategory... category)
getTicketsForCategory in interface TicketServicecategory - 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.public java.util.List<CsTicketModel> getTicketsForCustomer(UserModel customer)
getTicketsForCustomer in interface TicketServicecustomer - The customer to find tickets forpublic java.util.List<CsTicketModel> getTicketsForCustomerOrderByModifiedTime(UserModel user)
getTicketsForCustomerOrderByModifiedTime in interface TicketServiceuser - the UserModel whose tickets to be returnedpublic SearchPageData<CsTicketModel> getTicketsForCustomerOrderByModifiedTime(UserModel user, BaseSiteModel baseSite, PageableData pageableData)
TicketServicegetTicketsForCustomerOrderByModifiedTime in interface TicketServiceuser - the UserModel whose tickets to be returnedbaseSite - the base sitepageableData - the pageable datapublic java.util.List<CsTicketModel> getTicketsForOrder(OrderModel order)
getTicketsForOrder in interface TicketServiceorder - The order to find tickets forpublic java.util.List<CsTicketModel> getTicketsForPriority(CsTicketPriority... priority)
getTicketsForPriority in interface TicketServicepriority - 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.public java.util.List<CsTicketModel> getTicketsForResolutionType(CsResolutionType... resolutionType)
getTicketsForResolutionType in interface TicketServiceresolutionType - 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.public java.util.List<CsTicketModel> getTicketsForState(CsTicketState... state)
getTicketsForState in interface TicketServicestate - 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.public java.util.List<CsTicketState> getTicketStates()
TicketServicegetTicketStates in interface TicketServicepublic CommentTypeModel getTicketType(java.lang.String type)
TicketServicegetTicketType in interface TicketServicetype - The type code of comment type to getpublic AbstractOrderModel getAssociatedObject(java.lang.String associatedCode, java.lang.String userUid, java.lang.String siteUid)
TicketServicegetAssociatedObject in interface TicketServiceassociatedCode - code of associated objectsiteUid - optionalsiteUid - optionaluserUid - optionalprotected java.util.Map<java.lang.String,TicketAssociatedObjectResolver> getAssociatedTicketObjectResolverMap()
public void setAssociatedTicketObjectResolverMap(java.util.Map<java.lang.String,TicketAssociatedObjectResolver> associatedTicketObjectResolverMap)
public void setAgentDao(AgentDao agentDao)
public void setCommentService(CommentService commentService)
public void setEnumerationService(EnumerationService enumerationService)
public void setTicketDao(TicketDao ticketDao)
public void setTicketSystemComponent(java.lang.String ticketSystemComponent)
public void setTicketSystemDomain(java.lang.String ticketSystemDomain)
Copyright © 2018 SAP SE. All Rights Reserved.