Namespace: ITHit.WebDAV.Server.DeltaV
The IVersionAsync type exposes the following members.
Name | Description | |
---|---|---|
Created |
Gets the creation date of the item in repository expressed as the coordinated universal time (UTC).
(Inherited from IHierarchyItemBaseAsync.) | |
Modified |
Gets the last modification date of the item in repository expressed as the coordinated universal time (UTC).
(Inherited from IHierarchyItemBaseAsync.) | |
Name |
Gets the name of the item in repository.
(Inherited from IHierarchyItemBaseAsync.) | |
Path |
Unique item path in the repository relative to storage root.
(Inherited from IHierarchyItemBaseAsync.) | |
VersionName |
Name of the version.
|
Name | Description | |
---|---|---|
CopyToAsync |
Creates a copy of this item with a new name in the destination folder.
(Inherited from IHierarchyItemAsync.) | |
DeleteAsync |
Deletes this item.
(Inherited from IHierarchyItemAsync.) | |
GetCommentAsync |
Retrieves a brief comment about a file that is suitable for presentation to a user.
(Inherited from IDeltaVItemAsync.) | |
GetCreatorDisplayNameAsync |
Retrieves display name of the user that created this item.
(Inherited from IDeltaVItemAsync.) | |
GetPredecessorAsync |
Previous version or null if no previous version exists.
| |
GetPropertiesAsync |
Gets values of all properties or selected properties for this item.
(Inherited from IHierarchyItemAsync.) | |
GetPropertyNamesAsync |
Gets names of all properties for this item.
(Inherited from IHierarchyItemAsync.) | |
GetSuccessorAsync |
Next version or null if no next version exists.
| |
GetVersionableItemAsync |
Hierarchy item for this version.
| |
MoveToAsync |
Moves this item to the destination folder under a new name.
(Inherited from IHierarchyItemAsync.) | |
SetCommentAsync |
Sets a brief comment about a file that is suitable for presentation to a user.
(Inherited from IDeltaVItemAsync.) | |
SetCreatorDisplayNameAsync |
Sets display name of the user that created this item.
(Inherited from IDeltaVItemAsync.) | |
UpdatePropertiesAsync |
Adds, modifies and removes properties for this item.
(Inherited from IHierarchyItemAsync.) |
Defines the properties and methods that item version must implement. In addition to methods and properties provided by IDeltaVItemAsync this interface also provides methods for getting version name, next version and previous version.
Usually you will implement IVersion interface for your file version objects together with IFileAsync interface. While IFile interface is optional for file versions it may be useful if your DeltaV client application will request content of the file version. In this case [!:IContentAsync.ReadAsync], [!:IContentAsync.ContentLength] and [!:IContentAsync.ContentType] members of the IFileAsync interface will be requested by the engine. Copying, moving, updating properties and content is not allowed for a version, your CopyToAsync(IItemCollectionAsync, String, Boolean, MultistatusException), MoveToAsync(IItemCollectionAsync, String, MultistatusException), UpdatePropertiesAsync(IListPropertyValue, IListPropertyName, MultistatusException) and [!:IContentAsync.WriteAsync] implementations must throw DavException with status NOT_ALLOWED.
Generally from your VersionName implementation you can return any string suitable for displaying to user as a version or the hierarchy item. This string must be unique among versions for this hierarchy item. Usually you will return “1”, “2”, etc or “3.1”, “3.4”, etc.
GetSuccessorAsync and GetPredecessorAsync methods of this interface return next and previous version for the item. The GetVersionableItemAsync method returns the hierarchy item (usually file) to which this version belongs.