Class MockNotificationListener

java.lang.Object
fr.paris.lutece.plugins.grubusiness.business.mock.MockNotificationListener
All Implemented Interfaces:
INotificationListener

public class MockNotificationListener extends Object implements INotificationListener
This class is a mock implementation of INotificationListener
  • Constructor Details

    • MockNotificationListener

      public MockNotificationListener()
  • Method Details

    • onCreateNotification

      public void onCreateNotification(Notification notification)
      Something to do when a notification is created
      Specified by:
      onCreateNotification in interface INotificationListener
      Parameters:
      notification - the created notification
    • onUpdateNotification

      public void onUpdateNotification(Notification notification)
      Something to do when a notification is updated
      Specified by:
      onUpdateNotification in interface INotificationListener
      Parameters:
      notification - the updated notification
    • onDeleteDemand

      public void onDeleteDemand(String strDemandId, String strDemandTypeId)
      Something to do on notification when a demand is deleted
      Specified by:
      onDeleteDemand in interface INotificationListener
      Parameters:
      strDemandId - the demand id
      strDemandTypeId - the demand type id
    • listenAndConsume

      public boolean listenAndConsume(MockActionListenerEnum actionListener, Notification notification)
      Listens and consumes a notification
      Parameters:
      actionListener - the action to perform
      notification - the notification
      Returns:
      true if the treatment is successful, false otherwise