Class SecurityEntityCreationListener
java.lang.Object
ch.tocco.nice2.persist.security.impl.hibernate.SecurityEntityCreationListener
- All Implemented Interfaces:
EntityCreationListener
@Component
public class SecurityEntityCreationListener
extends Object
implements EntityCreationListener
Checks
CreatePermission
for new entities.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
entityCreated
(Object entity) Called when an new entity instance is created by the factory.void
entityLoaded
(Object entity, boolean isProxyInitialization) Called when an entity instance is created for a row loaded from the database.
-
Constructor Details
-
SecurityEntityCreationListener
-
-
Method Details
-
entityCreated
Description copied from interface:EntityCreationListener
Called when an new entity instance is created by the factory.- Specified by:
entityCreated
in interfaceEntityCreationListener
-
entityLoaded
Description copied from interface:EntityCreationListener
Called when an entity instance is created for a row loaded from the database.- Specified by:
entityLoaded
in interfaceEntityCreationListener
-