Package org.silverpeas.core.subscription
Class SubscriptionComponentInstEventListener
- java.lang.Object
-
- org.silverpeas.core.notification.system.CDIResourceEventListener<T>
-
- org.silverpeas.core.subscription.AbstractProfiledResourceSubscriptionListener<ComponentInst,ComponentInstanceEvent>
-
- org.silverpeas.core.subscription.SubscriptionComponentInstEventListener
-
- All Implemented Interfaces:
ResourceEventListener<ComponentInstanceEvent>
@Bean @Singleton public class SubscriptionComponentInstEventListener extends AbstractProfiledResourceSubscriptionListener<ComponentInst,ComponentInstanceEvent>
Listener of the events on the deletion or on an update of a component instance. If the component instance is deleted or if the subscription on the component instance is disabled, then remove all the subscriptions on that component instance (and hence on its resources).- Author:
- mmoquillon
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
logger
-
-
Constructor Summary
Constructors Constructor Description SubscriptionComponentInstEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SubscriptionResource
getSubscriptionResource(ComponentInst resource)
protected boolean
isSubscriptionEnabled(ComponentInst resource)
-
Methods inherited from class org.silverpeas.core.subscription.AbstractProfiledResourceSubscriptionListener
getSubscriptionService, onDeletion, onUpdate
-
Methods inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
onEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.notification.system.ResourceEventListener
dispatchEvent, isEnabled, onCreation, onMove, onRemoving, onUnlock
-
-
-
-
Method Detail
-
getSubscriptionResource
protected SubscriptionResource getSubscriptionResource(ComponentInst resource)
- Specified by:
getSubscriptionResource
in classAbstractProfiledResourceSubscriptionListener<ComponentInst,ComponentInstanceEvent>
-
isSubscriptionEnabled
protected boolean isSubscriptionEnabled(ComponentInst resource)
- Specified by:
isSubscriptionEnabled
in classAbstractProfiledResourceSubscriptionListener<ComponentInst,ComponentInstanceEvent>
-
-