protected void authorizeExport ( Map < String , String > headers ) throws AuthorizationException { String path = headers . get ( Listener . METAINFO_REQUEST_PATH ) ; User user = authorize ( path , new JsonObject ( ) , headers ) ; Action action = Action . Export ; Entity entity = getEntity ( path , null , headers ) ; Long entityId = new Long ( 0 ) ; String descrip = path ; if ( descrip . length ( ) > 1000 ) descrip = descrip . substring ( 0 , 999 ) ; UserAction exportAction = new UserAction ( user == null ? "unknown" : user . getName ( ) , action , entity , entityId , descrip ) ; exportAction . setSource ( getSource ( ) ) ; auditLog ( exportAction ) ; }
Also audit logs .