Class AclInfoController

java.lang.Object
com.google.gerrit.server.AclInfoController

public class AclInfoController extends Object
Class to control when ACL infos should be collected and be returned to the user.
  • Constructor Details

    • AclInfoController

      public AclInfoController()
  • Method Details

    • enableAclLoggingIfUserCanViewAccess

      public void enableAclLoggingIfUserCanViewAccess(com.google.gerrit.server.logging.TraceContext traceContext) throws PermissionBackendException
      Enable ACL logging if the user has the "View Access" capability.
      Parameters:
      traceContext - the trace context on which ACL logging enabled if the user has the "View Access" capability.
      Throws:
      PermissionBackendException - thrown if there is a failure while checking permissions
    • getAclInfoMessage

      public Optional<String> getAclInfoMessage()
      Returns message containing the ACL logs that have been collected for the request, Optional.empty() if ACL logging hasn't been turned on