Package org.silverpeas.core.webapi.wopi
Class WopiLockResponseManager
- java.lang.Object
-
- org.silverpeas.core.webapi.wopi.WopiLockResponseManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WopiLockResponseManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isEnabled()
Indicates if lock manager is enabled.protected Optional<javax.ws.rs.core.Response>
manage(javax.servlet.http.HttpServletRequest request, String lockAction, WopiFile file)
Manages a file lock.
-
-
-
Method Detail
-
isEnabled
protected boolean isEnabled()
Indicates if lock manager is enabled.- Returns:
- true of enabled, false otherwise.
-
manage
protected Optional<javax.ws.rs.core.Response> manage(javax.servlet.http.HttpServletRequest request, String lockAction, WopiFile file)
Manages a file lock.- Parameters:
request
- the current request.lockAction
- the lock action.file
- the current file to manage.- Returns:
- an optional HTTP response.
-
-