Package org.silverpeas.wbe.wopi

## Class WopiLockResponseManager

- java.lang.Object
- - org.silverpeas.wbe.wopi.WopiLockResponseManager

-     @Service
      public class WopiLockResponseManager
      extends Object

  Author:
    silveryocha

- - ### 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, org.silverpeas.core.wbe.WbeFile file)` | Manages a file lock.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### WopiLockResponseManager

          protected WopiLockResponseManager()

  - ### 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,
                                                               org.silverpeas.core.wbe.WbeFile 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.