예제 #1
0
 private static void ReplaceLockOwner(Mediachase.Net.Wdom.LockInfoElement lockInfoEl)
 {
     if (lockInfoEl != null)
     {
         string newValue = Security.CurrentUser.Login;
         if (!String.IsNullOrEmpty(newValue))
         {
             lockInfoEl.Owner.InnerText = newValue;
         }
     }
 }
예제 #2
0
 public override OpaqueLockToken Lock(Mediachase.Net.Wdom.DepthValue depth, string timeout, Mediachase.Net.Wdom.LockInfoElement lockInfoEl, Mediachase.Net.Wdom.WebDavElementInfo element)
 {
     throw new NotImplementedException();
 }
예제 #3
0
        /// <summary>
        /// Locks the specified depth.
        /// </summary>
        /// <param name="depth">The depth.</param>
        /// <param name="timeout">The timeout.</param>
        /// <param name="lockInfoEl">The lock info el.</param>
        /// <param name="element">The element.</param>
        /// <returns></returns>
        public override OpaqueLockToken Lock(Mediachase.Net.Wdom.DepthValue depth, string timeout, Mediachase.Net.Wdom.LockInfoElement lockInfoEl, Mediachase.Net.Wdom.WebDavElementInfo element)
        {
            ReplaceLockOwner(lockInfoEl);
            PropertyInfoCollection collection = GetProperties(element);

            return(WebDavLockManager.Lock(this, depth, timeout, lockInfoEl, collection));
        }