Class WebdavTools

java.lang.Object
io.jmix.webdav.tools.WebdavTools

@Component("webdav_WebdavTools") public class WebdavTools extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • calculateSha1Hex

      public <T> String calculateSha1Hex(T input, io.vavr.CheckedFunction1<? super T,? extends InputStream> mapper)
    • calculateSha1Hex

      public String calculateSha1Hex(byte[] data)
    • createElement

      public org.dom4j.Element createElement(String name)
    • createElement

      public org.dom4j.Element createElement(String name, org.dom4j.Namespace namespace)
    • getOrDefault

      public <T, R> R getOrDefault(Supplier<? extends T> obj1, Supplier<? extends T> getDefault, Function<? super T,? extends R> mapper)
    • getOrDefault

      public <T> T getOrDefault(Supplier<? extends T> obj1, Supplier<? extends T> getDefault)
    • reloadEntityIfRequired

      public <T> T reloadEntityIfRequired(T entity, FetchPlan fetchPlan)
    • encodeFileName

      public String encodeFileName(String fileName, Long version)
    • decodeFileName

      public String decodeFileName(String fileName)
    • createCopyOfFileRef

      public FileRef createCopyOfFileRef(FileRef oldFile)
    • createCopyOfFileRefWithNewFilename

      public FileRef createCopyOfFileRefWithNewFilename(FileRef oldFile, String filename)
    • isAssignableFromWebdavDocument

      public boolean isAssignableFromWebdavDocument(MetaProperty metaProperty)
    • isAssignableFrom

      public boolean isAssignableFrom(MetaProperty metaProperty, Class fromClass)
    • isWebdavType

      public boolean isWebdavType(MetaProperty metaProperty)
    • printDateAsRfc

      public String printDateAsRfc(Date date)