Package com.google.gerrit.server
Class AclInfoController
java.lang.Object
com.google.gerrit.server.AclInfoController
Class to control when ACL infos should be collected and be returned to the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
enableAclLoggingIfUserCanViewAccess
(com.google.gerrit.server.logging.TraceContext traceContext) Enable ACL logging if the user has the "View Access" capability.Returns message containing the ACL logs that have been collected for the request,Optional.empty()
if ACL logging hasn't been turned on
-
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
Returns message containing the ACL logs that have been collected for the request,Optional.empty()
if ACL logging hasn't been turned on
-