|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.plugin.webdav.resources.partial.AbstractDavResource
public abstract class AbstractDavResource
The superclass for all XWiki WebDAV resources.
| Field Summary | |
|---|---|
protected org.apache.jackrabbit.webdav.DavResourceLocator |
locator
Resource locator for this resource. |
protected java.lang.String |
name
Name of this resource. |
protected XWikiDavResource |
parentResource
Parent resource (collection). |
| Fields inherited from interface com.xpn.xwiki.plugin.webdav.resources.XWikiDavResource |
|---|
BASE_URI |
| Fields inherited from interface org.apache.jackrabbit.webdav.DavResource |
|---|
COMPLIANCE_CLASS, METHODS |
| Constructor Summary | |
|---|---|
AbstractDavResource()
|
|
| Method Summary | |
|---|---|
void |
addLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockmgr)
|
void |
addVirtualMember(org.apache.jackrabbit.webdav.DavResource resource,
org.apache.jackrabbit.webdav.io.InputContext inputContext)
Utility method for adding virtual members. |
org.apache.jackrabbit.webdav.MultiStatusResponse |
alterProperties(org.apache.jackrabbit.webdav.property.DavPropertySet setProperties,
org.apache.jackrabbit.webdav.property.DavPropertyNameSet removePropertyNames)
|
org.apache.jackrabbit.webdav.MultiStatusResponse |
alterProperties(java.util.List changeList)
|
void |
clearCache()
Removes everything belonging to this resource from the cache. |
void |
copy(org.apache.jackrabbit.webdav.DavResource destination,
boolean shallow)
|
XWikiDavResource |
decode(java.lang.String[] tokens,
int next)
The default decode implementation assumes the next resource in chain to be a temporary resource. |
boolean |
equals(java.lang.Object obj)
|
org.apache.jackrabbit.webdav.DavResource |
getCollection()
|
java.lang.String |
getComplianceClass()
|
XWikiDavContext |
getContext()
|
java.lang.String |
getDisplayName()
|
org.apache.jackrabbit.webdav.DavResourceFactory |
getFactory()
|
java.lang.String |
getHref()
|
java.util.List<XWikiDavResource> |
getInitMembers()
|
org.apache.jackrabbit.webdav.DavResourceLocator |
getLocator()
|
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.property.DavPropertySet |
getProperties()
Default implementation simply returns all the cached properties. |
org.apache.jackrabbit.webdav.property.DavProperty |
getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName name)
|
org.apache.jackrabbit.webdav.property.DavPropertyName[] |
getPropertyNames()
|
java.lang.String |
getResourcePath()
|
org.apache.jackrabbit.webdav.DavSession |
getSession()
|
java.lang.String |
getSupportedMethods()
|
java.util.List<XWikiDavResource> |
getVirtualMembers()
|
org.apache.jackrabbit.webdav.property.DavPropertySet |
getVirtualProperties()
|
int |
hashCode()
|
boolean |
hasLock(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope)
|
void |
init(java.lang.String name,
org.apache.jackrabbit.webdav.DavResourceLocator locator,
XWikiDavContext context)
Initializes this resource with the given parameters. |
void |
init(XWikiDavResource parent,
java.lang.String name,
java.lang.String relativePath)
Initializes this resource with common attributes inherited from the parent. |
boolean |
isLockable(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope)
|
boolean |
isTempResource(java.lang.String resourceName)
Checks if the given resource name corresponds to a temporary resource. |
org.apache.jackrabbit.webdav.lock.ActiveLock |
lock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo)
|
org.apache.jackrabbit.webdav.lock.ActiveLock |
refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo,
java.lang.String lockToken)
|
void |
removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName)
|
void |
removeVirtualMember(org.apache.jackrabbit.webdav.DavResource member)
Utility method for removing virtual members. |
void |
setProperty(org.apache.jackrabbit.webdav.property.DavProperty property)
|
void |
unlock(java.lang.String lockToken)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jackrabbit.webdav.DavResource |
|---|
addMember, exists, getMembers, getModificationTime, isCollection, move, removeMember, spool |
| Field Detail |
|---|
protected java.lang.String name
protected org.apache.jackrabbit.webdav.DavResourceLocator locator
DavResourceLocator.
protected XWikiDavResource parentResource
| Constructor Detail |
|---|
public AbstractDavResource()
| Method Detail |
|---|
public void init(XWikiDavResource parent,
java.lang.String name,
java.lang.String relativePath)
throws org.apache.jackrabbit.webdav.DavException
init in interface XWikiDavResourceparent - Parent resource.name - Name of this resource.relativePath - Path relative to the parent resource.
org.apache.jackrabbit.webdav.DavException - If the initialization fails.
public void init(java.lang.String name,
org.apache.jackrabbit.webdav.DavResourceLocator locator,
XWikiDavContext context)
throws org.apache.jackrabbit.webdav.DavException
init in interface XWikiDavResourcename - Name of this resource.locator - Dav resource locator.context - XWiki dav context.
org.apache.jackrabbit.webdav.DavException - If the initialization fails.
public XWikiDavResource decode(java.lang.String[] tokens,
int next)
throws org.apache.jackrabbit.webdav.DavException
The default decode implementation assumes the next resource in chain to be a temporary resource. Sub classes should override this method to provide their own implementation.
decode in interface XWikiDavResourcetokens - segmented URL.next - next index to be processed by this resource.
XWikiDavResource corresponding to the given URL.
org.apache.jackrabbit.webdav.DavException - If it's not possible to decode the URL.
public boolean isLockable(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope)
isLockable in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.lock.ActiveLock getLock(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope)
getLock in interface org.apache.jackrabbit.webdav.DavResourcepublic org.apache.jackrabbit.webdav.lock.ActiveLock[] getLocks()
getLocks in interface org.apache.jackrabbit.webdav.DavResource
public boolean hasLock(org.apache.jackrabbit.webdav.lock.Type type,
org.apache.jackrabbit.webdav.lock.Scope scope)
hasLock in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.lock.ActiveLock lock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo)
throws org.apache.jackrabbit.webdav.DavException
lock in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavException
public org.apache.jackrabbit.webdav.lock.ActiveLock refreshLock(org.apache.jackrabbit.webdav.lock.LockInfo reqLockInfo,
java.lang.String lockToken)
throws org.apache.jackrabbit.webdav.DavException
refreshLock in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavException
public void unlock(java.lang.String lockToken)
throws org.apache.jackrabbit.webdav.DavException
unlock in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavException
public void copy(org.apache.jackrabbit.webdav.DavResource destination,
boolean shallow)
throws org.apache.jackrabbit.webdav.DavException
copy in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavExceptionpublic org.apache.jackrabbit.webdav.property.DavPropertySet getProperties()
getProperties in interface org.apache.jackrabbit.webdav.DavResourcepublic org.apache.jackrabbit.webdav.property.DavProperty getProperty(org.apache.jackrabbit.webdav.property.DavPropertyName name)
getProperty in interface org.apache.jackrabbit.webdav.DavResourcepublic org.apache.jackrabbit.webdav.property.DavPropertyName[] getPropertyNames()
getPropertyNames in interface org.apache.jackrabbit.webdav.DavResource
public org.apache.jackrabbit.webdav.MultiStatusResponse alterProperties(org.apache.jackrabbit.webdav.property.DavPropertySet setProperties,
org.apache.jackrabbit.webdav.property.DavPropertyNameSet removePropertyNames)
throws org.apache.jackrabbit.webdav.DavException
alterProperties in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavException
public org.apache.jackrabbit.webdav.MultiStatusResponse alterProperties(java.util.List changeList)
throws org.apache.jackrabbit.webdav.DavException
alterProperties in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavException
public void removeProperty(org.apache.jackrabbit.webdav.property.DavPropertyName propertyName)
throws org.apache.jackrabbit.webdav.DavException
removeProperty in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavException
public void setProperty(org.apache.jackrabbit.webdav.property.DavProperty property)
throws org.apache.jackrabbit.webdav.DavException
setProperty in interface org.apache.jackrabbit.webdav.DavResourceorg.apache.jackrabbit.webdav.DavExceptionpublic void addLockManager(org.apache.jackrabbit.webdav.lock.LockManager lockmgr)
addLockManager in interface org.apache.jackrabbit.webdav.DavResourcepublic java.lang.String getDisplayName()
getDisplayName in interface org.apache.jackrabbit.webdav.DavResourcepublic java.lang.String getComplianceClass()
getComplianceClass in interface org.apache.jackrabbit.webdav.DavResourcepublic java.lang.String getSupportedMethods()
getSupportedMethods in interface org.apache.jackrabbit.webdav.DavResourcepublic org.apache.jackrabbit.webdav.DavResourceFactory getFactory()
getFactory in interface org.apache.jackrabbit.webdav.DavResourcepublic org.apache.jackrabbit.webdav.DavResourceLocator getLocator()
getLocator in interface org.apache.jackrabbit.webdav.DavResourcepublic java.lang.String getResourcePath()
getResourcePath in interface org.apache.jackrabbit.webdav.DavResourcepublic java.lang.String getHref()
getHref in interface org.apache.jackrabbit.webdav.DavResourcepublic org.apache.jackrabbit.webdav.DavSession getSession()
getSession in interface org.apache.jackrabbit.webdav.DavResourcepublic org.apache.jackrabbit.webdav.DavResource getCollection()
getCollection in interface org.apache.jackrabbit.webdav.DavResourcepublic XWikiDavContext getContext()
getContext in interface XWikiDavResourceXWikiDavContext for this resource.public java.util.List<XWikiDavResource> getVirtualMembers()
getVirtualMembers in interface XWikiDavResourcepublic org.apache.jackrabbit.webdav.property.DavPropertySet getVirtualProperties()
getVirtualProperties in interface XWikiDavResourcepublic java.util.List<XWikiDavResource> getInitMembers()
getInitMembers in interface XWikiDavResourcepublic void clearCache()
clearCache in interface XWikiDavResource
public void addVirtualMember(org.apache.jackrabbit.webdav.DavResource resource,
org.apache.jackrabbit.webdav.io.InputContext inputContext)
throws org.apache.jackrabbit.webdav.DavException
resource - XWikiDavResource instance.inputContext - InputContext
org.apache.jackrabbit.webdav.DavException
public void removeVirtualMember(org.apache.jackrabbit.webdav.DavResource member)
throws org.apache.jackrabbit.webdav.DavException
member - XWikiDavResource to be removed.
org.apache.jackrabbit.webdav.DavExceptionpublic boolean isTempResource(java.lang.String resourceName)
resourceName - Name of the resource.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||