Class ContentItemWebDavFile

java.lang.Object
com.flowable.webdav.impl.ContentItemWebDavFile
All Implemented Interfaces:
com.ithit.webdav.server.File, com.ithit.webdav.server.HierarchyItem, com.ithit.webdav.server.Lock

public class ContentItemWebDavFile
extends java.lang.Object
implements com.ithit.webdav.server.File, com.ithit.webdav.server.Lock
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected com.flowable.core.content.api.CoreContentItem contentItem  
    protected WebDavFileService webDavFileService  
  • Constructor Summary

    Constructors 
    Constructor Description
    ContentItemWebDavFile​(com.flowable.core.content.api.CoreContentItem contentItem, WebDavFileService webDavFileService)  
  • Method Summary

    Modifier and Type Method Description
    void copyTo​(com.ithit.webdav.server.Folder folder, java.lang.String s, boolean b)  
    void delete()  
    java.util.List<com.ithit.webdav.server.LockInfo> getActiveLocks()  
    long getContentLength()  
    java.lang.String getContentType()  
    long getCreated()  
    java.lang.String getEtag()  
    long getModified()  
    java.lang.String getName()  
    java.lang.String getPath()  
    java.util.List<com.ithit.webdav.server.Property> getProperties​(com.ithit.webdav.server.Property[] properties)  
    java.util.List<com.ithit.webdav.server.Property> getPropertyNames()  
    com.ithit.webdav.server.LockResult lock​(boolean shared, boolean deep, long timeout, java.lang.String owner)  
    void moveTo​(com.ithit.webdav.server.Folder folder, java.lang.String s)  
    void read​(java.io.OutputStream outputStream, long startIndex, long count)  
    com.ithit.webdav.server.RefreshLockResult refreshLock​(java.lang.String token, long timeout)  
    void unlock​(java.lang.String lockToken)  
    void updateProperties​(com.ithit.webdav.server.Property[] setProps, com.ithit.webdav.server.Property[] delProps)  
    long write​(java.io.InputStream content, java.lang.String contentType, long startIndex, long totalFileLength)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • getContentType

      public java.lang.String getContentType()
      Specified by:
      getContentType in interface com.ithit.webdav.server.File
    • getEtag

      public java.lang.String getEtag()
      Specified by:
      getEtag in interface com.ithit.webdav.server.File
    • getContentLength

      public long getContentLength()
      Specified by:
      getContentLength in interface com.ithit.webdav.server.File
    • read

      public void read​(java.io.OutputStream outputStream, long startIndex, long count)
      Specified by:
      read in interface com.ithit.webdav.server.File
    • write

      public long write​(java.io.InputStream content, java.lang.String contentType, long startIndex, long totalFileLength)
      Specified by:
      write in interface com.ithit.webdav.server.File
    • getName

      public java.lang.String getName()
      Specified by:
      getName in interface com.ithit.webdav.server.HierarchyItem
    • getCreated

      public long getCreated()
      Specified by:
      getCreated in interface com.ithit.webdav.server.HierarchyItem
    • getModified

      public long getModified()
      Specified by:
      getModified in interface com.ithit.webdav.server.HierarchyItem
    • getPath

      public java.lang.String getPath()
      Specified by:
      getPath in interface com.ithit.webdav.server.HierarchyItem
    • getProperties

      public java.util.List<com.ithit.webdav.server.Property> getProperties​(com.ithit.webdav.server.Property[] properties)
      Specified by:
      getProperties in interface com.ithit.webdav.server.HierarchyItem
    • getPropertyNames

      public java.util.List<com.ithit.webdav.server.Property> getPropertyNames()
      Specified by:
      getPropertyNames in interface com.ithit.webdav.server.HierarchyItem
    • updateProperties

      public void updateProperties​(com.ithit.webdav.server.Property[] setProps, com.ithit.webdav.server.Property[] delProps)
      Specified by:
      updateProperties in interface com.ithit.webdav.server.HierarchyItem
    • 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
      Specified by:
      lock in interface com.ithit.webdav.server.Lock
      Throws:
      com.ithit.webdav.server.exceptions.LockedException
    • getActiveLocks

      public java.util.List<com.ithit.webdav.server.LockInfo> getActiveLocks()
      Specified by:
      getActiveLocks in interface com.ithit.webdav.server.Lock
    • refreshLock

      public com.ithit.webdav.server.RefreshLockResult refreshLock​(java.lang.String token, long timeout) throws com.ithit.webdav.server.exceptions.PreconditionFailedException
      Specified by:
      refreshLock in interface com.ithit.webdav.server.Lock
      Throws:
      com.ithit.webdav.server.exceptions.PreconditionFailedException
    • unlock

      public void unlock​(java.lang.String lockToken)
      Specified by:
      unlock in interface com.ithit.webdav.server.Lock
    • copyTo

      public void copyTo​(com.ithit.webdav.server.Folder folder, java.lang.String s, boolean b) 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
    • moveTo

      public void moveTo​(com.ithit.webdav.server.Folder folder, java.lang.String s) 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
    • 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