package Ġde . et ern al w ings . v ima . notification Ċ Ċ import Ġde . et ern al w ings . v ima . event . Video Create Event Ċ import Ġde . et ern al w ings . v ima . event . Video Delete Event Ċ import Ġde . et ern al w ings . v ima . event . Video Update Event Ċ import Ġorg . springframework . context . event . EventListener Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Component Ċ class ĠNotification Publisher ( private Ġval Ġnotification Service : ĠSS EN ot ification Service ) Ġ{ ĊĊĠĠĠ Ġ@ EventListener ĊĠĠĠ Ġfun Ġon Video Delete ( event : ĠVideo Delete Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġnotification Service . publish ( Notification Content (" video - delete ", Ġevent . video . id !! )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ EventListener ĊĠĠĠ Ġfun Ġon Video Create ( event : ĠVideo Create Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġnotification Service . publish ( Notification Content (" video - create ", Ġevent . video )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ EventListener ĊĠĠĠ Ġfun Ġon Video Update ( event : ĠVideo Update Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġnotification Service . publish ( Notification Content (" video - update ", Ġevent . video )) ĊĠĠĠ Ġ} Ċ } Ċ