public interface Version extends DeltaVItem
Defines the properties and methods that item version must implement. In addition to methods and properties provided by
DeltaVItem
this interface also provides methods for getting version name, next version and previous version.
Usually you will implement Version interface for your resource version objects together with File
interface.
While Resource interface is optional for resource versions it may be useful if your DeltaV client application will request
content of the resource version. In this case File.read(java.io.OutputStream, long, long)
, File.getContentLength()
and File.getContentType()
members of the File
interface will be requested by the engine.
Copying, moving, updating properties and content are not allowed for a version, your HierarchyItem.copyTo(com.ithit.webdav.server.Folder, java.lang.String, boolean)
,
HierarchyItem.moveTo(com.ithit.webdav.server.Folder, java.lang.String)
, HierarchyItem.updateProperties(com.ithit.webdav.server.Property[], com.ithit.webdav.server.Property[])
and File.write(java.io.InputStream, java.lang.String, long, long)
implementations must throw ServerException
with status WebDavStatus.NOT_ALLOWED
Modifier and Type | Method and Description |
---|---|
Version |
getPredecessor()
Previous version or null if no previous version exists.
|
Version |
getSuccessor()
Next version or null if no next version exists.
|
VersionableItem |
getVersionableItem()
Hierarchy item for this version.
|
String |
getVersionName()
Name of the version.
|
getComment, getCreatorDisplayName, setComment, setCreatorDisplayName
copyTo, delete, getCreated, getModified, getName, getPath, getProperties, getPropertyNames, moveTo, updateProperties
Version getSuccessor() throws ServerException
ServerException
- in case of an error.Version getPredecessor() throws ServerException
ServerException
- in case of an error.VersionableItem getVersionableItem() throws ServerException
ServerException
- in case of an error.String getVersionName() throws ServerException
Must be unique among version items for a given hierarchy item. This string is intended for display for a user.
ServerException
- in case of an error.Copyright © ITHit. All Rights Reserved.