Class MockNotificationListener
java.lang.Object
fr.paris.lutece.plugins.grubusiness.business.mock.MockNotificationListener
- All Implemented Interfaces:
INotificationListener
This class is a mock implementation of
INotificationListener-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlistenAndConsume(MockActionListenerEnum actionListener, Notification notification) Listens and consumes a notificationvoidonCreateNotification(Notification notification) Something to do when a notification is createdvoidonDeleteDemand(String strDemandId, String strDemandTypeId) Something to do on notification when a demand is deletedvoidonUpdateNotification(Notification notification) Something to do when a notification is updated
-
Constructor Details
-
MockNotificationListener
public MockNotificationListener()
-
-
Method Details
-
onCreateNotification
Something to do when a notification is created- Specified by:
onCreateNotificationin interfaceINotificationListener- Parameters:
notification- the created notification
-
onUpdateNotification
Something to do when a notification is updated- Specified by:
onUpdateNotificationin interfaceINotificationListener- Parameters:
notification- the updated notification
-
onDeleteDemand
Something to do on notification when a demand is deleted- Specified by:
onDeleteDemandin interfaceINotificationListener- Parameters:
strDemandId- the demand idstrDemandTypeId- the demand type id
-
listenAndConsume
Listens and consumes a notification- Parameters:
actionListener- the action to performnotification- the notification- Returns:
trueif the treatment is successful,falseotherwise
-