Interface VersionableResource
-
- All Superinterfaces:
DavResource
,DeltaVResource
- All Known Subinterfaces:
VersionControlledResource
- All Known Implementing Classes:
VersionControlledItemCollection
,VersionControlledResourceImpl
,WorkspaceResourceImpl
public interface VersionableResource extends DeltaVResource
VersionableResource
represents an extension to the basicDeltaVResource
, that allows to adding version-control support. By callingaddVersionControl()
resource is put under version control, thus the versionable resource turns into a version controlled resource.RFC 3253 defines the following required properties for a versionable resource:
DAV:workspace
(workspace feature)- DAV:version-controlled-configuration (baseline feature)
- all DeltaV-compliant resource properties
In addition a versionable resource must support the following METHODS:
- VERSION-CONTROL
- all DeltaV-compliant resource METHODS.
- See Also:
DeltaVResource
-
-
Field Summary
Fields Modifier and Type Field Description static String
METHODS
The versionable resource defines one additional method VERSION-CONTROL.-
Fields inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource
METHODS_INCL_MKWORKSPACE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addVersionControl()
Converts this versionable resource into a version-controlled resource.-
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
-
Methods inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource
addWorkspace, getOptionResponse, getReferenceResources, getReport
-
-
-
-
Field Detail
-
METHODS
static final String METHODS
The versionable resource defines one additional method VERSION-CONTROL.
-
-
Method Detail
-
addVersionControl
void addVersionControl() throws DavException
Converts this versionable resource into a version-controlled resource. If this resource is already version-controlled this resource is not affected. If however, this resource is not versionable anDavException
(error code:HttpServletResponse.SC_METHOD_NOT_ALLOWED
is thrown. The same applies, if this resource is versionable but its current state does not allow to made it a version-controlled one or if any other error occurs.- Throws:
DavException
-
-