Package io.jmix.webdav.tools
Class WebdavPreconditions
java.lang.Object
io.jmix.webdav.tools.WebdavPreconditions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckDataIsLoaded(Object object, String... properties) voidcheckDocumentExists(WebdavDocument document) voidcheckDocumentExists(WebdavDocument document, URI requestedUri) voidcheckDocumentIsCollection(WebdavDocument document) voidcheckDocumentIsLocked(WebdavDocument document) voidcheckDocumentIsNotCollection(WebdavDocument document) voidcheckDocumentVersionExists(WebdavDocumentVersion documentVersion) <T> voidcheckEntityNonNull(T entity) voidcheckFirstDocumentVersionExists(WebdavDocumentVersion documentVersion) voidcheckLastDocumentVersionExists(WebdavDocumentVersion documentVersion) voidvoidcheckNotNullArgument(Object reference, String property) voidcheckThatFilenameEqualsResourceName(String fileName, String resourceName) booleandoesApplicationExist(Application application) booleandoesDocumentExist(WebdavDocument document) booleandoesDocumentVersionExist(WebdavDocumentVersion documentVersion) booleanisDocumentLocked(WebdavDocument document) booleanboolean
-
Field Details
-
es
-
-
Constructor Details
-
WebdavPreconditions
-
-
Method Details
-
checkThatFilenameEqualsResourceName
-
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
-
checkDocumentExists
@Contract("null, _ -> fail") public void checkDocumentExists(@Nullable WebdavDocument document, URI requestedUri) -
doesDocumentExist
-
checkNotNullArgument
-
checkDataIsLoaded
-
doesApplicationExist
-
checkDocumentIsLocked
-
isDocumentLocked
-
isLockFound
-
checkLockIsNotExpired
-
checkDocumentIsCollection
-
checkDocumentIsNotCollection
-
isLockExpired
-