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