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

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.DavWikiFile
All Implemented Interfaces:
XWikiDavResource, org.apache.jackrabbit.webdav.DavResource

public class DavWikiFile
extends AbstractDavFile

The dav resource used to represent the wiki content of an XWikiDocument.

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

Field Summary
static java.lang.String WIKI_TXT
          Identifier for wiki text file.
static java.lang.String WIKI_XML
          Identifier for wiki xml file.
 
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
DavWikiFile()
           
 
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
 

Field Detail

WIKI_TXT

public static final java.lang.String WIKI_TXT
Identifier for wiki text file.

See Also:
Constant Field Values

WIKI_XML

public static final java.lang.String WIKI_XML
Identifier for wiki xml file.

See Also:
Constant Field Values
Constructor Detail

DavWikiFile

public DavWikiFile()
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.