package Ġcom . ide ab aker . samples . scc . security . sec ured producer web flux . service Ċ Ċ import Ġcom . ide ab aker . samples . scc . security . sec ured producer web flux . model . User Contact Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . security . access . pre post . Pre Authorize Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġreactor . core . publisher . Flux Ċ Ċ /** Ċ Ġ* Ċ Ġ* Ġ@ author ĠAr th ur ĠK az emi < b idad h @ gmail . com > Ċ Ġ* Ġ@ since Ġ 2 0 1 9 - 0 5 - 2 3 Ġ 0 5 : 2 2 Ċ Ġ*/ Ċ @ Service Ċ class ĠContact Service Ġ: ĠContact ServiceProvider Ġ{ ĊĠ Ġ@ Pre Authorize (" is Authenticated () ") ĊĠ Ġoverride Ġfun Ġcontact Search ( pattern : ĠString ): ĠFlux < User Contact > Ġ{ ĊĠĠĠ Ġlogger . info (" Search Ġfor Ġ'{} '", Ġpattern ) ĊĠĠĠ Ġreturn ĠFlux . empty () ĊĠ Ġ} ĊĊĠ Ġinternal Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Contact Service :: class . java ) Ċ } Ċ Ċ interface ĠContact ServiceProvider Ġ{ ĊĠ Ġfun Ġcontact Search ( pattern : ĠString ): ĠFlux < User Contact > Ċ }