Class SiteTemplateInstantiatedIndexingListener

java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<org.exoplatform.portal.mop.SiteKey,org.exoplatform.portal.mop.SiteKey>
io.meeds.social.cms.listener.SiteTemplateInstantiatedIndexingListener
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, org.exoplatform.services.listener.ListenerBase<org.exoplatform.portal.mop.SiteKey,org.exoplatform.portal.mop.SiteKey>

public class SiteTemplateInstantiatedIndexingListener extends org.exoplatform.services.listener.Listener<org.exoplatform.portal.mop.SiteKey,org.exoplatform.portal.mop.SiteKey>
Reacts to UserPortalConfigService.SITE_TEMPLATE_INSTANTIATED — broadcast once a site's configuration, pages and navigation have all been created from a template, as happens for a new space's site or a site an administrator creates — to index the bare page document (see PageContentIndexingConnector) of every page of the new site.

PageSavedIndexingListener already hears each of those pages being created, but at that moment the site's navigation doesn't exist yet: the connector indexes a page only once it is reachable from a navigation node, so a creation processed by the indexing job before the navigation import completes yields nothing, and nothing else would ever come back to it — an imported navigation broadcasts none of the Layout events. This event is the first one guaranteed to fire after both.

Kernel-registered, for the same reason as PageSavedIndexingListener.

  • Field Summary

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    SiteTemplateInstantiatedIndexingListener(org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.portal.mop.service.LayoutService layoutService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onEvent(org.exoplatform.services.listener.Event<org.exoplatform.portal.mop.SiteKey,org.exoplatform.portal.mop.SiteKey> event)
     

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.exoplatform.services.listener.ListenerBase

    getName
  • Constructor Details

    • SiteTemplateInstantiatedIndexingListener

      public SiteTemplateInstantiatedIndexingListener(org.exoplatform.commons.search.index.IndexingService indexingService, org.exoplatform.portal.mop.service.LayoutService layoutService)
  • Method Details

    • onEvent

      public void onEvent(org.exoplatform.services.listener.Event<org.exoplatform.portal.mop.SiteKey,org.exoplatform.portal.mop.SiteKey> event) throws Exception
      Throws:
      Exception