public class DefaultTicketUpdateStrategy extends AbstractBusinessService implements TicketUpdateStrategy
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultTicketUpdateStrategy() |
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, setTenantScope, writeReplacepublic CsTicketModel updateTicket(CsTicketModel ticket) throws TicketException
TicketUpdateStrategyupdateTicket in interface TicketUpdateStrategyticket - The ticket to be updatedTicketException - If the update is not permittedpublic CsTicketModel updateTicket(CsTicketModel ticket, String note) throws TicketException
TicketUpdateStrategyupdateTicket in interface TicketUpdateStrategyticket - The ticket to be updatednote - The text of the note to add along with the updateTicketException - If the update is not permittedpublic void setTicketState(CsTicketModel ticket, CsTicketState newState) throws TicketException
TicketUpdateStrategysetTicketState in interface TicketUpdateStrategyticket - The ticket to update the state ofnewState - The state to set the ticket toTicketException - If the ticket has been modified or the state transition is illegalgetTicketNextStates to get list of possible state transitionspublic void setTicketState(CsTicketModel ticket, CsTicketState newState, String note) throws TicketException
TicketUpdateStrategysetTicketState in interface TicketUpdateStrategyticket - The ticket to update the state ofnewState - The state to set the ticket tonote - The text of the note to add along with the state changeTicketException - If the ticket has been modified or the state transition is illegalgetTicketNextStates to get list of possible state transitionspublic List<CsTicketState> getTicketNextStates(CsTicketState currentState)
TicketUpdateStrategygetTicketNextStates in interface TicketUpdateStrategycurrentState - The starting stateprotected boolean isValidStateTransition(CsTicketState oldState, CsTicketState newState)
protected void preSetTicketState(CsTicketModel ticket, CsTicketState newState) throws TicketException
TicketExceptionpublic CsTicketEventModel assignTicketToAgent(CsTicketModel ticket, EmployeeModel agent) throws TicketException
TicketUpdateStrategyassignTicketToAgent in interface TicketUpdateStrategyticket - The ticket to update the state ofagent - The agent to assign the ticket to or null to mark the ticket as unassigned.TicketException - If the ticket has been modified or the assignment is illegalprotected void preChangeTicketAssignment(CsTicketModel ticket, EmployeeModel agent) throws TicketException
TicketExceptionpublic CsTicketEventModel assignTicketToGroup(CsTicketModel ticket, CsAgentGroupModel group) throws TicketException
TicketUpdateStrategyassignTicketToGroup in interface TicketUpdateStrategyticket - The ticket to update the state ofgroup - The agent group to assign the ticket to or null to mark the ticket as unassigned.TicketException - If the ticket has been modified or the assignment is illegalprotected void preChangeTicketGroup(CsTicketModel ticket, CsAgentGroupModel group) throws TicketException
TicketExceptionprotected CsTicketEventModel createAssignTicketEvent(CsTicketModel ticket, Set<CsTicketChangeEventEntryModel> changedValues)
protected CsTicketEventModel createChangeEvent(CsTicketModel ticket, Set<CsTicketChangeEventEntryModel> changedValues)
protected CsTicketEventModel createChangeEvent(CsTicketModel ticket, Set<CsTicketChangeEventEntryModel> changedValues, String note)
public void setTicketAttributeChangeEventStrategy(TicketAttributeChangeEventStrategy ticketAttributeChangeEventStrategy)
public void setAvailableNextStates(Map<CsTicketState,List<CsTicketState>> availableNextStates)
public void setTicketEventFactory(TicketEventFactory ticketEventFactory)
public void setTicketChangeEventType(String ticketChangeEventType)
protected ItemModelContextImpl getContext(AbstractItemModel model)
public String getTicketAssigndEventType()
public void setTicketAssigndEventType(String ticketAssigndEventType)
Copyright © 2017 SAP SE. All Rights Reserved.