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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidentityDeleting(EntityFacadeEvent event) Fired when an entity is being deleted.voidFired when a relation of an entity has been changed.voidsetRelations(List<String> relations) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:EntityFacadeListenerFired when a relation of an entity has been changed.- Specified by:
entityRelationChangingin interfaceEntityFacadeListener- Parameters:
event- The event object.
-
entityDeleting
Description copied from interface:EntityFacadeListenerFired when an entity is being deleted.- Specified by:
entityDeletingin interfaceEntityFacadeListener- Parameters:
event- The event Object
-