public class MockDemandListener extends Object implements IDemandListener
IDemandListener| Constructor and Description |
|---|
MockDemandListener() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
listenAndConsume(MockActionListenerEnum actionListener,
Demand demand)
Listens and consumes a demand
|
void |
onCreateDemand(Demand demand)
Something to do when a demand is created
|
void |
onDeleteDemand(String strDemandId,
String strDemandTypeId)
Something to do when a demand is deleted
|
void |
onUpdateDemand(Demand demand)
Something to do when a demand is updated
|
public void onCreateDemand(Demand demand)
onCreateDemand in interface IDemandListenerdemand - the created demandpublic void onUpdateDemand(Demand demand)
onUpdateDemand in interface IDemandListenerdemand - the updated demandpublic void onDeleteDemand(String strDemandId, String strDemandTypeId)
onDeleteDemand in interface IDemandListenerstrDemandId - the demand idstrDemandTypeId - the demand type idpublic boolean listenAndConsume(MockActionListenerEnum actionListener, Demand demand)
actionListener - the action to performdemand - the demandtrue if the treatment is successful, false otherwiseCopyright © 2021 City of Paris. All rights reserved.