Package org.opencms.webdav
Class CmsDavResource
java.lang.Object
org.opencms.webdav.CmsDavResource
- All Implemented Interfaces:
org.apache.jackrabbit.webdav.DavResource
Represents a resource in the WebDav repository (may not actually correspond to an actual OpenCms resource, since
DavResource are also created for the target locations for move/copy operations, before any of the moving / copying happens.
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.webdav.DavResource
METHODS
-
Constructor Summary
ConstructorDescriptionCmsDavResource
(org.apache.jackrabbit.webdav.DavResourceLocator loc, CmsDavResourceFactory factory, CmsDavSession session, org.apache.jackrabbit.webdav.lock.LockManager lockManager) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLockManager
(org.apache.jackrabbit.webdav.lock.LockManager lockmgr) void
addMember
(org.apache.jackrabbit.webdav.DavResource dres, org.apache.jackrabbit.webdav.io.InputContext inputContext) org.apache.jackrabbit.webdav.MultiStatusResponse
alterProperties
(List<? extends org.apache.jackrabbit.webdav.property.PropEntry> changeList) void
copy
(org.apache.jackrabbit.webdav.DavResource dres, boolean shallow) void
delete()
Deletes the resource.boolean
exists()
org.apache.jackrabbit.webdav.DavResource
org.apache.jackrabbit.webdav.DavResourceFactory
getHref()
org.apache.jackrabbit.webdav.DavResourceLocator
org.apache.jackrabbit.webdav.lock.ActiveLock
getLock
(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope) org.apache.jackrabbit.webdav.lock.ActiveLock[]
getLocks()
org.apache.jackrabbit.webdav.DavResourceIterator
long
org.apache.jackrabbit.webdav.property.DavPropertySet
org.apache.jackrabbit.webdav.property.DavProperty<?>
getProperty
(org.apache.jackrabbit.webdav.property.DavPropertyName name) org.apache.jackrabbit.webdav.property.DavPropertyName[]
org.apache.jackrabbit.webdav.DavSession
boolean
hasLock
(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope) boolean
boolean
isLockable
(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope) org.apache.jackrabbit.webdav.lock.ActiveLock
lock
(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo) void
move
(org.apache.jackrabbit.webdav.DavResource destination) org.apache.jackrabbit.webdav.lock.ActiveLock
refreshLock
(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo, String lockToken) void
removeMember
(org.apache.jackrabbit.webdav.DavResource member) void
removeProperty
(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName) void
setProperty
(org.apache.jackrabbit.webdav.property.DavProperty<?> property) void
spool
(org.apache.jackrabbit.webdav.io.OutputContext outputContext) void
-
Constructor Details
-
CmsDavResource
public CmsDavResource(org.apache.jackrabbit.webdav.DavResourceLocator loc, CmsDavResourceFactory factory, CmsDavSession session, org.apache.jackrabbit.webdav.lock.LockManager lockManager) Creates a new instance.- Parameters:
loc
- the locator for this resourcefactory
- the factory that produced this resourcesession
- the Webdav sessionlockManager
- the lock manager
-
-
Method Details
-
addLockManager
- Specified by:
addLockManager
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.addLockManager(org.apache.jackrabbit.webdav.lock.LockManager)
-
addMember
public void addMember(org.apache.jackrabbit.webdav.DavResource dres, org.apache.jackrabbit.webdav.io.InputContext inputContext) throws org.apache.jackrabbit.webdav.DavException - Specified by:
addMember
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.addMember(org.apache.jackrabbit.webdav.DavResource, org.apache.jackrabbit.webdav.io.InputContext)
-
alterProperties
public org.apache.jackrabbit.webdav.MultiStatusResponse alterProperties(List<? extends org.apache.jackrabbit.webdav.property.PropEntry> changeList) throws org.apache.jackrabbit.webdav.DavException - Specified by:
alterProperties
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.alterProperties(java.util.List)
-
copy
public void copy(org.apache.jackrabbit.webdav.DavResource dres, boolean shallow) throws org.apache.jackrabbit.webdav.DavException - Specified by:
copy
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.copy(org.apache.jackrabbit.webdav.DavResource, boolean)
-
delete
Deletes the resource.- Throws:
org.apache.jackrabbit.webdav.DavException
- if an error occurs
-
exists
- Specified by:
exists
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.exists()
-
getCollection
- Specified by:
getCollection
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getCollection()
-
getComplianceClass
- Specified by:
getComplianceClass
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getComplianceClass()
-
getDisplayName
- Specified by:
getDisplayName
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getDisplayName()
-
getFactory
- Specified by:
getFactory
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getFactory()
-
getHref
- Specified by:
getHref
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getHref()
-
getLocator
- Specified by:
getLocator
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getLocator()
-
getLock
public org.apache.jackrabbit.webdav.lock.ActiveLock getLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope) - Specified by:
getLock
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getLock(org.apache.jackrabbit.webdav.lock.Type, org.apache.jackrabbit.webdav.lock.Scope)
-
getLocks
- Specified by:
getLocks
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getLocks()
-
getMembers
- Specified by:
getMembers
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getMembers()
-
getModificationTime
- Specified by:
getModificationTime
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getModificationTime()
-
getProperties
- Specified by:
getProperties
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getProperties()
-
getProperty
public org.apache.jackrabbit.webdav.property.DavProperty<?> getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName name) - Specified by:
getProperty
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName)
-
getPropertyNames
- Specified by:
getPropertyNames
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getPropertyNames()
-
getResourcePath
- Specified by:
getResourcePath
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getResourcePath()
-
getSession
- Specified by:
getSession
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getSession()
-
getSupportedMethods
- Specified by:
getSupportedMethods
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.getSupportedMethods()
-
hasLock
public boolean hasLock(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope) - Specified by:
hasLock
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.hasLock(org.apache.jackrabbit.webdav.lock.Type, org.apache.jackrabbit.webdav.lock.Scope)
-
isCollection
- Specified by:
isCollection
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.isCollection()
-
isLockable
public boolean isLockable(org.apache.jackrabbit.webdav.lock.Type type, org.apache.jackrabbit.webdav.lock.Scope scope) - Specified by:
isLockable
in interfaceorg.apache.jackrabbit.webdav.DavResource
- See Also:
-
DavResource.isLockable(org.apache.jackrabbit.webdav.lock.Type, org.apache.jackrabbit.webdav.lock.Scope)
-
lock
public org.apache.jackrabbit.webdav.lock.ActiveLock lock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo) throws org.apache.jackrabbit.webdav.DavException - Specified by:
lock
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.lock(org.apache.jackrabbit.webdav.lock.LockInfo)
-
move
public void move(org.apache.jackrabbit.webdav.DavResource destination) throws org.apache.jackrabbit.webdav.DavException - Specified by:
move
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.move(org.apache.jackrabbit.webdav.DavResource)
-
refreshLock
public org.apache.jackrabbit.webdav.lock.ActiveLock refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo, String lockToken) throws org.apache.jackrabbit.webdav.DavException - Specified by:
refreshLock
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo, java.lang.String)
-
removeMember
public void removeMember(org.apache.jackrabbit.webdav.DavResource member) throws org.apache.jackrabbit.webdav.DavException - Specified by:
removeMember
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.removeMember(org.apache.jackrabbit.webdav.DavResource)
-
removeProperty
public void removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName) throws org.apache.jackrabbit.webdav.DavException - Specified by:
removeProperty
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName)
-
setProperty
public void setProperty(org.apache.jackrabbit.webdav.property.DavProperty<?> property) throws org.apache.jackrabbit.webdav.DavException - Specified by:
setProperty
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.setProperty(org.apache.jackrabbit.webdav.property.DavProperty)
-
spool
- Specified by:
spool
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
IOException
- See Also:
-
DavResource.spool(org.apache.jackrabbit.webdav.io.OutputContext)
-
unlock
- Specified by:
unlock
in interfaceorg.apache.jackrabbit.webdav.DavResource
- Throws:
org.apache.jackrabbit.webdav.DavException
- See Also:
-
DavResource.unlock(java.lang.String)
-