Class MockDemandListener

java.lang.Object
fr.paris.lutece.plugins.grubusiness.business.mock.MockDemandListener
All Implemented Interfaces:
IDemandListener

public class MockDemandListener extends Object implements IDemandListener
This class is a mock implementation of IDemandListener
  • Constructor Details

    • MockDemandListener

      public MockDemandListener()
  • Method Details

    • onCreateDemand

      public void onCreateDemand(Demand demand)
      Something to do when a demand is created
      Specified by:
      onCreateDemand in interface IDemandListener
      Parameters:
      demand - the created demand
    • onUpdateDemand

      public void onUpdateDemand(Demand demand)
      Something to do when a demand is updated
      Specified by:
      onUpdateDemand in interface IDemandListener
      Parameters:
      demand - the updated demand
    • onDeleteDemand

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

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