public class DefaultTicketResolutionStrategy extends java.lang.Object implements TicketResolutionStrategy
| Constructor and Description |
|---|
DefaultTicketResolutionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttachmentsToEvent(CsTicketEventModel event,
java.util.Collection<MediaModel> attachments) |
java.util.List<CsTicketState> |
filterTicketStatesToRemovedClosedStates(java.util.List<CsTicketState> states)
Filter a given list of ticket states to remove any which represent a resolved state and should only be used by the
ticket resolution strategies.
|
java.lang.String |
getAgentNoteEventType() |
protected ModelService |
getModelService() |
boolean |
isTicketClosed(CsTicketModel ticket)
Find out if a ticket is considered 'closed'.
|
boolean |
isTicketResolvable(CsTicketModel ticket)
Find out whether a ticket is resolvable.
|
CsTicketResolutionEventModel |
resolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsResolutionType resolutionType,
java.lang.String note)
Create a resolution event against a ticket and associate it with the ticket.
|
CsTicketResolutionEventModel |
resolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsResolutionType resolutionType,
java.lang.String note,
java.util.Collection<MediaModel> attachments)
Create a resolution event against a ticket and associate it with the ticket.
|
void |
setAgentNoteEventType(java.lang.String agentNoteEventType) |
void |
setDefaultResolvedTicketState(CsTicketState defaultResolvedTicketState) |
void |
setDefaultUnresolvedTicketState(CsTicketState defaultUnresolvedTicketState) |
void |
setModelService(ModelService modelService) |
void |
setResolveEventType(java.lang.String resolveEventType) |
void |
setTicketAttributeChangeEventStrategy(TicketAttributeChangeEventStrategy ticketAttributeChangeEventStrategy) |
void |
setTicketEventFactory(TicketEventFactory ticketEventFactory) |
void |
setTicketUpdateStrategy(TicketUpdateStrategy ticketUpdateStrategy) |
void |
setUnresolveEventType(java.lang.String unresolveEventType) |
CsCustomerEventModel |
unResolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsEventReason reason,
java.lang.String note)
Remove the resolution event from the ticket (although keep in in the list of events) and add a note to a ticket to
indicate that it is no longer resolved.
|
CsCustomerEventModel |
unResolveTicket(CsTicketModel ticket,
CsInterventionType intervention,
CsEventReason reason,
java.lang.String note,
java.util.Collection<MediaModel> attachments)
Remove the resolution event from the ticket (although keep in in the list of events) and add a note to a ticket to
indicate that it is no longer resolved.
|
public CsTicketResolutionEventModel resolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsResolutionType resolutionType, java.lang.String note) throws TicketException
TicketResolutionStrategyresolveTicket in interface TicketResolutionStrategyticket - The ticket to mark as resolvedintervention - The intervention of the resolutionresolutionType - The type of the resolutionnote - The text note to add agsint the resolutionTicketExceptionpublic CsTicketResolutionEventModel resolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsResolutionType resolutionType, java.lang.String note, java.util.Collection<MediaModel> attachments) throws TicketException
TicketResolutionStrategyresolveTicket in interface TicketResolutionStrategyticket - The ticket to mark as resolvedintervention - The intervention of the resolutionresolutionType - The type of the resolutionnote - The text note to add agsint the resolutionTicketExceptionprotected void addAttachmentsToEvent(CsTicketEventModel event, java.util.Collection<MediaModel> attachments)
public CsCustomerEventModel unResolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, java.lang.String note) throws TicketException
TicketResolutionStrategyunResolveTicket in interface TicketResolutionStrategyticket - The ticket to un-resolveintervention - The intervention that caused the ticket's resolution to be removedreason - The reason for unresolving the ticketnote - The note to add when the ticket is unresolved.TicketExceptionpublic CsCustomerEventModel unResolveTicket(CsTicketModel ticket, CsInterventionType intervention, CsEventReason reason, java.lang.String note, java.util.Collection<MediaModel> attachments) throws TicketException
TicketResolutionStrategyunResolveTicket in interface TicketResolutionStrategyticket - The ticket to un-resolveintervention - The intervention that caused the ticket's resolution to be removedreason - The reason for unresolving the ticketnote - The note to add when the ticket is unresolved.TicketExceptionpublic java.util.List<CsTicketState> filterTicketStatesToRemovedClosedStates(java.util.List<CsTicketState> states)
TicketResolutionStrategyfilterTicketStatesToRemovedClosedStates in interface TicketResolutionStrategystates - The states to filterpublic boolean isTicketClosed(CsTicketModel ticket)
TicketResolutionStrategyisTicketClosed in interface TicketResolutionStrategyticket - The ticket to checkpublic boolean isTicketResolvable(CsTicketModel ticket)
TicketResolutionStrategyisTicketResolvable in interface TicketResolutionStrategyticket - The ticket to checkpublic void setDefaultResolvedTicketState(CsTicketState defaultResolvedTicketState)
public void setDefaultUnresolvedTicketState(CsTicketState defaultUnresolvedTicketState)
public void setTicketUpdateStrategy(TicketUpdateStrategy ticketUpdateStrategy)
public void setTicketEventFactory(TicketEventFactory ticketEventFactory)
public void setResolveEventType(java.lang.String resolveEventType)
public void setUnresolveEventType(java.lang.String unresolveEventType)
public void setAgentNoteEventType(java.lang.String agentNoteEventType)
agentNoteEventType - the agentNoteEventType to setpublic void setTicketAttributeChangeEventStrategy(TicketAttributeChangeEventStrategy ticketAttributeChangeEventStrategy)
public java.lang.String getAgentNoteEventType()
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.