com.xpn.xwiki.plugin.webdav.resources.domain
Class DavAttachment

java.lang.Object
  extended by com.xpn.xwiki.plugin.webdav.resources.partial.AbstractDavResource
      extended by com.xpn.xwiki.plugin.webdav.resources.partial.AbstractDavFile
          extended by com.xpn.xwiki.plugin.webdav.resources.domain.DavAttachment
All Implemented Interfaces:
XWikiDavResource, org.apache.jackrabbit.webdav.DavResource

public class DavAttachment
extends AbstractDavFile

The DAV resource representing an XWikiAttachment.

Version:
$Id: DavAttachment.java 32446 2010-11-04 08:55:46Z vmassol $

Field Summary
 
Fields inherited from class com.xpn.xwiki.plugin.webdav.resources.partial.AbstractDavResource
locator, name, parentResource
 
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
DavAttachment()
           
 
Method Summary
 boolean exists()
          
 long getModificationTime()
          
 void init(XWikiDavResource parent, java.lang.String name, java.lang.String relativePath)
          Initializes this resource with common attributes inherited from the parent.
 void move(org.apache.jackrabbit.webdav.DavResource destination)
          
 void spool(org.apache.jackrabbit.webdav.io.OutputContext outputContext)
          
 
Methods inherited from class com.xpn.xwiki.plugin.webdav.resources.partial.AbstractDavFile
addMember, decode, getMembers, isCollection, removeMember
 
Methods inherited from class com.xpn.xwiki.plugin.webdav.resources.partial.AbstractDavResource
addLockManager, addVirtualMember, alterProperties, alterProperties, clearCache, copy, equals, getCollection, getComplianceClass, getContext, getDisplayName, getFactory, getHref, getInitMembers, getLocator, getLock, getLocks, getProperties, getProperty, getPropertyNames, getResourcePath, getSession, getSupportedMethods, getVirtualMembers, getVirtualProperties, hashCode, hasLock, init, isLockable, isTempResource, lock, refreshLock, removeProperty, removeVirtualMember, setProperty, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DavAttachment

public DavAttachment()
Method Detail

init

public void init(XWikiDavResource parent,
                 java.lang.String name,
                 java.lang.String relativePath)
          throws org.apache.jackrabbit.webdav.DavException
Initializes this resource with common attributes inherited from the parent.

Specified by:
init in interface XWikiDavResource
Overrides:
init in class AbstractDavResource
Parameters:
parent - Parent resource.
name - Name of this resource.
relativePath - Path relative to the parent resource.
Throws:
org.apache.jackrabbit.webdav.DavException - If the initialization fails.

exists

public boolean exists()


spool

public void spool(org.apache.jackrabbit.webdav.io.OutputContext outputContext)
           throws java.io.IOException

Throws:
java.io.IOException

move

public void move(org.apache.jackrabbit.webdav.DavResource destination)
          throws org.apache.jackrabbit.webdav.DavException

Throws:
org.apache.jackrabbit.webdav.DavException

getModificationTime

public long getModificationTime()



Copyright © 2004-2011 XWiki. All Rights Reserved.