public CouchDbSamlIdPMetadataDocument getOne ( ) { val view = createQuery ( "all" ) . limit ( 1 ) ; return db . queryView ( view , CouchDbSamlIdPMetadataDocument . class ) . stream ( ) . findFirst ( ) . orElse ( null ) ; }
Get one SAML metadata document .