WebDavStoreItemLockBase.cs 2.4 KB

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