protected void recordAuditAction ( final HttpServletRequest request , final String actionName ) { val userToUse = getUsernameParameterFromRequest ( request ) ; val clientInfo = ClientInfoHolder . getClientInfo ( ) ; val resource = StringUtils . defaultString ( request . getParameter ( CasProtocolConstants . PARAMETER_SERVICE ) , "N/A" ) ; val context = new AuditActionContext ( userToUse , resource , actionName , configurationContext . getApplicationCode ( ) , DateTimeUtils . dateOf ( ZonedDateTime . now ( ZoneOffset . UTC ) ) , clientInfo . getClientIpAddress ( ) , clientInfo . getServerIpAddress ( ) ) ; LOGGER . debug ( "Recording throttled audit action [{}}" , context ) ; configurationContext . getAuditTrailExecutionPlan ( ) . record ( context ) ; }
Records an audit action .