it.sistematica.isharedoc.webdav.model.cloud
Class WebDAVCloudDocument
java.lang.Object
it.sistematica.isharedoc.webdav.model.cloud.WebDAVCloudFile
it.sistematica.isharedoc.webdav.model.cloud.WebDAVCloudDocument
- All Implemented Interfaces:
- com.ithit.webdav.server.deltav.DeltaVItem, com.ithit.webdav.server.deltav.History, com.ithit.webdav.server.deltav.Version, com.ithit.webdav.server.deltav.VersionableItem, com.ithit.webdav.server.File, com.ithit.webdav.server.HierarchyItem, com.ithit.webdav.server.Lock
public class WebDAVCloudDocument
- extends WebDAVCloudFile
- implements com.ithit.webdav.server.File, com.ithit.webdav.server.deltav.VersionableItem, com.ithit.webdav.server.deltav.Version, com.ithit.webdav.server.deltav.History
Methods inherited from class it.sistematica.isharedoc.webdav.model.cloud.WebDAVCloudFile |
additionalEditableChecks, copyTo, delete, getActiveLocks, getCloudFile, getCloudRepository, getCreated, getModified, getName, getPartition, getPath, getProperties, getPropertyNames, getWebDAVEngine, getWebDAVRepository, getWebDAVRoot, lock, moveTo, refreshLock, toString, unlock, updateProperties, valueOf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ithit.webdav.server.HierarchyItem |
copyTo, delete, getCreated, getModified, getName, getPath, getProperties, getPropertyNames, moveTo, updateProperties |
cloudDocument
protected CloudDocument cloudDocument
version
protected CloudDocumentVersion version
WebDAVCloudDocument
protected WebDAVCloudDocument(CloudDocument cloudDocument)
WebDAVCloudDocument
protected WebDAVCloudDocument(CloudDocumentVersion cloudDocument)
getCloudDocument
public CloudDocument getCloudDocument()
setCloudFile
public void setCloudFile(CloudFile cloudFile)
- Overrides:
setCloudFile
in class WebDAVCloudFile
getContentLength
public long getContentLength()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getContentLength
in interface com.ithit.webdav.server.File
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getContentType
public java.lang.String getContentType()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getContentType
in interface com.ithit.webdav.server.File
- Throws:
com.ithit.webdav.server.exceptions.ServerException
read
public void read(java.io.OutputStream output,
long startIndex,
long count)
throws com.ithit.webdav.server.exceptions.ServerException,
java.io.IOException
- Specified by:
read
in interface com.ithit.webdav.server.File
- Throws:
com.ithit.webdav.server.exceptions.ServerException
java.io.IOException
write
public long write(java.io.InputStream content,
java.lang.String contentType,
long startIndex,
long totalFileSize)
throws com.ithit.webdav.server.exceptions.LockedException,
com.ithit.webdav.server.exceptions.ServerException,
java.io.IOException
- Specified by:
write
in interface com.ithit.webdav.server.File
- Throws:
com.ithit.webdav.server.exceptions.LockedException
com.ithit.webdav.server.exceptions.ServerException
java.io.IOException
getComment
public java.lang.String getComment()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getComment
in interface com.ithit.webdav.server.deltav.DeltaVItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getCreatorDisplayName
public java.lang.String getCreatorDisplayName()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getCreatorDisplayName
in interface com.ithit.webdav.server.deltav.DeltaVItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
setComment
public void setComment(java.lang.String arg0)
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
setComment
in interface com.ithit.webdav.server.deltav.DeltaVItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
setCreatorDisplayName
public void setCreatorDisplayName(java.lang.String arg0)
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
setCreatorDisplayName
in interface com.ithit.webdav.server.deltav.DeltaVItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
getCurrentVersion
public com.ithit.webdav.server.deltav.Version getCurrentVersion()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getCurrentVersion
in interface com.ithit.webdav.server.deltav.History
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getRootVersion
public com.ithit.webdav.server.deltav.Version getRootVersion()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getRootVersion
in interface com.ithit.webdav.server.deltav.History
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getVersionSet
public java.util.List<? extends com.ithit.webdav.server.deltav.Version> getVersionSet()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getVersionSet
in interface com.ithit.webdav.server.deltav.History
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getPredecessor
public com.ithit.webdav.server.deltav.Version getPredecessor()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getPredecessor
in interface com.ithit.webdav.server.deltav.Version
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getSuccessor
public com.ithit.webdav.server.deltav.Version getSuccessor()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getSuccessor
in interface com.ithit.webdav.server.deltav.Version
- Throws:
com.ithit.webdav.server.exceptions.ServerException
checkIn
public java.lang.String checkIn()
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
checkIn
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
checkOut
public void checkOut()
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
checkOut
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
unCheckOut
public void unCheckOut()
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
unCheckOut
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
getVersionName
public java.lang.String getVersionName()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getVersionName
in interface com.ithit.webdav.server.deltav.Version
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getVersionableItem
public com.ithit.webdav.server.deltav.VersionableItem getVersionableItem()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getVersionableItem
in interface com.ithit.webdav.server.deltav.Version
- Throws:
com.ithit.webdav.server.exceptions.ServerException
getAutoCheckIn
public boolean getAutoCheckIn()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getAutoCheckIn
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
setAutoCheckIn
public void setAutoCheckIn(boolean arg0)
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
setAutoCheckIn
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
getAutoVersion
public com.ithit.webdav.server.deltav.AutoVersion getAutoVersion()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getAutoVersion
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
setAutoVersion
public void setAutoVersion(com.ithit.webdav.server.deltav.AutoVersion arg0)
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
setAutoVersion
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
getVersionHistory
public com.ithit.webdav.server.deltav.History getVersionHistory()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
getVersionHistory
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
isCheckedOut
public boolean isCheckedOut()
throws com.ithit.webdav.server.exceptions.ServerException
- Specified by:
isCheckedOut
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
putUnderVersionControl
public void putUnderVersionControl(boolean enable)
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
putUnderVersionControl
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException
updateToVersion
public void updateToVersion(com.ithit.webdav.server.deltav.Version arg0)
throws com.ithit.webdav.server.exceptions.ServerException,
com.ithit.webdav.server.exceptions.LockedException
- Specified by:
updateToVersion
in interface com.ithit.webdav.server.deltav.VersionableItem
- Throws:
com.ithit.webdav.server.exceptions.ServerException
com.ithit.webdav.server.exceptions.LockedException