Package io.meeds.social.cms.listener
package io.meeds.social.cms.listener
-
ClassesClassDescriptionReacts to Layout's
layout.page.updated/layout.page.permissions.updatedevents to keep the "page" search index in sync with how a page is represented there (seePageContentIndexingConnector): by one document per content block backed by a registeredPageContentBlockPlugincurrently 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 (seePageContentIndexingConnector) — the gapPageContentBlockIndexingListenerdocuments it cannot cover, since that listener only reacts to a page that still exists and is still reachable.Reacts to the portal's ownLayoutService.PAGE_CREATED/LayoutService.PAGE_UPDATEDevents — broadcast by every path that stores a page, the layout editor included — to index the bare page document (seePageContentIndexingConnector) of a page thatPageContentBlockIndexingListenernever 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 broadcastinglayout.page.*.Reacts toUserPortalConfigService.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 (seePageContentIndexingConnector) of every page of the new site.