@ ReadOperation public Collection < Map < String , Object > > consentDecisions ( @ Selector final String principal ) { val result = new HashSet < Map < String , Object > > ( ) ; LOGGER . debug ( "Fetching consent decisions for principal [{}]" , principal ) ; val consentDecisions = this . consentRepository . findConsentDecisions ( principal ) ; LOGGER . debug ( "Resolved consent decisions for principal [{}]: [{}]" , principal , consentDecisions ) ; consentDecisions . forEach ( d -> { val map = new HashMap < String , Object > ( ) ; map . put ( "decision" , d ) ; map . put ( "attributes" , this . consentEngine . resolveConsentableAttributesFrom ( d ) ) ; result . add ( map ) ; } ) ; return result ; }
Consent decisions collection .