DavItem Class

Namespace:
Weavy.Web.WebDAV
Assembly:
Weavy.Web.dll

Abstract base class for WebDAV items.

public abstract class DavItem : IHierarchyItemAsync, ILockAsync
Inheritance:
System.Object → DavItem

Constructors

DavItem(DavContext, IEntity, String)

Properties

Created Gets the creation date of the item in repository expressed as the coordinated universal time (UTC).
Modified Gets the last modification date of the item in repository expressed as the coordinated universal time (UTC).
Name Gets the name of the item in repository.
Path Unique item path in the repository relative to storage root.

Methods

CopyToAsync(IItemCollectionAsync, string, bool, MultistatusException) Creates a copy of this item with a new name in the destination folder.
DeleteAsync(MultistatusException) Deletes this item.
GetActiveLocksAsync() Gets the array of all locks for this item.
GetPropertiesAsync(IListName>, bool) Gets values of all properties or selected properties for this item.
GetPropertyNamesAsync()
LockAsync(LockLevel, bool, TimeSpan?, string) Locks this item.
MoveToAsync(IItemCollectionAsync, string, MultistatusException) Moves this item to the destination folder under a new name.
RefreshLockAsync(string, TimeSpan?) Updates lock timeout information on this item.
UnlockAsync(string) Removes lock with the specified token from this item.
UpdatePropertiesAsync(IListValue>, IListName>, MultistatusException) Modifies and removes properties for this item.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.