Class AbstractStoreEventListener<T>
java.lang.Object
org.springframework.content.commons.store.events.AbstractStoreEventListener<T>
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<StoreEvent>
public abstract class AbstractStoreEventListener<T>
extends Object
implements org.springframework.context.ApplicationListener<StoreEvent>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Override this method if you are interested in afterAssociate events.protected void
onAfterAssociate
(T entity) Override this method if you are interested in afterAssociate events.protected void
Override this method if you are interested in afterGetContent events.protected void
onAfterGetContent
(T entity) Override this method if you are interested in afterGetContent events.protected void
Override this method if you are interested in afterGetResource events.protected void
onAfterGetResource
(T entity) Override this method if you are interested in afterGetResource events.protected void
Override this method if you are interested in afterSetContent events.protected void
onAfterSetContent
(T entity) Override this method if you are interested in afterSetContent events.protected void
Override this method if you are interested in afterUnassociate events.protected void
onAfterUnassociate
(T entity) Override this method if you are interested in afterUnassociate events.protected void
Override this method if you are interested in afterUnsetContent events.protected void
onAfterUnsetContent
(T entity) Override this method if you are interested in afterUnsetContent events.final void
onApplicationEvent
(StoreEvent event) protected void
Override this method if you are interested in beforeAssociate events.protected void
onBeforeAssociate
(T entity) Override this method if you are interested in beforeAssociate events.protected void
Override this method if you are interested in beforeGetContent events.protected void
onBeforeGetContent
(T entity) Override this method if you are interested in beforeGetContent events.protected void
Override this method if you are interested in beforeGetResource events.protected void
onBeforeGetResource
(T entity) Override this method if you are interested in beforeGetResource events.protected void
Override this method if you are interested in beforeSetContent events.protected void
onBeforeSetContent
(T entity) Override this method if you are interested in beforeSetContent events.protected void
Override this method if you are interested in beforeUnassociate events.protected void
onBeforeUnassociate
(T entity) Override this method if you are interested in beforeUnassociate events.protected void
Override this method if you are interested in beforeUnsetContent events.protected void
onBeforeUnsetContent
(T entity) Override this method if you are interested in beforeUnsetContent events.
-
Constructor Details
-
AbstractStoreEventListener
public AbstractStoreEventListener()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<T>
-
onBeforeGetResource
Override this method if you are interested in beforeGetResource events.- Parameters:
event
- The event
-
onBeforeGetResource
Override this method if you are interested in beforeGetResource events.- Parameters:
entity
- The content entity being fetched.
-
onAfterGetResource
Override this method if you are interested in afterGetResource events.- Parameters:
event
- The event
-
onAfterGetResource
Override this method if you are interested in afterGetResource events.- Parameters:
entity
- The content entity being fetched.
-
onBeforeAssociate
Override this method if you are interested in beforeAssociate events.- Parameters:
event
- The event
-
onBeforeAssociate
Override this method if you are interested in beforeAssociate events.- Parameters:
entity
- The content entity being fetched.
-
onAfterAssociate
Override this method if you are interested in afterAssociate events.- Parameters:
event
- The event
-
onAfterAssociate
Override this method if you are interested in afterAssociate events.- Parameters:
entity
- The content entity being fetched.
-
onBeforeUnassociate
Override this method if you are interested in beforeUnassociate events.- Parameters:
event
- The event
-
onBeforeUnassociate
Override this method if you are interested in beforeUnassociate events.- Parameters:
entity
- The content entity being fetched.
-
onAfterUnassociate
Override this method if you are interested in afterUnassociate events.- Parameters:
event
- The event
-
onAfterUnassociate
Override this method if you are interested in afterUnassociate events.- Parameters:
entity
- The content entity being fetched.
-
onBeforeGetContent
Override this method if you are interested in beforeGetContent events.- Parameters:
event
- The event
-
onBeforeGetContent
Override this method if you are interested in beforeGetContent events.- Parameters:
entity
- The content entity being fetched.
-
onAfterGetContent
Override this method if you are interested in afterGetContent events.- Parameters:
event
- The event
-
onAfterGetContent
Override this method if you are interested in afterGetContent events.- Parameters:
entity
- The content entity being fetched.
-
onBeforeSetContent
Override this method if you are interested in beforeSetContent events.- Parameters:
entity
- The content event
-
onBeforeSetContent
Override this method if you are interested in beforeSetContent events.- Parameters:
entity
- The content entity being updated.
-
onAfterSetContent
Override this method if you are interested in afterSetContent events.- Parameters:
event
- The content event
-
onAfterSetContent
Override this method if you are interested in afterSetContent events.- Parameters:
entity
- The content entity being updated.
-
onBeforeUnsetContent
Override this method if you are interested in beforeUnsetContent events.- Parameters:
event
- The content event
-
onBeforeUnsetContent
Override this method if you are interested in beforeUnsetContent events.- Parameters:
entity
- The content entity being removed.
-
onAfterUnsetContent
Override this method if you are interested in afterUnsetContent events.- Parameters:
event
- The content event
-
onAfterUnsetContent
Override this method if you are interested in afterUnsetContent events.- Parameters:
entity
- The content entity being removed.
-