Package io.jmix.webdav.tools
Class WebdavPreconditions
java.lang.Object
io.jmix.webdav.tools.WebdavPreconditions
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkDataIsLoaded
(Object object, String... properties) void
checkDocumentExists
(WebdavDocument document) void
checkDocumentExists
(WebdavDocument document, URI requestedUri) void
checkDocumentIsCollection
(WebdavDocument document) void
checkDocumentIsLocked
(WebdavDocument document) void
checkDocumentIsNotCollection
(WebdavDocument document) void
checkDocumentVersionExists
(WebdavDocumentVersion documentVersion) <T> void
checkEntityNonNull
(T entity) void
checkFirstDocumentVersionExists
(WebdavDocumentVersion documentVersion) void
checkLastDocumentVersionExists
(WebdavDocumentVersion documentVersion) void
void
checkNotNullArgument
(Object reference, String property) void
checkThatFilenameEqualsResourceName
(String fileName, String resourceName) boolean
doesApplicationExist
(Application application) boolean
doesDocumentExist
(WebdavDocument document) boolean
doesDocumentVersionExist
(WebdavDocumentVersion documentVersion) boolean
isDocumentLocked
(WebdavDocument document) boolean
boolean
-
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
-