Package io.jmix.webdav.tools
Class WebdavTools
java.lang.Object
io.jmix.webdav.tools.WebdavTools
-
Field Summary
Modifier and TypeFieldDescriptionprotected DataManager
protected EntityStates
protected FileStorageLocator
static final String
protected WebdavProperties
-
Constructor Summary
ConstructorDescriptionWebdavTools
(DataManager dataManager, WebdavProperties webdavProperties, FileStorageLocator fileStorageLocator, EntityStates entityStates) -
Method Summary
Modifier and TypeMethodDescriptioncalculateSha1Hex
(byte[] data) <T> String
calculateSha1Hex
(T input, io.vavr.CheckedFunction1<? super T, ? extends InputStream> mapper) createCopyOfFileRef
(FileRef oldFile) createCopyOfFileRefWithNewFilename
(FileRef oldFile, String filename) org.dom4j.Element
createElement
(String name) org.dom4j.Element
createElement
(String name, org.dom4j.Namespace namespace) decodeFileName
(String fileName) encodeFileName
(String fileName, Long version) <T> T
getOrDefault
(Supplier<? extends T> obj1, Supplier<? extends T> getDefault) <T,
R> R getOrDefault
(Supplier<? extends T> obj1, Supplier<? extends T> getDefault, Function<? super T, ? extends R> mapper) boolean
isAssignableFrom
(MetaProperty metaProperty, Class fromClass) boolean
isAssignableFromWebdavDocument
(MetaProperty metaProperty) boolean
isWebdavType
(MetaProperty metaProperty) printDateAsRfc
(Date date) <T> T
reloadEntityIfRequired
(T entity, FetchPlan fetchPlan)
-
Field Details
-
NAME
- See Also:
-
dataManager
-
webdavProperties
-
fileStorageLocator
-
entityStates
-
-
Constructor Details
-
WebdavTools
public WebdavTools(DataManager dataManager, WebdavProperties webdavProperties, FileStorageLocator fileStorageLocator, EntityStates entityStates)
-
-
Method Details
-
calculateSha1Hex
public <T> String calculateSha1Hex(T input, io.vavr.CheckedFunction1<? super T, ? extends InputStream> mapper) -
calculateSha1Hex
-
createElement
-
createElement
-
getOrDefault
-
getOrDefault
-
reloadEntityIfRequired
-
encodeFileName
-
decodeFileName
-
createCopyOfFileRef
-
createCopyOfFileRefWithNewFilename
-
isAssignableFromWebdavDocument
-
isAssignableFrom
-
isWebdavType
-
printDateAsRfc
-