|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.simple.DavResourceImpl
org.apache.jackrabbit.webdav.simple.DeltaVResourceImpl
org.apache.jackrabbit.webdav.simple.VersionHistoryResourceImpl
public class VersionHistoryResourceImpl
VersionHistoryResourceImpl represents a JCR version history.
VersionHistory| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.webdav.simple.DeltaVResourceImpl |
|---|
supportedReports |
| Fields inherited from class org.apache.jackrabbit.webdav.simple.DavResourceImpl |
|---|
COMPLIANCE_CLASSES, METHODS, properties, propsInitialized |
| Fields inherited from interface org.apache.jackrabbit.webdav.version.VersionHistoryResource |
|---|
METHODS, ROOT_VERSION, VERSION_SET |
| Fields inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource |
|---|
METHODS_INCL_MKWORKSPACE |
| Constructor Summary | |
|---|---|
VersionHistoryResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
javax.jcr.Item item)
|
|
| Method Summary | |
|---|---|
void |
addMember(DavResource member,
InputContext inputContext)
The version storage is read-only -> fails with 403. |
MultiStatusResponse |
alterProperties(DavPropertySet setProperties,
DavPropertyNameSet removePropertyNames)
Version storage is read-only -> fails with 403. |
MultiStatusResponse |
alterProperties(java.util.List 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. |
| Methods inherited from class org.apache.jackrabbit.webdav.simple.DeltaVResourceImpl |
|---|
addWorkspace, createResourceFromLocator, getComplianceClass, getHrefProperty, getLocatorFromNode, getLocatorFromNodePath, getOptionResponse, getReferenceResources, getReport, initSupportedReports |
| Methods inherited from class org.apache.jackrabbit.webdav.simple.DavResourceImpl |
|---|
addLockManager, 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, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource |
|---|
addWorkspace, getOptionResponse, getReferenceResources, getReport |
| Methods inherited from interface org.apache.jackrabbit.webdav.DavResource |
|---|
addLockManager, copy, exists, getCollection, getComplianceClass, getDisplayName, getFactory, getHref, getLocator, getLock, getLocks, getModificationTime, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, hasLock, isCollection, isLockable, lock, move, refreshLock, spool, unlock |
| Constructor Detail |
|---|
public VersionHistoryResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
javax.jcr.Item item)
throws DavException
DavException| Method Detail |
|---|
public 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(DavPropertySet setProperties,
DavPropertyNameSet removePropertyNames)
throws DavException
alterProperties in interface DavResourcealterProperties in class DavResourceImplsetProperties - Set of properties to be added or modifiedremovePropertyNames - Set of property names to be removed
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(DavPropertySet, DavPropertyNameSet)
public MultiStatusResponse alterProperties(java.util.List 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 DeltaVResourceImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||