package Ġbr . u fr n . im d . ob a . service Ċ Ċ import Ġbr . u fr n . im d . ob a . domain . Cur riculum Ċ import Ġbr . u fr n . im d . ob a . exception . Cur riculum NotFoundException Ċ import Ġbr . u fr n . im d . ob a . repository . Cur riculum Repository Ċ import Ġorg . springframework . data . domain . Page Ċ import Ġorg . springframework . data . domain . Page able Ċ import Ġorg . springframework . stereotype . Service Ċ Ċ @ Service Ċ class ĠCur riculum Service ( ĊĠĠĠ Ġprivate Ġval Ġcur riculum Repository : ĠCur riculum Repository Ċ ) Ġ{ ĊĠĠĠ Ġfun ĠfindBy ShortName ( cur riculum Name : ĠString ): ĠCur riculum Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġcur riculum Repository . findBy ShortName ( cur riculum Name ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. orElse Throw { Cur riculum NotFoundException ()} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠfindAll ( page able : ĠPage able ): ĠPage < Cur riculum > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġcur riculum Repository . findAll ( page able ) ĊĠĠĠ Ġ} Ċ } Ċ