Class FileLocks
java.lang.Object
io.goobi.viewer.model.administration.configeditor.FileLocks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearLocksForSessionId(String sessionId) booleanisFileLockedByOthers(Path file, String sessionId) booleanbooleanunlockFile(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-
-