Class SetPermissionsFlagListener

java.lang.Object
ch.tocco.nice2.dms.impl.entitylistener.SetPermissionsFlagListener
All Implemented Interfaces:
EntityFacadeListener, EventListener

public class SetPermissionsFlagListener extends Object implements EntityFacadeListener
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.