package Ġlit . f ass . server . schedule . model Ċ Ċ import Ġlit . f ass . server . config . yaml . model . Collection Config Ċ import Ġlit . f ass . server . logger Ċ import Ġlit . f ass . server . retention . Retention Service Ċ import Ġorg . quartz . Job Ċ import Ġorg . quartz . Job ExecutionContext Ċ Ċ /** Ċ Ġ* Ġ@ author ĠMichael ĠM air Ċ Ġ*/ Ċ class ĠQu artz Retention Job Ġ: ĠJob Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠQu artz Job () Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlog Ġ= Ġthis . logger () ĊĠĠĠĠĠĠĠ Ġoverride Ġfun ĠgetType (): ĠString Ġ= Ġ" retention " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġexecute ( context : ĠJob ExecutionContext ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġretention Service Ġ= Ġcontext !!. merged Job DataMap [" retention Service "] Ġas ĠRet ention Service ĊĠĠĠĠĠĠĠ Ġval Ġcollection Config Ġ= Ġcontext . merged Job DataMap [" collection Config "] Ġas ĠCollection Config ĊĠĠĠĠĠĠĠ Ġretention Service . clean ( collection Config ) ĊĠĠĠĠĠĠĠ Ġlog . trace (" Executed Ġretention Ġjob Ġ${ collection Config . collection }") ĊĠĠĠ Ġ} Ċ }