IWebDAVStore.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System.Security.Principal;
  2. using WebDAVSharp.Server.MethodHandlers;
  3. using WebDAVSharp.Server.Stores.Locks.Interfaces;
  4. namespace WebDAVSharp.Server.Stores
  5. {
  6. /// <summary>
  7. /// This interface must be implemented by classes that serve as stores of collections and
  8. /// documents for the
  9. /// <see cref="WebDavServer" />.
  10. /// </summary>
  11. public interface IWebDavStore
  12. {
  13. /// <summary>
  14. /// Gets the root collection of this <see cref="IWebDavStore" />.
  15. /// </summary>
  16. /// <value>
  17. /// The root.
  18. /// </value>
  19. IWebDavStoreCollection Root { get; }
  20. /// <summary>
  21. /// </summary>
  22. IWebDavStoreItemLock LockSystem { get; set; }
  23. // /// <summary>
  24. // /// </summary>
  25. // WebDavServer.ClearCaches FClearCaches { get; set; }
  26. /// <summary>
  27. /// </summary>
  28. void UserAuthenticated(IIdentity ident);
  29. /// <summary>
  30. /// </summary>
  31. /// <param name="handler"></param>
  32. /// <param name="user"></param>
  33. /// <param name="path"></param>
  34. /// <param name="value"></param>
  35. void AddCacheObject(WebDavMethodHandlerBase handler, string user, string path, object value);
  36. /// <summary>
  37. /// </summary>
  38. /// <param name="handler"></param>
  39. /// <param name="user"></param>
  40. /// <param name="path"></param>
  41. /// <returns></returns>
  42. object GetCacheObject(WebDavMethodHandlerBase handler, string user, string path);
  43. /// <summary>
  44. /// </summary>
  45. /// <param name="key"></param>
  46. void RemoveCacheObject(string key);
  47. }
  48. }