Class AttachmentRelatedContentReconciliationListener


  • public class AttachmentRelatedContentReconciliationListener
    extends Object
    Listens to AttachmentTrashedEvent and AttachmentRestoreEvent and triggers editor content reconciliation for referring contents with Synchrony. See: ContentReconciliationManager for more information on reconciliation process.
    Since:
    7.14.0
    • Method Detail

      • handleEvent

        @EventListener
        public void handleEvent​(AttachmentCreateEvent event)
        Parameters:
        event - AttachmentCreateEvent raised from AttachmentManager
      • handleEvent

        @EventListener
        public void handleEvent​(GeneralAttachmentUpdateEvent event)
        Parameters:
        event - Attachment Update Event raised from AttachmentManager
      • handleEvent

        @EventListener
        public void handleEvent​(AttachmentTrashedEvent event)
        Parameters:
        event - Attachment Trashed Event raised from AttachmentManager
      • handleEvent

        @EventListener
        public void handleEvent​(GeneralAttachmentRestoreEvent event)
        Parameters:
        event - Attachment Restore Event raised from AttachmentManager
      • updateCEOWithAttachmentChange

        public static void updateCEOWithAttachmentChange​(ContentEntityObject ceo,
                                                         ContentEntityObjectDaoInternal contentEntityObjectDao)
        This will help to mark CEO with attachment change. Caller will need to call this method within a transaction. This mainly makes sure we will have new Hibernate version.
        Parameters:
        ceo -