123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using System;
- namespace WebDAVSharp.Server.Stores
- {
- /// <summary>
- /// This interface must be implemented by classes that will function as a store item,
- /// which is either a document (
- /// <see cref="IWebDavStoreDocument" />) or a
- /// collection of documents (
- /// <see cref="IWebDavStoreCollection" />.)
- /// </summary>
- public interface IWebDavStoreItem
- {
- /// <summary>
- /// </summary>
- Uri Href { get; set; }
- /// <summary>
- /// Gets the size of the document in bytes.
- /// </summary>
- long Size { get; }
- /// <summary>
- /// Gets the mime type of <see cref="IWebDavStoreItem" />.
- /// </summary>
- /// <value>
- /// The type of the MIME.
- /// </value>
- string MimeType { get; }
- /// <summary>
- /// Gets the etag of this <see cref="IWebDavStoreItem" />.
- /// </summary>
- /// <value>
- /// The etag.
- /// </value>
- string Etag { get; }
- /// <summary>
- /// </summary>
- IWebDavStore Store { get; }
- /// <summary>
- /// Gets the parent <see cref="IWebDavStoreCollection" /> that owns this <see cref="IWebDavStoreItem" />.
- /// </summary>
- /// <value>
- /// The parent collection.
- /// </value>
- IWebDavStoreCollection ParentCollection { get; }
- /// <summary>
- /// Gets or sets the name of this <see cref="IWebDavStoreItem" />.
- /// </summary>
- /// <value>
- /// The name.
- /// </value>
- string Name { get; set; }
- /// <summary>
- /// Gets the ItemPath of this <see cref="IWebDavStoreItem" />.
- /// </summary>
- /// <value>
- /// The item path.
- /// </value>
- string ItemPath { get; }
- /// <summary>
- /// Gets if this <see cref="IWebDavStoreItem" /> is a collection.
- /// </summary>
- /// <value>
- /// <c>true</c> if this instance is collection; otherwise, <c>false</c>.
- /// </value>
- bool IsCollection { get; }
- /// <summary>
- /// Gets the creation date of this <see cref="IWebDavStoreItem" />.
- /// </summary>
- /// <value>
- /// The creation date.
- /// </value>
- DateTime CreationDate { get; }
- /// <summary>
- /// Gets the modification date of this <see cref="IWebDavStoreItem" />.
- /// </summary>
- /// <value>
- /// The modification date.
- /// </value>
- DateTime ModificationDate { get; }
- /// <summary>
- /// This is a guid uniquely identifying the store item.
- /// </summary>
- /// <returns></returns>
- Guid GetRepl_uId();
- /// <summary>
- /// Returns the file info.
- /// </summary>
- /// <returns></returns>
- IWebDavFileInfo GetFileInfo();
- }
- }
|