package Ġcom . sg z md . f lib ust ier . web . controllers . debug Ċ Ċ import Ġcom . sg z md . f lib ust ier . web . scheduled . Update Checker Ċ import Ġcom . sg z md . f lib ust ier . web . scheduled . User Notifier Ċ import Ġcom . sg z md . f lib ust ier . web . security . Authentication Facade Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . stereotype . Controller Ċ import Ġorg . springframework . ui . Model Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . servlet . view . Redirect View Ċ Ċ @ Controller Ċ class ĠForce Check Updates (@ Autowired Ġval Ġupdate Notifier : ĠUser Notifier , Ġ@ Autowired Ġval Ġauth Facade : ĠAuthentication Facade ) Ġ{ ĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġupdate Checker : ĠUpdate Checker ĊĊĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Force Check Updates :: class . java ) ĊĊĠĠĠ Ġ@ RequestMapping ("/ force - check - updates ") ĊĠĠĠ Ġfun Ġinfo () Ġ: ĠRedirect View Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info (" Force Ġchecking Ġupdates Ġ... ") ĊĠĠĠĠĠĠĠ Ġupdate Checker . check Updates () ĊĠĠĠĠĠĠĠ Ġlogger . info (" Trying Ġto Ġsend Ġemail Ġto Ġ${ auth Facade . getUserId ()} ...") ĊĠĠĠĠĠĠĠ Ġupdate Notifier . notify User ( auth Facade . getUserId (), Ġ" Hello Ġworld !! ") ĊĠĠĠĠĠĠĠ Ġlogger . info (" Email Ġshould Ġbe Ġsent .") ĊĠĠĠĠĠĠĠ Ġreturn ĠRedirect View ("/") ĊĠĠĠ Ġ} Ċ }