Protected
Readonly
_fileProtected
Readonly
_templateProtected
Readonly
_templateManages the presentation layer artifact generation process which is invoked within the presentation layer generation stage.
The generation context which contains necessary data including the application graph context.
A promise that resolves to a LayerArtifact
representing the generated presentation layer.
Protected
getRetrieves the title of a template page in the specified language.
An object containing language-specific titles.
The language identifier for the title. Defaults to "en", if not provided.
The page title in the specified language, or the first available language if not found.
This method is responsible for the population and rendering of the React component template for the detail capability. After all dependencies needed by template (@see {DetailReactComponentTemplate} for more details) are populated, the template renderer is invoked to generate the resulting React component.
Dependencies providing the information about the aggregate and context for the template.
A promise that resolves to the artifact which contains generated React component for detail capability.
Protected
restoreRestores the data model interface for an aggregate and converts it to the corresponding JSON schema.
The metadata of the aggregate for which the data model interface needs to be restored.
The restored schema as a JSON Schema object.
The
DetailComponentTemplateProcessor
class is responsible for rendering the React component from a template and thus generating the presentation layer code for detail capability. It extends thePresentationLayerTemplateGenerator
class and makes use ofDetailReactComponentTemplate
for template population and rendering.