Class SetPermissionsFlagListener
java.lang.Object
ch.tocco.nice2.dms.impl.entitylistener.SetPermissionsFlagListener
- All Implemented Interfaces:
EntityFacadeListener
,EventListener
This listener updates permission flags on entities, which represent a ContentTreeNode.
These flags are useful, because the Node_right entities don't need to be resolved,
if a flag is set to false (better performance).
CAUTION - The following case won't work:
If you take a ContentTreeNode and only remove the relation to the Node_right entity, without touching
the Node_right entity itself, this listener won't take notice of this change and therefore
the flag on the ContentTreeNode won't be changed. You ALWAYS have to delete the Node_right entity.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
entityDeleting
(EntityFacadeEvent event) Fired when an entity is being deleted.void
Fired when a relation of an entity has been changed.void
setRelations
(List<String> relations) 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
entityChanging, entityCreating, entityReceivedValues, handleSessionOnlyEntity
-
Constructor Details
-
SetPermissionsFlagListener
-
-
Method Details
-
setRelations
-
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.
-
entityDeleting
Description copied from interface:EntityFacadeListener
Fired when an entity is being deleted.- Specified by:
entityDeleting
in interfaceEntityFacadeListener
- Parameters:
event
- The event Object
-