Class FileLocks
java.lang.Object
io.goobi.viewer.model.administration.configeditor.FileLocks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearLocksForSessionId
(String sessionId) boolean
isFileLockedByOthers
(Path file, String sessionId) boolean
boolean
unlockFile
(Path file, String sessionId)
-
Constructor Details
-
FileLocks
public FileLocks()
-
-
Method Details
-
lockFile
- Parameters:
file
-sessionId
-- Returns:
- true if file locked successfully; false otherwise
-
unlockFile
- Parameters:
file
-sessionId
-- Returns:
- true if file unlocked successfully; false otherwise
-
isFileLockedByOthers
- Parameters:
file
-sessionId
-- Returns:
- true if file locked by different session; false otherwise
-
clearLocksForSessionId
- Parameters:
sessionId
-
-