public class VersionHistoryResourceImpl extends DeltaVResourceImpl implements VersionHistoryResource
VersionHistoryResourceImpl represents a JCR version history.VersionHistorysupportedReportsCOMPLIANCE_CLASSES, METHODS, properties, propsInitializedMETHODS, ROOT_VERSION, VERSION_SETMETHODS_INCL_MKWORKSPACEJCR_AUTOCREATED, JCR_BASEVERSION, JCR_CHILD, JCR_CHILDNODEDEFINITION, JCR_CONTENT, JCR_CREATED, JCR_DATA, JCR_DEFAULTPRIMARYTYPE, JCR_DEFAULTVALUES, JCR_ENCODING, JCR_FROZENMIXINTYPES, JCR_FROZENNODE, JCR_FROZENPRIMARYTYPE, JCR_FROZENUUID, JCR_HASORDERABLECHILDNODES, JCR_ISCHECKEDOUT, JCR_ISMIXIN, JCR_LANGUAGE, JCR_LASTMODIFIED, JCR_LOCKISDEEP, JCR_LOCKOWNER, JCR_MANDATORY, JCR_MERGEFAILED, JCR_MIMETYPE, JCR_MIXINTYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODETYPENAME, JCR_ONPARENTVERSION, JCR_PATH, JCR_PREDECESSORS, JCR_PRIMARYITEMNAME, JCR_PRIMARYTYPE, JCR_PROPERTYDEFINITION, JCR_PROTECTED, JCR_REQUIREDPRIMARYTYPES, JCR_REQUIREDTYPE, JCR_ROOTVERSION, JCR_SAMENAMESIBLINGS, JCR_SCORE, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_SYSTEM, JCR_UUID, JCR_VALUECONSTRAINTS, JCR_VERSIONABLEUUID, JCR_VERSIONHISTORY, JCR_VERSIONLABELS, JCR_VERSIONSTORAGE, MIX_LOCKABLE, MIX_REFERENCEABLE, MIX_SHAREABLE, MIX_VERSIONABLE, NT_BASE, NT_CHILDNODEDEFINITION, NT_FILE, NT_FOLDER, NT_FROZENNODE, NT_HIERARCHYNODE, NT_LINKEDFILE, NT_NODETYPE, NT_PROPERTYDEFINITION, NT_QUERY, NT_RESOURCE, NT_UNSTRUCTURED, NT_VERSION, NT_VERSIONEDCHILD, NT_VERSIONHISTORY, NT_VERSIONLABELS| Constructor and Description |
|---|
VersionHistoryResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
Item item) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(DavResource member,
InputContext inputContext)
The version storage is read-only -> fails with 403.
|
MultiStatusResponse |
alterProperties(List<? extends PropEntry> changeList)
Version storage is read-only -> fails with 403.
|
DavResourceIterator |
getMembers()
Show all versions of this history as members.
|
VersionResource[] |
getVersions()
Return an array of
VersionResources representing all versions
present in the underlying JCR version history. |
protected void |
initProperties()
Fill the property set for this resource.
|
void |
removeMember(DavResource member)
Removing a version resource is achieved by calling
removeVersion
on the versionhistory item this version belongs to. |
void |
removeProperty(DavPropertyName propertyName)
Version storage is read-only -> fails with 403.
|
void |
setProperty(DavProperty<?> property)
Version storage is read-only -> fails with 403.
|
addWorkspace, createResourceFromLocator, getComplianceClass, getHrefProperty, getLocatorFromNode, getLocatorFromNodePath, getOptionResponse, getReferenceResources, getReport, initSupportedReportsaddLockManager, bind, copy, exists, getCollection, getDisplayName, getExportContext, getFactory, getHref, getImportContext, getLocator, getLock, getLocks, getModificationTime, getNode, getParentElements, getProperties, getProperty, getPropertyExportContext, getPropertyImportContext, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, rebind, refreshLock, spool, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWorkspace, getOptionResponse, getReferenceResources, getReportaddLockManager, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, spool, unlockpublic VersionHistoryResourceImpl(DavResourceLocator locator, DavResourceFactory factory, DavSession session, ResourceConfig config, Item item) throws DavException
DavExceptionpublic DavResourceIterator getMembers()
getMembers in interface DavResourcegetMembers in class DavResourceImplDavResource.getMembers()public void addMember(DavResource member, InputContext inputContext) throws DavException
addMember in interface DavResourceaddMember in class DavResourceImplmember - DavResource to be added as internal member.inputContext - Context providing the properties and content for the
internal member to be created or replaced.DavExceptionDavResource.addMember(DavResource, InputContext)public void removeMember(DavResource member) throws DavException
removeVersion
on the versionhistory item this version belongs to.removeMember in interface DavResourceremoveMember in class DavResourceImplDavException - if the version does not exist or if an error occurs
while deleting.DavResource.removeMember(org.apache.jackrabbit.webdav.DavResource)public void setProperty(DavProperty<?> property) throws DavException
setProperty in interface DavResourcesetProperty in class DavResourceImplDavException - if an error occursDavResource.setProperty(DavProperty)public void removeProperty(DavPropertyName propertyName) throws DavException
removeProperty in interface DavResourceremoveProperty in class DavResourceImplDavException - if an error occursDavResource.removeProperty(DavPropertyName)public MultiStatusResponse alterProperties(List<? extends PropEntry> changeList) throws DavException
alterProperties in interface DavResourcealterProperties in class DavResourceImplchangeList - list containing DavPropertyName objects (for
properties to be removed) and DavProperty objects (for
properties to be added/set).DavException - if an error occurred. This may be the case if the
general state of the resource prevents any properties to be set or removed
(e.g. due to a lock).DavResource.alterProperties(List)public VersionResource[] getVersions() throws DavException
VersionResources representing all versions
present in the underlying JCR version history.getVersions in interface VersionHistoryResourceVersionResources representing all versions
present in the underlying JCR version history.DavExceptionVersionHistoryResource.getVersions()protected void initProperties()
initProperties in class DeltaVResourceImplCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.