Package com.atlassian.bitbucket.scm
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 TypeMethodDescriptionboolean
checkActionAllowed
(ScmRequest request) Check whether the suppliedScmRequest
can proceed within the current request and server context.
-
Method Details
-
checkActionAllowed
Check whether the suppliedScmRequest
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
-