Class DefaultFlagModuleEntityListener
java.lang.Object
ch.tocco.nice2.entityoperation.impl.entitylistener.DefaultFlagModuleEntityListener
- All Implemented Interfaces:
EntityFacadeListener
,EventListener
@Component
public class DefaultFlagModuleEntityListener
extends Object
implements EntityFacadeListener
this listener ensures that there is only on default template for a template entity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
entityChanging
(EntityChangedEvent event) Fired when any changes are made to an entity.void
Fired when a relation of an entity has been changed.void
setModuleRelations
(List<DefaultFlagModuleConfig> moduleRelations) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.entity.events.EntityFacadeListener
entityCreating, entityDeleting, entityReceivedValues, handleSessionOnlyEntity
-
Constructor Details
-
DefaultFlagModuleEntityListener
-
-
Method Details
-
entityChanging
Description copied from interface:EntityFacadeListener
Fired when any changes are made to an entity.- Specified by:
entityChanging
in interfaceEntityFacadeListener
- Parameters:
event
- The event object.
-
entityRelationChanging
Description copied from interface:EntityFacadeListener
Fired when a relation of an entity has been changed.- Specified by:
entityRelationChanging
in interfaceEntityFacadeListener
- Parameters:
event
- The event object.
-
setModuleRelations
-