/* Ċ Ġ* Ġspring - message - board - demo Ċ Ġ* ĠRefer Ġto ĠLIC ENCE . txt Ġfor Ġlicence Ġdetails . Ċ Ġ*/ Ċ package Ġcom . github . fj . board . service . reply . impl Ċ Ċ import Ġcom . github . fj . board . persistence . repository . board . Board Repository Ċ import Ġcom . github . fj . board . persistence . repository . post . Post Repository Ċ import Ġcom . github . fj . board . persistence . repository . reply . Reply Repository Ċ import Ġcom . github . fj . board . service . reply . Get Rep lies Service Ċ import Ġcom . github . fj . board . vo . Contents Fetch Criteria Ċ import Ġcom . github . fj . board . vo . Paged Data Ċ import Ġcom . github . fj . board . vo . auth . Client Auth Info Ċ import Ġcom . github . fj . board . vo . reply . Rep lies Sort By Ċ import Ġcom . github . fj . board . vo . reply . Reply Info Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġorg . springframework . transaction . annotation . Isolation Ċ import Ġorg . springframework . transaction . annotation . Transactional Ċ import Ġjava . util .* Ċ Ċ /** Ċ Ġ* Ġ@ author ĠFr ances co ĠJo ( nim bus ob @ gmail . com ) Ċ Ġ* Ġ@ since Ġ 0 6 Ġ- ĠAug Ġ- Ġ 2 0 2 0 Ċ Ġ*/ Ċ @ Service Ċ internal Ġclass ĠGet Rep lies ServiceImpl ( ĊĠĠĠ Ġoverride Ġval Ġboard Repo : ĠBoard Repository , ĊĠĠĠ Ġoverride Ġval Ġpost Repo : ĠPost Repository , ĊĠĠĠ Ġoverride Ġval Ġreply Repo : ĠReply Repository Ċ ) Ġ: ĠGet Rep lies Service Ġ{ ĊĠĠĠ Ġ@ Transactional ( is olation Ġ= ĠI sol ation . READ _ UN COMMIT TED ) ĊĠĠĠ Ġoverride Ġfun Ġget ListOf ( ĊĠĠĠĠĠĠĠ Ġpost Id : ĠUUID , ĊĠĠĠĠĠĠĠ Ġclient Info : ĠClient Auth Info ?, ĊĠĠĠĠĠĠĠ Ġfetch Criteria : ĠContents Fetch Criteria < Rep lies Sort By > ĊĠĠĠ Ġ): ĠP aged Data < Reply Info > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpost Ġ= Ġpost Id . getPost (). also Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġit . board . check Accessible For ( client Info ) ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġtotal Count Ġ= Ġreply Repo . getCount Of ( post ) ĊĠĠĠĠĠĠĠ Ġval Ġdata Ġ= Ġreply Repo . findBy Post ( post , Ġfetch Criteria . to Page able Query ( total Count ) Ġ{ Ġit . to PropertyName () Ġ}) ĊĊĠĠĠĠĠĠĠ Ġreturn Ġfetch Criteria . run Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠP aged Data . create ( page , Ġfetch Size , Ġtotal Count , Ġdata . map Ġ{ ĠReply Info . from ( it ) Ġ}) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ