Package io.meeds.social.cms.plugin
Interface PageContentBlockPlugin
public interface PageContentBlockPlugin
Extension point letting an addon make its own content-block type (bound to
a portal Page through a
CMSSetting) searchable via the generic
"page" unified-search connector, without that connector having to know
anything about the addon owning the content.
Implementations are plain Spring @Component beans, auto-detected
by PageContentBlockPluginService — no
further registration is needed.
-
Method Summary
Modifier and TypeMethodDescriptiongetContent(CMSSetting setting) Resolves the searchable content of the block bound by the given setting.
-
Method Details
-
getContentType
String getContentType()- Returns:
- the
CMSSettingcontent type this plugin resolves content for (e.g."notePage").
-
getContent
Resolves the searchable content of the block bound by the given setting.- Parameters:
setting- theCMSSettingbound to the page- Returns:
- the block's content, or
nullif it can't be resolved (e.g. the underlying content was deleted).
-