Package com.flowable.webdav.impl
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.CoreContentItemcontentItemprotected WebDavFileServicewebDavFileService -
Constructor Summary
Constructors Constructor Description ContentItemWebDavFile(com.flowable.core.content.api.CoreContentItem contentItem, WebDavFileService webDavFileService) -
Method Summary
Modifier and Type Method Description voidcopyTo(com.ithit.webdav.server.Folder folder, java.lang.String s, boolean b)voiddelete()java.util.List<com.ithit.webdav.server.LockInfo>getActiveLocks()longgetContentLength()java.lang.StringgetContentType()longgetCreated()java.lang.StringgetEtag()longgetModified()java.lang.StringgetName()java.lang.StringgetPath()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.LockResultlock(boolean shared, boolean deep, long timeout, java.lang.String owner)voidmoveTo(com.ithit.webdav.server.Folder folder, java.lang.String s)voidread(java.io.OutputStream outputStream, long startIndex, long count)com.ithit.webdav.server.RefreshLockResultrefreshLock(java.lang.String token, long timeout)voidunlock(java.lang.String lockToken)voidupdateProperties(com.ithit.webdav.server.Property[] setProps, com.ithit.webdav.server.Property[] delProps)longwrite(java.io.InputStream content, java.lang.String contentType, long startIndex, long totalFileLength)
-
Field Details
-
contentItem
protected com.flowable.core.content.api.CoreContentItem contentItem -
webDavFileService
-
-
Constructor Details
-
ContentItemWebDavFile
public ContentItemWebDavFile(com.flowable.core.content.api.CoreContentItem contentItem, WebDavFileService webDavFileService)
-
-
Method Details
-
getContentType
public java.lang.String getContentType()- Specified by:
getContentTypein interfacecom.ithit.webdav.server.File
-
getEtag
public java.lang.String getEtag()- Specified by:
getEtagin interfacecom.ithit.webdav.server.File
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfacecom.ithit.webdav.server.File
-
read
public void read(java.io.OutputStream outputStream, long startIndex, long count)- Specified by:
readin interfacecom.ithit.webdav.server.File
-
write
public long write(java.io.InputStream content, java.lang.String contentType, long startIndex, long totalFileLength)- Specified by:
writein interfacecom.ithit.webdav.server.File
-
getName
public java.lang.String getName()- Specified by:
getNamein interfacecom.ithit.webdav.server.HierarchyItem
-
getCreated
public long getCreated()- Specified by:
getCreatedin interfacecom.ithit.webdav.server.HierarchyItem
-
getModified
public long getModified()- Specified by:
getModifiedin interfacecom.ithit.webdav.server.HierarchyItem
-
getPath
public java.lang.String getPath()- Specified by:
getPathin interfacecom.ithit.webdav.server.HierarchyItem
-
getProperties
public java.util.List<com.ithit.webdav.server.Property> getProperties(com.ithit.webdav.server.Property[] properties)- Specified by:
getPropertiesin interfacecom.ithit.webdav.server.HierarchyItem
-
getPropertyNames
public java.util.List<com.ithit.webdav.server.Property> getPropertyNames()- Specified by:
getPropertyNamesin interfacecom.ithit.webdav.server.HierarchyItem
-
updateProperties
public void updateProperties(com.ithit.webdav.server.Property[] setProps, com.ithit.webdav.server.Property[] delProps)- Specified by:
updatePropertiesin interfacecom.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:
lockin interfacecom.ithit.webdav.server.Lock- Throws:
com.ithit.webdav.server.exceptions.LockedException
-
getActiveLocks
public java.util.List<com.ithit.webdav.server.LockInfo> getActiveLocks()- Specified by:
getActiveLocksin interfacecom.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:
refreshLockin interfacecom.ithit.webdav.server.Lock- Throws:
com.ithit.webdav.server.exceptions.PreconditionFailedException
-
unlock
public void unlock(java.lang.String lockToken)- Specified by:
unlockin interfacecom.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:
copyToin interfacecom.ithit.webdav.server.HierarchyItem- Throws:
com.ithit.webdav.server.exceptions.LockedExceptioncom.ithit.webdav.server.exceptions.ConflictExceptioncom.ithit.webdav.server.exceptions.MultistatusExceptioncom.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:
moveToin interfacecom.ithit.webdav.server.HierarchyItem- Throws:
com.ithit.webdav.server.exceptions.LockedExceptioncom.ithit.webdav.server.exceptions.ConflictExceptioncom.ithit.webdav.server.exceptions.MultistatusExceptioncom.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:
deletein interfacecom.ithit.webdav.server.HierarchyItem- Throws:
com.ithit.webdav.server.exceptions.LockedExceptioncom.ithit.webdav.server.exceptions.MultistatusExceptioncom.ithit.webdav.server.exceptions.ServerException
-