com.xpn.xwiki.plugin.webdav.resources.views
Class HomeView

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

public class HomeView
extends AbstractDavView

This view allows to browse the pages starting from Main.WebHome using the parent child relationship.

Version:
$Id: HomeView.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
HomeView()
           
 
Method Summary
 void addMember(org.apache.jackrabbit.webdav.DavResource resource, org.apache.jackrabbit.webdav.io.InputContext inputContext)
          
 XWikiDavResource decode(java.lang.String[] tokens, int next)
          

The default decode implementation assumes the next resource in chain to be a temporary resource.

 org.apache.jackrabbit.webdav.DavResourceIterator getMembers()
          
 long getModificationTime()
          
 org.apache.jackrabbit.webdav.property.DavPropertySet getProperties()
          Default implementation simply returns all the cached properties.
 void init(XWikiDavResource parent, java.lang.String name, java.lang.String relativePath)
          Initializes this resource with common attributes inherited from the parent.
 void removeMember(org.apache.jackrabbit.webdav.DavResource member)
          
 
Methods inherited from class com.xpn.xwiki.plugin.webdav.resources.partial.AbstractDavView
exists, isCollection, move, spool
 
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, 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

HomeView

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

decode

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.

Specified by:
decode in interface XWikiDavResource
Overrides:
decode in class AbstractDavResource
Parameters:
tokens - segmented URL.
next - next index to be processed by this resource.
Returns:
the XWikiDavResource corresponding to the given URL.
Throws:
org.apache.jackrabbit.webdav.DavException - If it's not possible to decode the URL.

getModificationTime

public long getModificationTime()

Specified by:
getModificationTime in interface org.apache.jackrabbit.webdav.DavResource
Overrides:
getModificationTime in class AbstractDavView

getProperties

public org.apache.jackrabbit.webdav.property.DavPropertySet getProperties()
Default implementation simply returns all the cached properties.

Specified by:
getProperties in interface org.apache.jackrabbit.webdav.DavResource
Overrides:
getProperties in class AbstractDavResource
Returns:
The set of properties associated with this resource.

getMembers

public org.apache.jackrabbit.webdav.DavResourceIterator getMembers()


addMember

public void addMember(org.apache.jackrabbit.webdav.DavResource resource,
                      org.apache.jackrabbit.webdav.io.InputContext inputContext)
               throws org.apache.jackrabbit.webdav.DavException

Specified by:
addMember in interface org.apache.jackrabbit.webdav.DavResource
Overrides:
addMember in class AbstractDavView
Throws:
org.apache.jackrabbit.webdav.DavException

removeMember

public void removeMember(org.apache.jackrabbit.webdav.DavResource member)
                  throws org.apache.jackrabbit.webdav.DavException

Specified by:
removeMember in interface org.apache.jackrabbit.webdav.DavResource
Overrides:
removeMember in class AbstractDavView
Throws:
org.apache.jackrabbit.webdav.DavException


Copyright © 2004-2011 XWiki. All Rights Reserved.