IWebDavStoreItemLock.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Xml;
  4. using WebDAVSharp.Server.Stores.Locks.Enums;
  5. namespace WebDAVSharp.Server.Stores.Locks.Interfaces
  6. {
  7. /// <summary>
  8. /// </summary>
  9. public interface IWebDavStoreItemLock
  10. {
  11. /// <summary>
  12. /// </summary>
  13. bool AllowInfiniteCheckouts { get; set; }
  14. /// <summary>
  15. /// </summary>
  16. long MaxCheckOutSeconds { get; set; }
  17. /// <summary>
  18. /// </summary>
  19. /// <param name="storeItem"></param>
  20. /// <param name="locktoken"></param>
  21. /// <param name="requestedlocktimeout"></param>
  22. /// <param name="requestDocument"></param>
  23. /// <returns></returns>
  24. int RefreshLock(IWebDavStoreItem storeItem, Guid? locktoken, double? requestedlocktimeout, out XmlDocument requestDocument);
  25. /// <summary>
  26. /// </summary>
  27. /// <param name="storeItem"></param>
  28. /// <param name="lockscope"></param>
  29. /// <param name="locktype"></param>
  30. /// <param name="lockowner"></param>
  31. /// <param name="requestedlocktimeout"></param>
  32. /// <param name="locktoken"></param>
  33. /// <param name="requestDocument"></param>
  34. /// <param name="depth"></param>
  35. /// <returns></returns>
  36. int Lock(IWebDavStoreItem storeItem, WebDavLockScope lockscope, WebDavLockType locktype, string lockowner, double? requestedlocktimeout, out Guid? locktoken, XmlDocument requestDocument, int depth);
  37. /// <summary>
  38. /// </summary>
  39. /// <param name="storeItem"></param>
  40. /// <param name="locktoken"></param>
  41. /// <param name="owner"></param>
  42. /// <returns></returns>
  43. int UnLock(IWebDavStoreItem storeItem, Guid? locktoken, string owner);
  44. /// <summary>
  45. /// </summary>
  46. /// <param name="storeItem"></param>
  47. /// <returns></returns>
  48. List<IWebDavStoreItemLockInstance> GetLocks(IWebDavStoreItem storeItem);
  49. }
  50. }