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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidentityCreated(Object entity) Called when an new entity instance is created by the factory.voidentityLoaded(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:EntityCreationListenerCalled when an new entity instance is created by the factory.- Specified by:
entityCreatedin interfaceEntityCreationListener
-
entityLoaded
Description copied from interface:EntityCreationListenerCalled when an entity instance is created for a row loaded from the database.- Specified by:
entityLoadedin interfaceEntityCreationListener
-