Package io.meeds.social.cms.listener


package io.meeds.social.cms.listener
  • Classes
    Class
    Description
    Reacts to Layout's layout.page.updated / layout.page.permissions.updated events to keep the "page" search index in sync with how a page is represented there (see PageContentIndexingConnector): by one document per content block backed by a registered PageContentBlockPlugin currently on its layout, or — when it carries none — by a bare page document.
    Unindexes every document still indexed under a page that stopped being searchable — its content blocks as well as its bare page document (see PageContentIndexingConnector) — the gap PageContentBlockIndexingListener documents it cannot cover, since that listener only reacts to a page that still exists and is still reachable.
    Reacts to the portal's own LayoutService.PAGE_CREATED / LayoutService.PAGE_UPDATED events — broadcast by every path that stores a page, the layout editor included — to index the bare page document (see PageContentIndexingConnector) of a page that PageContentBlockIndexingListener never hears about: a page imported from a site or space template, injected by an addon's configuration, or saved through the portal API rather than through the Layout addon's services, which are the only ones broadcasting layout.page.*.
    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.