Class PortletInvalider

java.lang.Object
fr.paris.lutece.plugins.document.service.publishing.PortletInvalider

@ApplicationScoped @Named("document.PortletInvalider") public class PortletInvalider extends Object
PortletInvalider
  • Constructor Details

    • PortletInvalider

      public PortletInvalider()
  • Method Details

    • onPublishingEvent

      public void onPublishingEvent(@Observes PublishingEvent event)
      Observe publishing events via CDI
      Parameters:
      event - The publishing event
    • onDocumentEvent

      public void onDocumentEvent(@Observes DocumentEvent event) throws DocumentException
      Observe document events via CDI
      Parameters:
      event - The document event
      Throws:
      DocumentException - if error occurs
    • processPublishingEvent

      public void processPublishingEvent(PublishingEvent event)
      Invalidate portlet on publishing events
      Parameters:
      event - The event to process
    • processDocumentEvent

      public void processDocumentEvent(DocumentEvent event) throws DocumentException
      Throws:
      DocumentException
    • initializedService

      public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context)
      This method observes the initialization of the ApplicationScoped context. It ensures that this CDI beans are instantiated at the application startup.

      This method is triggered automatically by CDI when the ApplicationScoped context is initialized, which typically occurs during the startup of the application server.

      Parameters:
      context - the ServletContext that is initialized. This parameter is observed and injected automatically by CDI when the ApplicationScoped context is initialized.