Class DefaultOrderFraudEmployeeNotificationEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<OrderFraudEmployeeNotificationEvent>
-
- de.hybris.platform.ticket.event.impl.DefaultOrderFraudEmployeeNotificationEventListener
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<OrderFraudEmployeeNotificationEvent>
public class DefaultOrderFraudEmployeeNotificationEventListener extends AbstractEventListener<OrderFraudEmployeeNotificationEvent>
Event Listener forOrderFraudEmployeeNotificationEventwhich creates aCsTicketModelfor a ticket agent user group. You can customize the target user group, ticket priority. The headline and ticket notes are taken from the following localized properties:csticket.fraud.content.defaultcsticket.fraud.headline.default
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_FRAUD_USER_GROUPstatic CsTicketPriorityDEFAULT_PRIORITY
-
Constructor Summary
Constructors Constructor Description DefaultOrderFraudEmployeeNotificationEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetFraudTicketHeadline(AbstractOrderModel order)protected java.lang.StringgetFraudTicketText(AbstractOrderModel order)protected java.lang.StringgetFraudUserGroupId()protected CsTicketPrioritygetPriority()protected TicketBusinessServicegetTicketBusinessService()protected UserServicegetUserService()protected voidonEvent(OrderFraudEmployeeNotificationEvent event)This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.voidsetFraudUserGroup(java.lang.String fraudUserGroup)voidsetPriority(CsTicketPriority priority)voidsetTicketBusinessService(TicketBusinessService ticketBusinessService)voidsetUserService(UserService userService)-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Field Detail
-
DEFAULT_FRAUD_USER_GROUP
public static final java.lang.String DEFAULT_FRAUD_USER_GROUP
- See Also:
- Constant Field Values
-
DEFAULT_PRIORITY
public static final CsTicketPriority DEFAULT_PRIORITY
-
-
Method Detail
-
onEvent
protected void onEvent(OrderFraudEmployeeNotificationEvent event)
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<OrderFraudEmployeeNotificationEvent>- Parameters:
event- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getFraudTicketText
protected java.lang.String getFraudTicketText(AbstractOrderModel order)
-
getFraudTicketHeadline
protected java.lang.String getFraudTicketHeadline(AbstractOrderModel order)
-
getPriority
protected CsTicketPriority getPriority()
-
getFraudUserGroupId
protected java.lang.String getFraudUserGroupId()
-
getTicketBusinessService
protected TicketBusinessService getTicketBusinessService()
- Returns:
- the ticketBusinessService
-
setTicketBusinessService
public void setTicketBusinessService(TicketBusinessService ticketBusinessService)
- Parameters:
ticketBusinessService- the ticketBusinessService to set
-
getUserService
protected UserService getUserService()
- Returns:
- the userService
-
setUserService
public void setUserService(UserService userService)
- Parameters:
userService- the userService to set
-
setFraudUserGroup
public void setFraudUserGroup(java.lang.String fraudUserGroup)
-
setPriority
public void setPriority(CsTicketPriority priority)
-
-