Class DefaultCustomerTicketingFacade
- java.lang.Object
-
- de.hybris.platform.customerticketingfacades.customerticket.DefaultCustomerTicketingFacade
-
- All Implemented Interfaces:
TicketFacade
public class DefaultCustomerTicketingFacade extends java.lang.Object implements TicketFacade
CS Integration Ticket Facade Facade should provide access to a user's support ticket details and full details of support ticket.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<CsTicketState,java.util.function.BiFunction<CsTicketModel,TicketData,CsTicketModel>>stateChangesSpecial map, that know what to do in case of status changed.
-
Constructor Summary
Constructors Constructor Description DefaultCustomerTicketingFacade()
-
Method Summary
-
-
-
Field Detail
-
stateChanges
protected java.util.Map<CsTicketState,java.util.function.BiFunction<CsTicketModel,TicketData,CsTicketModel>> stateChanges
Special map, that know what to do in case of status changed.
-
-
Method Detail
-
createTicket
public TicketData createTicket(TicketData ticketData)
Description copied from interface:TicketFacadeCreates ticket.- Specified by:
createTicketin interfaceTicketFacade- Parameters:
ticketData- TicketData- Returns:
- TicketData or null
-
getDefaultCsAgentManagerGroup
protected CsAgentGroupModel getDefaultCsAgentManagerGroup()
- Returns:
- CsAgentGroupModel - Default Cs Agent Group Manager
-
updateTicket
public TicketData updateTicket(TicketData ticketData)
Description copied from interface:TicketFacadeUpdates ticket- Specified by:
updateTicketin interfaceTicketFacade- Parameters:
ticketData- TicketData- Returns:
- TicketData
-
getAttachments
protected java.util.List<MediaModel> getAttachments(TicketData ticketData)
- Parameters:
ticketData-- Returns:
- List
-
getCsStatus
protected CsTicketState getCsStatus(TicketData data)
Matches TicketData.Status with CsTicketStatus, using statusMapping map.- Parameters:
data-- Returns:
- CsTicketState
-
getTicket
public TicketData getTicket(java.lang.String ticketId)
Description copied from interface:TicketFacadeRequesting for a ticket of a customer.- Specified by:
getTicketin interfaceTicketFacade- Parameters:
ticketId- ticket id- Returns:
- TicketData or null
-
getTickets
public SearchPageData<TicketData> getTickets(PageableData pageableData)
Description copied from interface:TicketFacadeRequesting for all tickets of a customer.- Specified by:
getTicketsin interfaceTicketFacade- Parameters:
pageableData- pageable data- Returns:
- not-null list
-
convertPageData
protected <S,T> SearchPageData<T> convertPageData(SearchPageData<S> source, Converter<S,T> converter)
-
getAssociatedToObjects
public java.util.Map<java.lang.String,java.util.List<TicketAssociatedData>> getAssociatedToObjects()
Description copied from interface:TicketFacadeSearch in cart and orders any data for association for ticket.- Specified by:
getAssociatedToObjectsin interfaceTicketFacade- Returns:
- non-null map, key - special code describes carts/orders are presented in value-list
-
createCsTicketParameter
protected CsTicketParameter createCsTicketParameter(TicketData ticketData)
-
getTicketService
protected TicketService getTicketService()
- Returns:
- the ticketService
-
getUserService
protected UserService getUserService()
- Returns:
- the userService
-
getTicketBusinessService
protected TicketBusinessService getTicketBusinessService()
- Returns:
- the ticketBusinessService
-
setTicketService
public void setTicketService(TicketService ticketService)
- Parameters:
ticketService- the ticketService to set
-
setUserService
public void setUserService(UserService userService)
- Parameters:
userService- the userService to set
-
setTicketBusinessService
public void setTicketBusinessService(TicketBusinessService ticketBusinessService)
- Parameters:
ticketBusinessService- the ticketBusinessService to set
-
getTicketConverter
protected Converter<CsTicketModel,TicketData> getTicketConverter()
- Returns:
- the ticketConverter
-
getTicketListConverter
protected Converter<CsTicketModel,TicketData> getTicketListConverter()
-
setTicketListConverter
public void setTicketListConverter(Converter<CsTicketModel,TicketData> ticketListConverter)
-
getStatusMapping
protected java.util.Map<java.lang.String,StatusData> getStatusMapping()
- Returns:
- the statusMapping
-
getAssociationStrategies
protected java.util.List<TicketAssociationStrategies> getAssociationStrategies()
- Returns:
- the associationStrategies
-
setTicketConverter
public void setTicketConverter(Converter<CsTicketModel,TicketData> ticketConverter)
- Parameters:
ticketConverter- the ticketConverter to set
-
setStatusMapping
public void setStatusMapping(java.util.Map<java.lang.String,StatusData> statusMapping)
- Parameters:
statusMapping- the statusMapping to set
-
setAssociationStrategies
public void setAssociationStrategies(java.util.List<TicketAssociationStrategies> associationStrategies)
- Parameters:
associationStrategies- the associationStrategies to set
-
getTicketPriority
protected java.lang.String getTicketPriority()
- Returns:
- the ticketPriority
-
setTicketPriority
public void setTicketPriority(java.lang.String ticketPriority)
- Parameters:
ticketPriority- the ticketPriority to set
-
getTicketReason
protected java.lang.String getTicketReason()
- Returns:
- the ticketReason
-
setTicketReason
public void setTicketReason(java.lang.String ticketReason)
- Parameters:
ticketReason- the ticketReason to set
-
getEnumerationService
protected EnumerationService getEnumerationService()
- Returns:
- the enumerationService
-
setEnumerationService
public void setEnumerationService(EnumerationService enumerationService)
- Parameters:
enumerationService- the enumerationService to set
-
getTicketCategories
public java.util.List<TicketCategory> getTicketCategories()
- Specified by:
getTicketCategoriesin interfaceTicketFacade- Returns:
- a map with available ticket categories in string representation for the customer ticket creation as a key and it's localizations as a value.
-
getConfigurationService
protected ConfigurationService getConfigurationService()
- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
- Parameters:
configurationService- the configurationService to set
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
- Returns:
- the baseSiteService
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
- Parameters:
baseSiteService- the baseSiteService to set
-
getTicketAttachmentsService
protected TicketAttachmentsService getTicketAttachmentsService()
- Returns:
- the ticketAttachmentsService
-
setTicketAttachmentsService
public void setTicketAttachmentsService(TicketAttachmentsService ticketAttachmentsService)
- Parameters:
ticketAttachmentsService- the ticketAttachmentsService to set
-
-