public Mono < AccessLevel > getAccessLevel ( String token , String applicationId ) throws CloudFoundryAuthorizationException { String uri = getPermissionsUri ( applicationId ) ; return this . webClient . get ( ) . uri ( uri ) . header ( "Authorization" , "bearer " + token ) . retrieve ( ) . bodyToMono ( Map . class ) . map ( this :: getAccessLevel ) . onErrorMap ( this :: mapError ) ; }
Return a Mono of the access level that should be granted to the given token .