public interface VersionResource extends DeltaVResource
VersionResource is a resource that contains a copy of a particular
state of a version-controlled resource. A new version resource is created whenever
a checked-out version-controlled resource is checked-in. The server allocates
a distinct new URL for each new version, and this URL will never be used to
identify any resource other than that version. The content and dead properties
of a version never change.
RFC 3253 defines the following required properties for a version resource:
In addition a version resource must support the following METHODS:
DeltaVResource| Modifier and Type | Field and Description |
|---|---|
static DavPropertyName |
ACTIVITY_SET
DAV:activity-set is a required property for a version resource, if the
server supports the activity feature.
|
static DavPropertyName |
CHECKIN_FORK
This property controls the behavior of CHECKIN when a version already
has a successor.
|
static DavPropertyName |
CHECKOUT_FORK
This property controls the behavior of CHECKOUT when a version already
is checked out or has a successor.
|
static DavPropertyName |
CHECKOUT_SET
The computed property DAV:checkout-set identifies each checked-out
resource whose DAV:checked-out property identifies this version.
|
static DavPropertyName |
LABEL_NAME_SET
Required protected property 'DAV:label-name-set' for a version of a webdav
resource introduced with the 'LabelInfo' feature.
|
static String |
METHODS
The version resource defines one additional method LABEL.
|
static DavPropertyName |
PREDECESSOR_SET
The protected DAV:predecessor property identifies each predecessor of
this version.
|
static DavPropertyName |
SUCCESSOR_SET
The computed property DAV:successor-set identifies each version whose
DAV:predecessor-set identifies this version.
|
static DavPropertyName |
VERSION_CONTROLLED_BINDING_SET
If the 'Version-Controlled-Collection Feature' is supported the
DAV:version-controlled-binding-set property identifies the name and the
version history of all version-controlled internal members of the
collection this version resource belongs to.
|
static DavPropertyName |
VERSION_HISTORY
The computed property DAV:version-history identifies the version history
that contains this version.
|
static DavPropertyName |
VERSION_NAME
The protected property DAV:version-name defines a human readable id for
this version.
|
METHODS_INCL_MKWORKSPACE| Modifier and Type | Method and Description |
|---|---|
VersionHistoryResource |
getVersionHistory()
Returns the
VersionHistoryResource, that is referenced in the
DAV:version-history property. |
void |
label(LabelInfo labelInfo)
Modify the labels of this version resource.
|
addWorkspace, getOptionResponse, getReferenceResources, getReportaddLockManager, addMember, alterProperties, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getMembers, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, removeMember, removeProperty, setProperty, spool, unlockstatic final String METHODS
static final DavPropertyName LABEL_NAME_SET
<!ELEMENT label-name-set (label-name*)> <!ELEMENT label-name (#PCDATA)> PCDATA value: string
static final DavPropertyName PREDECESSOR_SET
<!ELEMENT predecessor-set (href*)>
static final DavPropertyName SUCCESSOR_SET
<!ELEMENT successor-set (href*)>
static final DavPropertyName CHECKOUT_SET
<!ELEMENT checkout-set (href*)>
VersionControlledResource.CHECKED_OUTstatic final DavPropertyName VERSION_NAME
<!ELEMENT version-name (#PCDATA)> PCDATA value: string
static final DavPropertyName VERSION_HISTORY
<!ELEMENT version-history (href)>
static final DavPropertyName CHECKOUT_FORK
static final DavPropertyName CHECKIN_FORK
static final DavPropertyName ACTIVITY_SET
The property is defined to have the following format:
<!ELEMENT activity-set (href*)>Note that the DAV:activity-set represents a
HrefPropertystatic final DavPropertyName VERSION_CONTROLLED_BINDING_SET
This property is defined to have the following format:
<!ELEMENT version-controlled-binding-set (version-controlled-binding*)> <!ELEMENT version-controlled-binding (binding-name, version-history)> <!ELEMENT binding-name (#PCDATA)> PCDATA value: URL segment <!ELEMENT version-history (href)>
VersionControlledResource.ECLIPSED_SETvoid label(LabelInfo labelInfo) throws DavException
LabelInfo object.labelInfo - DavExceptionLabelInfoVersionHistoryResource getVersionHistory() throws DavException
VersionHistoryResource, that is referenced in the
DAV:version-history property.DavExceptionCopyright © 2004–2019 The Apache Software Foundation. All rights reserved.