示例#1
0
        protected override void OnNodeDeletingPhysically(object sender, CancellableNodeEventArgs e)
        {
            base.OnNodeDeletingPhysically(sender, e);

            // Memorize user, orgunit and group ids that should be removed from the security
            // component after the delete operation succeeded.
            e.SetCustomData(IdentitiesCustomDataKey, GetSecurityIdentityIds(e.SourceNode));
        }
示例#2
0
        protected override void OnNodeDeletingPhysically(object sender, CancellableNodeEventArgs e)
        {
            base.OnNodeDeletingPhysically(sender, e);

            // Collect sharing group ids for publicly shared content
            // in the subtree to delete them later in the background.
            var sharingGroupIds = SharingHandler.GetSharingGroupIdsForSubtree(e.SourceNode);

            if (sharingGroupIds?.Any() ?? false)
            {
                e.SetCustomData(SharingGroupIdsCustomDataKey, sharingGroupIds);
            }
        }