org.apache.jackrabbit.webdav.version
Interface VersionHistoryResource

All Superinterfaces:
DavResource, DeltaVResource

public interface VersionHistoryResource
extends DeltaVResource

VersionHistoryResource represents a collection that has all versions of a given version-controlled resource as members.

RFC 3253 defines the following required properties for a version history:

In addition a version history resource must support the following METHODS:

NOTE: the DAV:resourcetype property must indicate 'DAV:version-history'.

See Also:
DeltaVResource, ResourceType.VERSION_HISTORY

Field Summary
static String COMPLIANCE_CLASS
           
static String METHODS
           
static DavPropertyName ROOT_VERSION
          Computed (protected) property identifying the root version of this version history.
static DavPropertyName VERSION_SET
          The protected property DAV:version-set identifies each version of this version history.
 
Fields inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource
METHODS_INCL_MKWORKSPACE
 
Method Summary
 VersionResource[] getVersions()
          Returns an array of VersionResources containing all versions that are a member of this resource.
 
Methods inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource
addWorkspace, getOptionResponse, getReferenceResources, getReport
 
Methods inherited from interface org.apache.jackrabbit.webdav.DavResource
addLockManager, 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, unlock
 

Field Detail

COMPLIANCE_CLASS

public static final String COMPLIANCE_CLASS
See Also:
Constant Field Values

METHODS

public static final String METHODS
See Also:
Constant Field Values

ROOT_VERSION

public static final DavPropertyName ROOT_VERSION
Computed (protected) property identifying the root version of this version history.


VERSION_SET

public static final DavPropertyName VERSION_SET
The protected property DAV:version-set identifies each version of this version history.

See Also:
getVersions()
Method Detail

getVersions

public VersionResource[] getVersions()
                              throws DavException
Returns an array of VersionResources containing all versions that are a member of this resource.

Returns:
all VersionResources that belong to this version history.
Throws:
DavException
See Also:
VERSION_SET


Copyright © 2005-2006 . All Rights Reserved.