Interface DocumentLockServiceLocal
public interface DocumentLockServiceLocal
-
Method Summary
Modifier and TypeMethodDescriptionCreates a newLockedDocumentsQueryinstance for querying locked documents.default DocumentLocksgetCurrentDocumentLocksForDocument(DocumentPointer documentPointer) default Set<DocumentLocks> default Set<DocumentLocks> getCurrentDocumentLocksWithLocksCreatedForSession(String lockingSessionId) lockDocument(DocumentPointer documentPointer, Lock.Holder lockHolder, String sessionId) voidreleaseAllLocksFromADocument(DocumentPointer documentPointer) voidreleaseExistingLocksCreatedForSession(String sessionId) voidunlockDocument(DocumentPointer documentPointer, Lock.Holder lockHolder)
-
Method Details
-
lockDocument
DocumentLocks lockDocument(DocumentPointer documentPointer, Lock.Holder lockHolder, String sessionId) throws DocumentLockedException - Throws:
DocumentLockedException
-
unlockDocument
-
releaseAllLocksFromADocument
-
releaseExistingLocksCreatedForSession
-
createLockedDocumentsQuery
LockedDocumentsQuery createLockedDocumentsQuery()Creates a newLockedDocumentsQueryinstance for querying locked documents.- Returns:
- a new
LockedDocumentsQueryinstance
-
getCurrentDocumentLocksForDocument
-
getCurrentDocumentLocksForTenant
-
getCurrentDocumentLocksWithLocksCreatedForSession
default Set<DocumentLocks> getCurrentDocumentLocksWithLocksCreatedForSession(String lockingSessionId)
-