public interface

ScmRequestCheckService

com.atlassian.bitbucket.scm.ScmRequestCheckService

Class Overview

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

Summary

Public Methods
boolean checkActionAllowed(ScmRequest request)
Check whether the supplied ScmRequest can proceed within the current request and server context.

Public Methods

public boolean checkActionAllowed (ScmRequest request)

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