Ejemplo n.º 1
0
 protected void Lock(IAuthentication authentication, string comment)
 {
     this.lockInfo = new LockInfo()
     {
         Path          = this.Path,
         ParentPath    = string.Empty,
         SignatureDate = new SignatureDate(authentication.ID),
         Comment       = comment
     };
     this.UpdateLockParent(this);
     this.OnLockChanged(EventArgs.Empty);
 }
Ejemplo n.º 2
0
 protected void Unlock(IAuthentication authentication)
 {
     this.lockInfo = LockInfo.Empty;
     this.UpdateLockParent(this.lockParent);
     this.OnLockChanged(EventArgs.Empty);
 }
Ejemplo n.º 3
0
 public static bool IsOwnerOf(this IAuthentication authentication, LockInfo lockInfo)
 {
     return(authentication.ID == lockInfo.UserID);
 }