jetbrains.buildServer.controllers
Interface RequestPermissionsChecker


public interface RequestPermissionsChecker

Checks that currently logged in authority is allowed to execute the specified request. Request permissions checkers are registered in the AuthorizationInterceptor.


Method Summary
 void checkPermissions(AuthorityHolder authorityHolder, javax.servlet.http.HttpServletRequest request)
          Performs actual checking of permissions.
 

Method Detail

checkPermissions

void checkPermissions(@NotNull
                      AuthorityHolder authorityHolder,
                      @NotNull
                      javax.servlet.http.HttpServletRequest request)
                      throws AccessDeniedException
Performs actual checking of permissions.

Parameters:
authorityHolder - authority holder corresponding to currently logged in user
request - request to check
Throws:
AccessDeniedException - if authority holder does not have enough permissions