it.sistematica.isharedoc.webdav.model.cloud
Class WebDAVCloudFile
java.lang.Object
it.sistematica.isharedoc.webdav.model.cloud.WebDAVCloudFile
- All Implemented Interfaces:
- com.ithit.webdav.server.HierarchyItem, com.ithit.webdav.server.Lock
- Direct Known Subclasses:
- WebDAVCloudDocument, WebDAVCloudFolder
public abstract class WebDAVCloudFile
- extends java.lang.Object
- implements com.ithit.webdav.server.HierarchyItem, com.ithit.webdav.server.Lock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
cloudFile
protected CloudFile cloudFile
WebDAVCloudFile
protected WebDAVCloudFile()
WebDAVCloudFile
protected WebDAVCloudFile(CloudFile cloudFile)
setCloudFile
public void setCloudFile(CloudFile cloudFile)
valueOf
public static WebDAVCloudFile valueOf(CloudFile cloudFile)
additionalEditableChecks
public void additionalEditableChecks()
throws com.ithit.webdav.server.exceptions.ServerException
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getWebDAVRoot
public WebDAVRoot getWebDAVRoot()
getWebDAVEngine
public WebDAVEngine getWebDAVEngine()
getWebDAVRepository
public WebDAVCloudRepository getWebDAVRepository()
getCloudFile
public CloudFile getCloudFile()
getPartition
public Partition getPartition()
getCloudRepository
public CloudRepository getCloudRepository()
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
updateProperties
public void updateProperties(com.ithit.webdav.server.Property[] setProps,
com.ithit.webdav.server.Property[] delProps)
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
copyTo
public void copyTo(com.ithit.webdav.server.Folder folder,
java.lang.String destName,
boolean deep)
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
moveTo
public void moveTo(com.ithit.webdav.server.Folder folder,
java.lang.String destName)
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
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
lock
public com.ithit.webdav.server.LockResult lock(boolean shared,
boolean deep,
long timeout,
java.lang.String owner)
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 token,
long timeout)
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 token)
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
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object