|
||||||||||
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.VersionResourceImpl
public class VersionResourceImpl
VersionResourceImpl
represents a JCR version.
Version
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.VersionResource |
---|
ACTIVITY_SET, CHECKIN_FORK, CHECKOUT_FORK, CHECKOUT_SET, LABEL_NAME_SET, METHODS, PREDECESSOR_SET, SUCCESSOR_SET, VERSION_CONTROLLED_BINDING_SET, VERSION_HISTORY, VERSION_NAME |
Fields inherited from interface org.apache.jackrabbit.webdav.version.DeltaVResource |
---|
METHODS_INCL_MKWORKSPACE |
Constructor Summary | |
---|---|
VersionResourceImpl(DavResourceLocator locator,
DavResourceFactory factory,
DavSession session,
ResourceConfig config,
Item item)
Create a new DavResource . |
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(List changeList)
Version storage is read-only -> fails with 403. |
DavResourceIterator |
getMembers()
Returns an iterator over all internal members. |
VersionHistoryResource |
getVersionHistory()
Returns the VersionHistory associated with the repository version. |
protected void |
initProperties()
Fill the property set for this resource. |
protected void |
initSupportedReports()
Define the set of reports supported by this resource. |
boolean |
isCollection()
Since this implementation of VersionResource never is a
version belonging to a version controlled collection, this method always
returns false not respecting the configuration. |
void |
label(LabelInfo labelInfo)
Modify the labels defined for the underlying repository version. |
void |
removeMember(DavResource member)
The version storage is read-only -> fails with 403. |
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 |
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, 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, isLockable, lock, move, refreshLock, spool, unlock |
Constructor Detail |
---|
public VersionResourceImpl(DavResourceLocator locator, DavResourceFactory factory, DavSession session, ResourceConfig config, Item item) throws DavException
DavResource
.
locator
- factory
- session
- config
- item
-
DavException
Method Detail |
---|
public boolean isCollection()
VersionResource
never is a
version belonging to a version controlled collection, this method always
returns false
not respecting the configuration.
isCollection
in interface DavResource
isCollection
in class DavResourceImpl
DavResource.isCollection()
public DavResourceIterator getMembers()
DavResource
getMembers
in interface DavResource
getMembers
in class DavResourceImpl
DavResourceIterator
DavResource.getMembers()
public void addMember(DavResource member, InputContext inputContext) throws DavException
addMember
in interface DavResource
addMember
in class DavResourceImpl
member
- DavResource
to be added as internal member.inputContext
- Context providing the properties and content for the
internal member to be created or replaced.
DavException
DavResource.addMember(DavResource, InputContext)
public void removeMember(DavResource member) throws DavException
removeMember
in interface DavResource
removeMember
in class DavResourceImpl
DavException
DavResource.removeMember(DavResource)
public void setProperty(DavProperty property) throws DavException
setProperty
in interface DavResource
setProperty
in class DavResourceImpl
DavException
- if an error occursDavResource.setProperty(DavProperty)
public void removeProperty(DavPropertyName propertyName) throws DavException
removeProperty
in interface DavResource
removeProperty
in class DavResourceImpl
DavException
- if an error occursDavResource.removeProperty(DavPropertyName)
public MultiStatusResponse alterProperties(DavPropertySet setProperties, DavPropertyNameSet removePropertyNames) throws DavException
alterProperties
in interface DavResource
alterProperties
in class DavResourceImpl
setProperties
- 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(List changeList) throws DavException
alterProperties
in interface DavResource
alterProperties
in class DavResourceImpl
changeList
- 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 void label(LabelInfo labelInfo) throws DavException
label
in interface VersionResource
labelInfo
-
DavException
VersionResource.label(org.apache.jackrabbit.webdav.version.LabelInfo)
,
VersionHistory.addVersionLabel(String, String, boolean)
,
VersionHistory.removeVersionLabel(String)
public VersionHistoryResource getVersionHistory() throws DavException
VersionHistory
associated with the repository version.
Note: in contrast to a versionable node, the version history of a version
item is always represented by its nearest ancestor.
getVersionHistory
in interface VersionResource
VersionHistoryResource
associated with this resource.
DavException
VersionResource.getVersionHistory()
,
Item.getParent()
protected void initSupportedReports()
initSupportedReports
in class DeltaVResourceImpl
SupportedReportSetProperty
protected void initProperties()
initProperties
in class DeltaVResourceImpl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |