Interface ScmRequestCheckService


public interface ScmRequestCheckService
Used to validate read and write operations on repositories managed by Stash. This should be used across all repository serving end-points (e.g. HTTP, SSH) to ensure preconditions such as authentication and authorisation are consistently applied and error condition messaging is consistent. Plugins may register additional validation hooks.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check whether the supplied ScmRequest can proceed within the current request and server context.
  • Method Details

    • checkActionAllowed

      boolean checkActionAllowed(ScmRequest request) throws IOException
      Check whether the supplied ScmRequest can proceed within the current request and server context.
      Parameters:
      request - the scm action to vote on
      Returns:
      true if the action is allowed, false otherwise
      Throws:
      IOException - if the supplied request threw an exception when handling an error