Package lumis.portal.event.persistence
Class PortalEventEntityListener
- java.lang.Object
-
- lumis.portal.event.persistence.PortalEventEntityListener
-
@StableMinor(version="14.0", sinceVersion="4.2") public class PortalEventEntityListener extends Object
JPA Entity listener that sends the corresponding portal events throughIPortalEventManager.notifyObservers(lumis.portal.event.IPortalEvent)
.The use of this class as a listener is an alternative of using
BasePortalEntity
.- Since:
- 4.2.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Constructor Summary
Constructors Constructor Description PortalEventEntityListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onPostLoad(Object entity)
protected void
onPostPersist(Object entity)
protected void
onPostRemove(Object entity)
protected void
onPostUpdate(Object entity)
protected void
onPrePersist(Object entity)
protected void
onPreRemove(Object entity)
protected void
onPreUpdate(Object entity)
-
-
-
Method Detail
-
onPreUpdate
protected void onPreUpdate(Object entity) throws PortalException
- Throws:
PortalException
-
onPostUpdate
protected void onPostUpdate(Object entity) throws PortalException
- Throws:
PortalException
-
onPrePersist
protected void onPrePersist(Object entity) throws PortalException
- Throws:
PortalException
-
onPostPersist
protected void onPostPersist(Object entity) throws PortalException
- Throws:
PortalException
-
onPreRemove
protected void onPreRemove(Object entity) throws PortalException
- Throws:
PortalException
-
onPostRemove
protected void onPostRemove(Object entity) throws PortalException
- Throws:
PortalException
-
onPostLoad
protected void onPostLoad(Object entity) throws PortalException
- Throws:
PortalException
-
-