it.sistematica.isharedoc.webdav.model.cloud
Class WebDAVCloudDocument

java.lang.Object
  extended by it.sistematica.isharedoc.webdav.model.cloud.WebDAVCloudFile
      extended by 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


Field Summary
protected  CloudDocument cloudDocument
           
protected  CloudDocumentVersion version
           
 
Fields inherited from class it.sistematica.isharedoc.webdav.model.cloud.WebDAVCloudFile
cloudFile
 
Constructor Summary
protected WebDAVCloudDocument(CloudDocument cloudDocument)
           
protected WebDAVCloudDocument(CloudDocumentVersion cloudDocument)
           
 
Method Summary
 java.lang.String checkIn()
           
 void checkOut()
           
 boolean getAutoCheckIn()
           
 com.ithit.webdav.server.deltav.AutoVersion getAutoVersion()
           
 CloudDocument getCloudDocument()
           
 java.lang.String getComment()
           
 long getContentLength()
           
 java.lang.String getContentType()
           
 java.lang.String getCreatorDisplayName()
           
 com.ithit.webdav.server.deltav.Version getCurrentVersion()
           
 com.ithit.webdav.server.deltav.Version getPredecessor()
           
 com.ithit.webdav.server.deltav.Version getRootVersion()
           
 com.ithit.webdav.server.deltav.Version getSuccessor()
           
 com.ithit.webdav.server.deltav.VersionableItem getVersionableItem()
           
 com.ithit.webdav.server.deltav.History getVersionHistory()
           
 java.lang.String getVersionName()
           
 java.util.List<? extends com.ithit.webdav.server.deltav.Version> getVersionSet()
           
 boolean isCheckedOut()
           
 void putUnderVersionControl(boolean enable)
           
 void read(java.io.OutputStream output, long startIndex, long count)
           
 void setAutoCheckIn(boolean arg0)
           
 void setAutoVersion(com.ithit.webdav.server.deltav.AutoVersion arg0)
           
 void setCloudFile(CloudFile cloudFile)
           
 void setComment(java.lang.String arg0)
           
 void setCreatorDisplayName(java.lang.String arg0)
           
 void unCheckOut()
           
 void updateToVersion(com.ithit.webdav.server.deltav.Version arg0)
           
 long write(java.io.InputStream content, java.lang.String contentType, long startIndex, long totalFileSize)
           
 
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
 

Field Detail

cloudDocument

protected CloudDocument cloudDocument

version

protected CloudDocumentVersion version
Constructor Detail

WebDAVCloudDocument

protected WebDAVCloudDocument(CloudDocument cloudDocument)

WebDAVCloudDocument

protected WebDAVCloudDocument(CloudDocumentVersion cloudDocument)
Method Detail

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