Namespace: ITHit.WebDAV.Server.DeltaV
The IVersion 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 IHierarchyItemBase.) | |
Modified |
Gets the last modification date of the item in repository expressed as the coordinated universal time (UTC).
(Inherited from IHierarchyItemBase.) | |
Name |
Gets the name of the item in repository.
(Inherited from IHierarchyItemBase.) | |
Path |
Unique item path in the repository relative to storage root.
(Inherited from IHierarchyItemBase.) | |
VersionName |
Name of the version.
|
Name | Description | |
---|---|---|
CopyToAsync |
Creates a copy of this item with a new name in the destination folder.
(Inherited from IHierarchyItem.) | |
DeleteAsync |
Deletes this item.
(Inherited from IHierarchyItem.) | |
GetCommentAsync |
Retrieves a brief comment about a file that is suitable for presentation to a user.
(Inherited from IDeltaVItem.) | |
GetCreatorDisplayNameAsync |
Retrieves display name of the user that created this item.
(Inherited from IDeltaVItem.) | |
GetPredecessorAsync |
Previous version or null if no previous version exists.
| |
GetPropertiesAsync |
Gets values of all properties or selected properties for this item.
(Inherited from IHierarchyItem.) | |
GetPropertyNamesAsync |
Gets names of all properties for this item.
(Inherited from IHierarchyItem.) | |
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 IHierarchyItem.) | |
SetCommentAsync |
Sets a brief comment about a file that is suitable for presentation to a user.
(Inherited from IDeltaVItem.) | |
SetCreatorDisplayNameAsync |
Sets display name of the user that created this item.
(Inherited from IDeltaVItem.) | |
UpdatePropertiesAsync |
Adds, modifies and removes properties for this item.
(Inherited from IHierarchyItem.) |
Defines the properties and methods that item version must implement. In addition to methods and properties provided by IDeltaVItem 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 IFile 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 ReadAsync(Stream, Int64, Int64), ContentLength and ContentType members of the IFile interface will be requested by the engine. Copying, moving, updating properties and content is not allowed for a version, your CopyToAsync(IItemCollection, String, Boolean, MultistatusException), MoveToAsync(IItemCollection, String, MultistatusException), UpdatePropertiesAsync(IListPropertyValue, IListPropertyName, MultistatusException) and WriteAsync(Stream, String, Int64, Int64) 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.