Ejemplo n.º 1
0
 /// <summary>
 /// Removes all explicit entries from the current content.
 /// If AclEditor passed, the modification is executed in it
 /// else executed immediately.
 /// </summary>
 public void RemoveExplicitEntries(SnAclEditor aclEditor = null)
 {
     if (aclEditor == null)
     {
         _securityHandler.CreateAclEditor()
         .RemoveExplicitEntries(_node.Id)
         .Apply();
         return;
     }
     if (aclEditor.EntryType != EntryType.Normal)
     {
         throw new InvalidOperationException(
                   "EntryType mismatch int the passed AclEditor. Only the EntryType.Normal category is allowed in this context.");
     }
     aclEditor.RemoveExplicitEntries(_node.Id);
 }
Ejemplo n.º 2
0
        /*********************** ACL API **********************/

        /// <summary>
        /// Creates a new instance of the SnAclEditor class for modifying permissions.
        /// </summary>
        public new SnAclEditor CreateAclEditor(EntryType entryType = EntryType.Normal)
        {
            return(SnAclEditor.Create(this, entryType));
        }
Ejemplo n.º 3
0
        /*********************** ACL API **********************/

        /// <summary>
        /// Creates a new instance of the SnAclEditor class for modifying permissions.
        /// </summary>
        public new SnAclEditor CreateAclEditor()
        {
            return(SnAclEditor.Create(this));
        }