Class WebdavPreconditions

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

@Component("webdav_WebdavPreconditions") public class WebdavPreconditions extends Object
  • Field Details

  • Constructor Details

    • WebdavPreconditions

      public WebdavPreconditions(EntityStates es)
  • Method Details

    • checkThatFilenameEqualsResourceName

      public void checkThatFilenameEqualsResourceName(String fileName, String resourceName)
    • checkEntityNonNull

      @Contract("null -> fail") public <T> void checkEntityNonNull(@Nullable T entity)
    • checkLastDocumentVersionExists

      @Contract("null -> fail") public void checkLastDocumentVersionExists(@Nullable WebdavDocumentVersion documentVersion)
    • checkFirstDocumentVersionExists

      @Contract("null -> fail") public void checkFirstDocumentVersionExists(@Nullable WebdavDocumentVersion documentVersion)
    • checkDocumentVersionExists

      @Contract("null -> fail") public void checkDocumentVersionExists(@Nullable WebdavDocumentVersion documentVersion)
    • doesDocumentVersionExist

      @Contract("null -> false") public boolean doesDocumentVersionExist(@Nullable WebdavDocumentVersion documentVersion)
    • checkDocumentExists

      @Contract("null -> fail") public void checkDocumentExists(@Nullable WebdavDocument document)
    • checkDocumentExists

      @Contract("null, _ -> fail") public void checkDocumentExists(@Nullable WebdavDocument document, URI requestedUri)
    • doesDocumentExist

      @Contract("null -> false") public boolean doesDocumentExist(@Nullable WebdavDocument document)
    • checkNotNullArgument

      public void checkNotNullArgument(@Nullable Object reference, String property)
    • checkDataIsLoaded

      public void checkDataIsLoaded(@Nullable Object object, String... properties)
    • doesApplicationExist

      @Contract("null -> false") public boolean doesApplicationExist(@Nullable Application application)
    • checkDocumentIsLocked

      public void checkDocumentIsLocked(WebdavDocument document)
    • isDocumentLocked

      public boolean isDocumentLocked(WebdavDocument document)
    • isLockFound

      @Contract("null -> false") public boolean isLockFound(@Nullable WebdavLockDescriptor lock)
    • checkLockIsNotExpired

      @Contract("null -> fail") public void checkLockIsNotExpired(WebdavLockDescriptor lock)
    • checkDocumentIsCollection

      @Contract("null -> fail") public void checkDocumentIsCollection(WebdavDocument document)
    • checkDocumentIsNotCollection

      @Contract("null -> fail") public void checkDocumentIsNotCollection(WebdavDocument document)
    • isLockExpired

      public boolean isLockExpired(WebdavLockDescriptor lock)