Class EventManager
- java.lang.Object
-
- org.gcube.application.cms.plugins.events.EventManager
-
- All Implemented Interfaces:
EventManagerInterface<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>>
public class EventManager extends Object implements EventManagerInterface<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>>
The Class EventManager.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it Dec 11, 2023
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventManager.EventThe Class Event.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EventManagergetInstance()Gets the single instance of EventManager.voidnotify(EventManager.Event eventType, ItemObserved<org.gcube.application.geoportal.common.model.document.Project> item)Notify.voidsubscribe(EventManager.Event eventType, EventListener<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>> listener)Subscribe.voidunsubscribe(EventManager.Event eventType, EventListener<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>> listener)Unsubscribe.
-
-
-
Method Detail
-
getInstance
public static EventManager getInstance()
Gets the single instance of EventManager.- Returns:
- single instance of EventManager
-
subscribe
public void subscribe(EventManager.Event eventType, EventListener<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>> listener)
Subscribe.- Specified by:
subscribein interfaceEventManagerInterface<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>>- Parameters:
eventType- the event typelistener- the listener
-
unsubscribe
public void unsubscribe(EventManager.Event eventType, EventListener<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>> listener)
Unsubscribe.- Specified by:
unsubscribein interfaceEventManagerInterface<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>>- Parameters:
eventType- the event typelistener- the listener
-
notify
public void notify(EventManager.Event eventType, ItemObserved<org.gcube.application.geoportal.common.model.document.Project> item)
Notify.- Specified by:
notifyin interfaceEventManagerInterface<ItemObserved<org.gcube.application.geoportal.common.model.document.Project>>- Parameters:
eventType- the event typeitem- the item
-
-