it.sistematica.isharedoc.webdav.model.special
Class WebDAVRoot

java.lang.Object
  extended by it.sistematica.isharedoc.webdav.model.special.WebDAVRoot
All Implemented Interfaces:
com.ithit.webdav.server.Folder, com.ithit.webdav.server.HierarchyItem, com.ithit.webdav.server.Lock

@Service(value="webDAVRoot")
public class WebDAVRoot
extends java.lang.Object
implements com.ithit.webdav.server.Folder, com.ithit.webdav.server.Lock


Field Summary
(package private)  CloudManager cloudManager
           
(package private)  it.neverworks.util.Configuration configuration
           
static java.util.Date CREATED
           
(package private)  it.neverworks.application.service.UserInfo userInfo
           
 
Constructor Summary
WebDAVRoot()
           
 
Method Summary
 void copyTo(com.ithit.webdav.server.Folder arg0, java.lang.String arg1, boolean arg2)
           
 com.ithit.webdav.server.File createFile(java.lang.String arg0)
           
 void createFolder(java.lang.String arg0)
           
 void delete()
           
 java.util.List<com.ithit.webdav.server.LockInfo> getActiveLocks()
           
 java.util.List<? extends com.ithit.webdav.server.HierarchyItem> getChildren()
           
 long getCreated()
           
 long getModified()
           
 java.lang.String getName()
           
 java.lang.String getPath()
           
 java.util.List<com.ithit.webdav.server.Property> getProperties(com.ithit.webdav.server.Property[] props)
           
 java.util.List<com.ithit.webdav.server.Property> getPropertyNames()
           
 WebDAVEngine getWebDAVEngine()
           
 com.ithit.webdav.server.LockResult lock(boolean arg0, boolean arg1, long arg2, java.lang.String arg3)
           
 void moveTo(com.ithit.webdav.server.Folder arg0, java.lang.String arg1)
           
 com.ithit.webdav.server.RefreshLockResult refreshLock(java.lang.String arg0, long arg1)
           
 void unlock(java.lang.String arg0)
           
 void updateProperties(com.ithit.webdav.server.Property[] arg0, com.ithit.webdav.server.Property[] arg1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATED

public static final java.util.Date CREATED

userInfo

it.neverworks.application.service.UserInfo userInfo

cloudManager

CloudManager cloudManager

configuration

it.neverworks.util.Configuration configuration
Constructor Detail

WebDAVRoot

public WebDAVRoot()
Method Detail

getWebDAVEngine

public WebDAVEngine getWebDAVEngine()

getChildren

public java.util.List<? extends com.ithit.webdav.server.HierarchyItem> getChildren()
                                                                            throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getChildren in interface com.ithit.webdav.server.Folder
Throws:
com.ithit.webdav.server.exceptions.ServerException

getActiveLocks

public java.util.List<com.ithit.webdav.server.LockInfo> getActiveLocks()
                                                                throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getActiveLocks in interface com.ithit.webdav.server.Lock
Throws:
com.ithit.webdav.server.exceptions.ServerException

getCreated

public long getCreated()
                throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getCreated in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.ServerException

getModified

public long getModified()
                 throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getModified in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.ServerException

getName

public java.lang.String getName()
                         throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getName in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.ServerException

getPath

public java.lang.String getPath()
                         throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getPath in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.ServerException

getProperties

public java.util.List<com.ithit.webdav.server.Property> getProperties(com.ithit.webdav.server.Property[] props)
                                                               throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getProperties in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.ServerException

getPropertyNames

public java.util.List<com.ithit.webdav.server.Property> getPropertyNames()
                                                                  throws com.ithit.webdav.server.exceptions.ServerException
Specified by:
getPropertyNames in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.ServerException

moveTo

public void moveTo(com.ithit.webdav.server.Folder arg0,
                   java.lang.String arg1)
            throws com.ithit.webdav.server.exceptions.LockedException,
                   com.ithit.webdav.server.exceptions.ConflictException,
                   com.ithit.webdav.server.exceptions.MultistatusException,
                   com.ithit.webdav.server.exceptions.ServerException
Specified by:
moveTo in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.ConflictException
com.ithit.webdav.server.exceptions.MultistatusException
com.ithit.webdav.server.exceptions.ServerException

updateProperties

public void updateProperties(com.ithit.webdav.server.Property[] arg0,
                             com.ithit.webdav.server.Property[] arg1)
                      throws com.ithit.webdav.server.exceptions.LockedException,
                             com.ithit.webdav.server.exceptions.MultistatusException,
                             com.ithit.webdav.server.exceptions.ServerException
Specified by:
updateProperties in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.MultistatusException
com.ithit.webdav.server.exceptions.ServerException

lock

public com.ithit.webdav.server.LockResult lock(boolean arg0,
                                               boolean arg1,
                                               long arg2,
                                               java.lang.String arg3)
                                        throws com.ithit.webdav.server.exceptions.LockedException,
                                               com.ithit.webdav.server.exceptions.MultistatusException,
                                               com.ithit.webdav.server.exceptions.ServerException
Specified by:
lock in interface com.ithit.webdav.server.Lock
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.MultistatusException
com.ithit.webdav.server.exceptions.ServerException

refreshLock

public com.ithit.webdav.server.RefreshLockResult refreshLock(java.lang.String arg0,
                                                             long arg1)
                                                      throws com.ithit.webdav.server.exceptions.PreconditionFailedException,
                                                             com.ithit.webdav.server.exceptions.ServerException
Specified by:
refreshLock in interface com.ithit.webdav.server.Lock
Throws:
com.ithit.webdav.server.exceptions.PreconditionFailedException
com.ithit.webdav.server.exceptions.ServerException

unlock

public void unlock(java.lang.String arg0)
            throws com.ithit.webdav.server.exceptions.PreconditionFailedException,
                   com.ithit.webdav.server.exceptions.ServerException
Specified by:
unlock in interface com.ithit.webdav.server.Lock
Throws:
com.ithit.webdav.server.exceptions.PreconditionFailedException
com.ithit.webdav.server.exceptions.ServerException

copyTo

public void copyTo(com.ithit.webdav.server.Folder arg0,
                   java.lang.String arg1,
                   boolean arg2)
            throws com.ithit.webdav.server.exceptions.LockedException,
                   com.ithit.webdav.server.exceptions.ConflictException,
                   com.ithit.webdav.server.exceptions.MultistatusException,
                   com.ithit.webdav.server.exceptions.ServerException
Specified by:
copyTo in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.ConflictException
com.ithit.webdav.server.exceptions.MultistatusException
com.ithit.webdav.server.exceptions.ServerException

delete

public void delete()
            throws com.ithit.webdav.server.exceptions.LockedException,
                   com.ithit.webdav.server.exceptions.MultistatusException,
                   com.ithit.webdav.server.exceptions.ServerException
Specified by:
delete in interface com.ithit.webdav.server.HierarchyItem
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.MultistatusException
com.ithit.webdav.server.exceptions.ServerException

createFile

public com.ithit.webdav.server.File createFile(java.lang.String arg0)
                                        throws com.ithit.webdav.server.exceptions.LockedException,
                                               com.ithit.webdav.server.exceptions.ServerException
Specified by:
createFile in interface com.ithit.webdav.server.Folder
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.ServerException

createFolder

public void createFolder(java.lang.String arg0)
                  throws com.ithit.webdav.server.exceptions.LockedException,
                         com.ithit.webdav.server.exceptions.ServerException
Specified by:
createFolder in interface com.ithit.webdav.server.Folder
Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.ServerException