Package io.jmix.webdav.tools
Interface WebdavSecurityTools
- All Known Implementing Classes:
WebdavSecurityToolsImpl
public interface WebdavSecurityTools
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkUserCanCreateDocument
(WebdavDocument document) void
checkUserCanCreateDocumentVersion
(WebdavDocumentVersion documentVersion) void
checkUserCanDeleteDocument
(WebdavDocument document) void
checkUserCanDeleteDocumentVersion
(WebdavDocumentVersion documentVersion) void
void
void
void
void
checkUserCanLockDocument
(WebdavDocument document, WebdavLockDescriptor lockDescriptor) void
checkUserCanReadDocument
(WebdavDocument document) Method always does silent exit, because user already has instance of WebdavDocumentvoid
checkUserCanReadDocumentById
(UUID documentId) void
checkUserCanReadDocumentByWebdavDocumentVersion
(WebdavDocumentVersion documentVersion) void
checkUserCanReadDocumentVersion
(WebdavDocumentVersion documentVersion) void
checkUserCanReadDocumentVersionById
(UUID documentVersionId) void
checkUserCanUnlockDocument
(WebdavDocument document, WebdavLockDescriptor lock) void
checkUserCanUpdateDocument
(WebdavDocument document, WebdavDocumentVersion documentVersion) void
checkUserCanUpdateDocumentVersion
(WebdavDocumentVersion documentVersion) void
checkUserIsLockOwner
(WebdavDocument document) boolean
isUserLockOwner
(WebdavDocument document) boolean
boolean
boolean
isUserPermittedToCreateDocumentVersion
(WebdavDocumentVersion documentVersion) boolean
boolean
boolean
isUserPermittedToDeleteDocumentVersion
(WebdavDocumentVersion documentVersion) boolean
boolean
boolean
boolean
boolean
boolean
isUserPermittedToLockDocument
(WebdavDocument document, WebdavLockDescriptor lock) boolean
isUserPermittedToReadDocument
(WebdavDocument document) Method always returns true, because user already has instance of WebdavDocumentboolean
isUserPermittedToReadDocumentById
(UUID documentId) boolean
boolean
isUserPermittedToReadDocumentVersion
(WebdavDocumentVersion documentVersion) boolean
isUserPermittedToReadDocumentVersionById
(UUID documentVersionId) boolean
isUserPermittedToReadParentCollectionForDocument
(WebdavDocument webdavDocument) boolean
isUserPermittedToUnlockDocument
(WebdavDocument document, WebdavLockDescriptor lock) boolean
isUserPermittedToUpdateDocument
(WebdavDocument document, WebdavDocumentVersion documentVersion) boolean
boolean
isUserPermittedToUpdateDocumentVersion
(WebdavDocumentVersion documentVersion) boolean
isUserPermittedToUpdateParentCollectionForDocument
(WebdavDocument webdavDocument)
-
Method Details
-
checkUserCanReadDocumentById
-
isUserPermittedToReadDocumentById
-
checkUserCanReadDocument
Method always does silent exit, because user already has instance of WebdavDocument- Parameters:
document
- reference on loaded from database instance
-
isUserPermittedToReadDocument
Method always returns true, because user already has instance of WebdavDocument- Parameters:
document
- reference on loaded from database instance
-
checkUserCanReadDocumentByWebdavDocumentVersion
-
isUserPermittedToReadDocumentByWebdavDocumentVersion
-
isUserPermittedToCreateDocumentByWebdavDocumentVersion
boolean isUserPermittedToCreateDocumentByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) -
isUserPermittedToUpdateDocumentByWebdavDocumentVersion
boolean isUserPermittedToUpdateDocumentByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) -
isUserPermittedToDeleteDocumentByWebdavDocumentVersion
boolean isUserPermittedToDeleteDocumentByWebdavDocumentVersion(WebdavDocumentVersion documentVersion) -
checkUserCanGetPossibleReadDocument
void checkUserCanGetPossibleReadDocument() -
isUserPermittedToGetPossibleReadDocument
boolean isUserPermittedToGetPossibleReadDocument() -
checkUserCanGetPossibleUpdateDocument
-
isUserPermittedToGetPossibleUpdateDocument
-
checkUserCanUpdateDocument
-
isUserPermittedToUpdateDocument
boolean isUserPermittedToUpdateDocument(WebdavDocument document, WebdavDocumentVersion documentVersion) -
checkUserCanCreateDocument
-
isUserPermittedToCreateDocument
-
checkUserCanDeleteDocument
-
isUserPermittedToDeleteDocument
-
checkUserCanGetPossibleLockDocument
-
isUserPermittedToGetPossibleLockDocument
-
checkUserCanLockDocument
-
isUserPermittedToLockDocument
-
checkUserCanUnlockDocument
-
isUserPermittedToGetPossibleUnlockDocument
-
isUserPermittedToUnlockDocument
-
checkUserIsLockOwner
-
isUserLockOwner
-
checkUserCanCreateDocumentVersion
-
isUserPermittedToCreateDocumentVersion
-
checkUserCanReadDocumentVersionById
-
isUserPermittedToReadDocumentVersionById
-
checkUserCanReadDocumentVersion
-
isUserPermittedToReadDocumentVersion
-
checkUserCanGetPossibleReadDocumentVersion
void checkUserCanGetPossibleReadDocumentVersion() -
isUserPermittedToGetPossibleReadDocumentVersion
boolean isUserPermittedToGetPossibleReadDocumentVersion() -
checkUserCanUpdateDocumentVersion
-
isUserPermittedToUpdateDocumentVersion
-
checkUserCanDeleteDocumentVersion
-
isUserPermittedToDeleteDocumentVersion
-
isUserPermittedToReadParentCollectionForDocument
-
isUserPermittedToUpdateParentCollectionForDocument
-