@acoustic-content-sdk/component-api 中文文档教程

发布于 4年前 浏览 15 更新于 3年前

npm

API Documentation

主页 > @acoustic-content-sdk/component-api

component-api package

Framework independent collection of APIs and constants

Interfaces

Interface Description
AbstractComponentResolver
AbstractComponentsRegistry
AbstractComponentTypeRefResolver Service that resolves a component type ref given a layout.
AbstractLayoutComponentDirective Type of the Layout metadata.
DeliveryContentResolver Service interface that allows to resolve a rendering context given its ID.
DeliveryLayoutMappingResolver Service interface that allows to resolve a type
DeliveryLayoutResolver Service interface that allows to resolve a type
DeliveryPageResolver Service interface that allows to resolve a rendering context given its ID.
DeliverySearchResolver Service that performs a search query against delivery search for artifacts of a particular classification.
DeliverySiteResolver
DeliveryTypeResolver Service interface that allows to resolve a type
HandlebarsResolver Service interface to map a template to a (markup) string
LayoutMappingDirective Type of the LayoutMapping metadata.
LayoutMappingResolver
LayoutResolver Callback that finds the layout assigned to the object in the current rendering context.
PreRenderingResolver Service interface that returns the pre-rendered content by id
ProtectedContent
ReconciledDeliverySearchInput Input to the reconciled search operation
ReconciledDeliverySearchResolver Service that performs a search query against delivery search for artifacts of a particular classification.
RenderingContextResolver Constructs a rendering context
SeedResolver Service interface that allows to resolve a seed
WchPageService Service interface that allows to resolve a rendering context given the page.

Variables

Variable Description
ACOUSTIC_RC_INTERCEPTOR_TOKEN
VERSION Version and build number of the package

Type Aliases

Type Alias Description
HandlebarsProcessor the processor converts the context into a string
RenderingContextInput
WindowType

主页 > @acoustic-content-sdk/component-api > AbstractComponentResolver

AbstractComponentResolver interface

Signature:

export interface AbstractComponentResolver<T> 

Methods

Method Description
resolveComponent(aRenderingContext, aLayoutMode)

Home > ; @acoustic-content-sdk/component-api > AbstractComponentsRegistry

AbstractComponentsRegistry interface

Signature:

export interface AbstractComponentsRegistry<TYPE> extends AbstractComponentTypeRefResolver<TYPE> 

Properties

Property Type Description
getTypeByLayout (aLayout: Layout, aLayoutMode?: string) =&gt; Observable&lt;TYPE&gt; Returns the type object based on the layout configuration
getTypeBySelector (aSelector: string, aLayoutMode?: string) =&gt; Observable&lt;TYPE&gt; Returns the type object based on the layout selector
registerType (aController: string &#124; string[], aType: TYPE, aLayoutModes?: string &#124; string[]) =&gt; void define the methods

Home > ; @acoustic-content-sdk/component-api > AbstractComponentTypeRefResolver

AbstractComponentTypeRefResolver interface

解析给定布局的组件类型引用的服务。

Signature:

export interface AbstractComponentTypeRefResolver<T> 

Properties

Property Type Description
getTypeByLayout (aLayout: Layout, aLayoutMode?: string) =&gt; Observable&lt;T&gt; Returns the type object based on the layout configuration

Home > @acoustic-content-sdk/component-api > AbstractLayoutComponentDirective

AbstractLayoutComponentDirective interface

布局元数据的类型。

Signature:

export interface AbstractLayoutComponentDirective 

Properties

Property Type Description
layoutMode string &#124; string[] An optional layout mode used with a default layout mapping.
mappingId string &#124; string[] ID of the content item, content type or the content type name used for a default layout mapping. If the ID is not given, this layout will not be mapped by default.
selector string &#124; string[] Defines the mapping between the layout controller to the layout implementation. If this property is missing, the selector of the component will be used instead.

Home > @acoustic-content-sdk/component-api > DeliveryContentResolver

DeliveryContentResolver interface

允许解析给定 ID 的呈现上下文的服务接口。

Signature:

export interface DeliveryContentResolver 

Methods

Method Description
getDeliveryContentItem(aID) Resolves a rendering context given the ID of the item

Home > @acoustic-content-sdk/component-api > DeliveryLayoutMappingResolver

DeliveryLayoutMappingResolver interface

Service interface that allows to resolve a type

Signature:

export interface DeliveryLayoutMappingResolver 

Methods

Method Description
getDeliveryLayoutMapping(aTypeId) Resolves a layout mapping given the ID of the type of the mapping

首页 > @acoustic-content-sdk/component-api > DeliveryLayoutResolver

DeliveryLayoutResolver interface

Service interface that allows to resolve a type

Signature:

export interface DeliveryLayoutResolver 

Methods

Method Description
getDeliveryLayout(aLayoutId) Resolves a layout record

首页 > @acoustic-content-sdk/component-api > DeliveryPageResolver

DeliveryPageResolver interface

允许解析给定 ID 的呈现上下文的服务接口。

Signature:

export interface DeliveryPageResolver 

Methods

Method Description
getDeliveryPage(aPath) Resolves a rendering context given the ID of the item

Home > @acoustic-content-sdk/component-api > DeliverySearchResolver

DeliverySearchResolver interface

针对特定分类工件的交付搜索执行搜索查询的服务。

Signature:

export interface DeliverySearchResolver 

Methods

Method Description
getDeliverySearchResults(aQuery, aClassification) Execute the search. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Home > @acoustic-content-sdk/component-api > DeliverySiteResolver

DeliverySiteResolver interface

Signature:

export interface DeliverySiteResolver 

Methods

Method Description
getSiteDeliveryContentItem() Resolves the current site

Home > ; @acoustic-content-sdk/component-api > DeliveryTypeResolver

DeliveryTypeResolver interface

Service interface that allows to resolve a type

Signature:

export interface DeliveryTypeResolver 

Methods

Method Description
getDeliveryType(aID) Resolves a rendering context given the ID of the item

首页 > @acoustic-content-sdk/component-api > HandlebarsResolver

HandlebarsResolver interface

Service interface to map a template to a (markup) string

Signature:

export interface HandlebarsResolver 

Methods

Method Description
getHandlebarsProcessor(aId) Resolves the template ID to a processor

主页 > @acoustic-content-sdk/component-api > LayoutMappingDirective

LayoutMappingDirective interface

LayoutMapping 元数据的类型。

Signature:

export interface LayoutMappingDirective 

Properties

Property Type Description
id string &#124; string[] Type IDs or content IDs to map this to
kind CONTENT_ITEM_KIND &#124; CONTENT_ITEM_KIND[] Type IDs to map this to
layoutMode string &#124; string[] An optional layout mode used with this layout mapping.
selector string &#124; string[] Defines the mapping between the layout controller to the layout implementation. If this property is missing, the selector of the component will be used instead.

Home > @acoustic-content-sdk/component-api > LayoutMappingResolver

LayoutMappingResolver interface

Signature:

export interface LayoutMappingResolver 

Properties

Property Type Description
getSelector (aLayoutMode: string, aRenderingContext: RenderingContextV2) =&gt; string &#124; undefined Returns the layout selector based on the rendering context

Home > ; @acoustic-content-sdk/component-api > LayoutResolver

LayoutResolver interface

在当前渲染上下文中查找分配给对象的布局的回调。

Signature:

export interface LayoutResolver 

Properties

Property Type Description
resolveLayout (aLayoutMode: string, aRenderingContext: RenderingContextV2) =&gt; Observable&lt;Layout&gt; Returns the layout layout object based on the rendering context and the mode

Home > @acoustic-content-sdk/component-api > PreRenderingResolver

PreRenderingResolver interface

Service interface that returns the pre-rendered content by id

Signature:

export interface PreRenderingResolver 

Methods

Method Description
getPreRenderedMarkup(aSelector, aLayoutMode) Generate a pre-rendering of the referenced content item

主页 > @acoustic-content-sdk/component-api > ProtectedContent

ProtectedContent interface

Signature:

export interface ProtectedContent 

Properties

Property Type Description
protected$ Observable&lt;boolean&gt; Flag to tell whether or not to serve protected content

Home > ; @acoustic-content-sdk/component-api > ReconciledDeliverySearchInput

ReconciledDeliverySearchInput interface

Input to the reconciled search operation

Signature:

export interface ReconciledDeliverySearchInput<T> 

Properties

Property Type Description
predicate UnaryFunction&lt;T, boolean&gt; Matcher function that tests if a particular value matches the search query
query QueryInput The search query object used to execute a query equivalent to the matcher

首页 > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver

ReconciledDeliverySearchResolver interface

针对特定分类工件的交付搜索执行搜索查询的服务。

Signature:

export interface ReconciledDeliverySearchResolver 

Methods

Method Description
getDeliverySearchResults(aQuery, aClassification) Execute the search for layout mappings. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for layouts. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for assets. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Home > @acoustic-content-sdk/component-api > RenderingContextResolver

RenderingContextResolver interface

Constructs a rendering context

Signature:

export interface RenderingContextResolver 

Properties

Property Type Description
resolveRenderingContext (aItem: RenderingContextInput, aProvider: RenderingContextProviderV2) =&gt; Observable&lt;RenderingContextV2&gt; Returns the layout selector based on the rendering context

Home< /a> > @acoustic-content-sdk/component-api > SeedResolver

SeedResolver interface

Service interface that allows to resolve a seed

Signature:

export interface SeedResolver 

Methods

Method Description
getSeed(aID, aClassification) Resolves a rendering context given the ID of the item

首页 > @acoustic-content-sdk/component-api > WchPageService

WchPageService interface

允许解析给定页面的呈现上下文的服务接口。

Signature:

export interface WchPageService 

Methods

Method Description
getRenderingContextByPath(aPath) Resolves the rendering context given the path

Home > @acoustic-content-sdk/component-api > ACOUSTIC_RC_INTERCEPTOR_TOKEN

ACOUSTIC_RC_INTERCEPTOR_TOKEN variable

Signature:

ACOUSTIC_RC_INTERCEPTOR_TOKEN = "8453750A-4519-4184-840B-D490E909D23E"

Home > ; @acoustic-content-sdk/component-api > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

首页 > @acoustic-content-sdk/component-api > HandlebarsProcessor

HandlebarsProcessor type

the processor converts the context into a string

Signature:

export declare type HandlebarsProcessor = (aContext: RenderingContextV2) => string;

首页 > @acoustic-content-sdk/component-api > RenderingContextInput

RenderingContextInput type

Signature:

export declare type RenderingContextInput = string | DeliveryContentItem | DeliveryGroupElement | DeliveryReferenceElement;

Home > ; @acoustic-content-sdk/component-api > WindowType

WindowType type

Signature:

export declare type WindowType = Window | Object;

Home > ; @acoustic-content-sdk/component-api > AbstractComponentTypeRefResolver > getTypeByLayout

AbstractComponentTypeRefResolver.getTypeByLayout property

Returns the type object based on the layout configuration

Signature:

getTypeByLayout: (aLayout: Layout, aLayoutMode?: string) => Observable<T>;

主页 > @acoustic-content-sdk/component-api > 抽象组件解析器 > resolveComponent

AbstractComponentResolver.resolveComponent() method

Signature:

resolveComponent(aRenderingContext: RenderingContextV2, aLayoutMode?: string): Observable<T>;

Parameters

Parameter Type Description
aRenderingContext RenderingContextV2
aLayoutMode string

Returns:

Observable

主页 > @acoustic-content-sdk/component-api > 抽象布局组件指令 > layoutMode

AbstractLayoutComponentDirective.layoutMode property

与默认布局映射一起使用的可选布局模式。

Signature:

layoutMode?: string | string[];

Home > @acoustic-content-sdk/component-api > 抽象布局组件指令 > mappingId

AbstractLayoutComponentDirective.mappingId property

用于默认布局映射的内容项、内容类型或内容类型名称的 ID。 如果不给出 ID,则默认不会映射此布局。

Signature:

mappingId?: string | string[];

Home > @acoustic-content-sdk/component-api > 抽象布局组件指令 > 选择器

AbstractLayoutComponentDirective.selector property

定义布局控制器到布局实现之间的映射。 如果缺少此属性,将使用组件的选择器代替。

Signature:

selector?: string | string[];

Home > @acoustic-content-sdk/component-api > DeliveryContentResolver > getDeliveryContentItem

DeliveryContentResolver.getDeliveryContentItem() method

根据项目的 ID 解析渲染上下文

签名:

getDeliveryContentItem(aID: string): Observable<DeliveryContentItem>;

Parameters

Parameter Type Description
aID string the ID of the item

返回:

Observable /code>

an observable of the context

Home > @acoustic-content-sdk/component-api > 抽象组件注册表 > getTypeByLayout

AbstractComponentsRegistry.getTypeByLayout property

Returns the type object based on the layout configuration

Signature:

getTypeByLayout: (aLayout: Layout, aLayoutMode?: string) => Observable<TYPE>;

主页 > @acoustic-content-sdk/component-api > 抽象组件注册表 > getTypeBySelector

AbstractComponentsRegistry.getTypeBySelector property

Returns the type object based on the layout selector

Signature:

getTypeBySelector: (aSelector: string, aLayoutMode?: string) => Observable<TYPE>;

主页 > @acoustic-content-sdk/component-api > 抽象组件注册表 > registerType

AbstractComponentsRegistry.registerType property

define the methods

Signature:

registerType: (aController: string | string[], aType: TYPE, aLayoutModes?: string | string[]) => void;

Home > @acoustic-content-sdk/component-api > DeliveryLayoutResolver > getDeliveryLayout

DeliveryLayoutResolver.getDeliveryLayout() method

解析布局记录

签名:

getDeliveryLayout(aLayoutId: string): Observable<DeliveryLayout>;

Parameters

Parameter Type Description
aLayoutId string the ID of the layout

返回:

Observable

一个可观察的布局

ad @acoustic-content-sdk/component-api > DeliveryPageResolver > getDeliveryPage

DeliveryPageResolver.getDeliveryPage() method

根据项目的 ID 解析渲染上下文

签名:

getDeliveryPage(aPath: string): Observable<DeliveryContentItem>;

Parameters

Parameter Type Description
aPath string the path to the page

返回:

Observable

an observable of the context

Home > @acoustic-content-sdk/component-api > DeliveryLayoutMappingResolver > getDeliveryLayoutMapping

DeliveryLayoutMappingResolver.getDeliveryLayoutMapping() method

根据映射类型的 ID 解析布局映射

签名:

getDeliveryLayoutMapping(aTypeId: string): Observable<DeliveryLayoutMapping>;

Parameters

Parameter Type Description
aTypeId string the ID of the content type the layout is mapped to

返回:

Observable<; DeliveryLayoutMapping>

an observable of the context

Home > @acoustic-content-sdk/component-api > DeliverySearchResolver > getDeliverySearchResults

DeliverySearchResolver.getDeliverySearchResults() method

执行搜索。 该实现会自动将分类添加到查询的 fq 部分,因此无需在查询中包含它。

签名:

getDeliverySearchResults<T>(aQuery: QueryInput, aClassification: string): Observable<SearchResults<T>>;

Parameters

Parameter Type Description
aQuery QueryInput the query input
aClassification string the classification

返回:

Observable>

搜索结果

主页 > @acoustic-content-sdk/component-api > DeliverySiteResolver > getSiteDeliveryContentItem

DeliverySiteResolver.getSiteDeliveryContentItem() method

解析当前站点

签名:

getSiteDeliveryContentItem(): Observable<SiteDeliveryContentItem>;

返回:

;ContentItem>

Observable< SiteDelivery

广告 @acoustic-content-sdk/component-api > DeliveryTypeResolver > getDeliveryType

DeliveryTypeResolver.getDeliveryType() method

根据项目的 ID 解析呈现上下文

签名:

getDeliveryType(aID: string): Observable<DeliveryType>;

Parameters

Parameter Type Description
aID string the ID of the item

返回:

Observable< /code>

an observable of the context

Home > @acoustic-content-sdk/component-api > 布局映射指令 > id

LayoutMappingDirective.id property

Type IDs or content IDs to map this to

Signature:

id?: string | string[];

主页 > @acoustic-content-sdk/component-api > 布局映射指令 > kind

LayoutMappingDirective.kind property

Type IDs to map this to

Signature:

kind?: CONTENT_ITEM_KIND | CONTENT_ITEM_KIND[];

首页 > @acoustic-content-sdk/component-api > 布局映射指令 > layoutMode

LayoutMappingDirective.layoutMode property

与此布局映射一起使用的可选布局模式。

Signature:

layoutMode?: string | string[];

Home > @acoustic-content-sdk/component-api > 布局映射指令 > 选择器

LayoutMappingDirective.selector property

定义布局控制器到布局实现之间的映射。 如果缺少此属性,将使用组件的选择器代替。

Signature:

selector?: string | string[];

Home > @acoustic-content-sdk/component-api > 把手解析器 > getHandlebarsProcessor

HandlebarsResolver.getHandlebarsProcessor() method

将模板 ID 解析为处理器

签名:

getHandlebarsProcessor(aId: string): Observable<HandlebarsProcessor>;

Parameters

Parameter Type Description
aId string the ID of the template

返回:

ObservableHandle

处理器的可观察

对象

718a5 @acoustic-content-sdk/component-api > LayoutMappingResolver > getSelector

LayoutMappingResolver.getSelector property

Returns the layout selector based on the rendering context

Signature:

getSelector: (aLayoutMode: string, aRenderingContext: RenderingContextV2) => string | undefined;

主页 > @acoustic-content-sdk/component-api > 布局解析器 > resolveLayout

LayoutResolver.resolveLayout property

Returns the layout layout object based on the rendering context and the mode

Signature:

resolveLayout: (aLayoutMode: string, aRenderingContext: RenderingContextV2) => Observable<Layout>;

主页 > @acoustic-content-sdk/component-api > 预渲染解析器 > getPreRenderedMarkup

PreRenderingResolver.getPreRenderedMarkup() method

生成引用内容项的预渲染

签名:

getPreRenderedMarkup(aSelector: string, aLayoutMode?: string): Observable<string>;

Parameters

Parameter Type Description
aSelector string the markup selector. This is either the ID of a content item or ID#accessor to address a markup fragment
aLayoutMode string optionally the layout mode

返回:

Observable< /code>

an observable of the result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchInput > predicate

ReconciledDeliverySearchInput.predicate property

Matcher function that tests if a particular value matches the search query

Signature:

predicate: UnaryFunction<T, boolean>;

主页 > @acoustic-content-sdk/component-api > ReconciledDeliverySearchInput > query

ReconciledDeliverySearchInput.query property

The search query object used to execute a query equivalent to the matcher

Signature:

query: QueryInput;

主页 > @acoustic-content-sdk/component-api > 受保护内容 > protected$

ProtectedContent.protected$ property

Flag to tell whether or not to serve protected content

Signature:

protected$: Observable<boolean>;

主页 > @acoustic-content-sdk/component-api > RenderingContextResolver > resolveRenderingContext

RenderingContextResolver.resolveRenderingContext property

Returns the layout selector based on the rendering context

Signature:

resolveRenderingContext: (aItem: RenderingContextInput, aProvider: RenderingContextProviderV2) => Observable<RenderingContextV2>;

主页 > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

执行布局映射搜索。 该实现会自动将分类添加到查询的 fq 部分,因此无需在查询中包含它。

签名:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringLayoutMapping>, aClassification: typeof CLASSIFICATION_LAYOUT_MAPPING): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringLayoutMapping&gt; the query input
aClassification typeof CLASSIFICATION_LAYOUT_MAPPING the classification

返回:

Observable>

结果

搜索 href="#_f68be7b26fd989a10729db5615af1f890587faa077ca5b6a3808a8b2ad117ce5">主页 > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for layouts. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringLayout>, aClassification: typeof CLASSIFICATION_LAYOUT): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringLayout&gt; the query input
aClassification typeof CLASSIFICATION_LAYOUT the classification

Returns:

Observable>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for assets. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringAsset>, aClassification: typeof CLASSIFICATION_ASSET): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringAsset&gt; the query input
aClassification typeof CLASSIFICATION_ASSET the classification

Returns:

Observable>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringContentItem>, aClassification: typeof CLASSIFICATION_CONTENT): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringContentItem&gt; the query input
aClassification typeof CLASSIFICATION_CONTENT the classification

Returns:

Observable>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringType>, aClassification: typeof CLASSIFICATION_CONTENT_TYPE): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringType&gt; the query input
aClassification typeof CLASSIFICATION_CONTENT_TYPE the classification

Returns:

Observable>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<ITEM, RESULT>(aQuery: ReconciledDeliverySearchInput<ITEM>, aClassification: string): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;ITEM&gt; the query input
aClassification string the classification

Returns:

Observable>

the search result

Home > @acoustic-content-sdk/component-api > SeedResolver > getSeed

SeedResolver.getSeed() method

Resolves a rendering context given the ID of the item

Signature:

getSeed(aID: string, aClassification: string): Observable<string>;

Parameters

Parameter Type Description
aID string the ID of the item
aClassification string classification of the item

Returns:

Observable

an observable of the context

Home > @acoustic-content-sdk/component-api > WchPageService > getRenderingContextByPath

WchPageService.getRenderingContextByPath() method

Resolves the rendering context given the path

Signature:

getRenderingContextByPath(aPath: string): Observable<RenderingContextV2 | null | undefined>;

Parameters

Parameter Type Description
aPath string the path as a string

Returns:

Observable

the observable of the rendering context or undefined if it could not be found

npm

API Documentation

Home > @acoustic-content-sdk/component-api

component-api package

Framework independent collection of APIs and constants

Interfaces

Interface Description
AbstractComponentResolver
AbstractComponentsRegistry
AbstractComponentTypeRefResolver Service that resolves a component type ref given a layout.
AbstractLayoutComponentDirective Type of the Layout metadata.
DeliveryContentResolver Service interface that allows to resolve a rendering context given its ID.
DeliveryLayoutMappingResolver Service interface that allows to resolve a type
DeliveryLayoutResolver Service interface that allows to resolve a type
DeliveryPageResolver Service interface that allows to resolve a rendering context given its ID.
DeliverySearchResolver Service that performs a search query against delivery search for artifacts of a particular classification.
DeliverySiteResolver
DeliveryTypeResolver Service interface that allows to resolve a type
HandlebarsResolver Service interface to map a template to a (markup) string
LayoutMappingDirective Type of the LayoutMapping metadata.
LayoutMappingResolver
LayoutResolver Callback that finds the layout assigned to the object in the current rendering context.
PreRenderingResolver Service interface that returns the pre-rendered content by id
ProtectedContent
ReconciledDeliverySearchInput Input to the reconciled search operation
ReconciledDeliverySearchResolver Service that performs a search query against delivery search for artifacts of a particular classification.
RenderingContextResolver Constructs a rendering context
SeedResolver Service interface that allows to resolve a seed
WchPageService Service interface that allows to resolve a rendering context given the page.

Variables

Variable Description
ACOUSTIC_RC_INTERCEPTOR_TOKEN
VERSION Version and build number of the package

Type Aliases

Type Alias Description
HandlebarsProcessor the processor converts the context into a string
RenderingContextInput
WindowType

Home > @acoustic-content-sdk/component-api > AbstractComponentResolver

AbstractComponentResolver interface

Signature:

export interface AbstractComponentResolver<T> 

Methods

Method Description
resolveComponent(aRenderingContext, aLayoutMode)

Home > @acoustic-content-sdk/component-api > AbstractComponentsRegistry

AbstractComponentsRegistry interface

Signature:

export interface AbstractComponentsRegistry<TYPE> extends AbstractComponentTypeRefResolver<TYPE> 

Properties

Property Type Description
getTypeByLayout (aLayout: Layout, aLayoutMode?: string) =&gt; Observable&lt;TYPE&gt; Returns the type object based on the layout configuration
getTypeBySelector (aSelector: string, aLayoutMode?: string) =&gt; Observable&lt;TYPE&gt; Returns the type object based on the layout selector
registerType (aController: string &#124; string[], aType: TYPE, aLayoutModes?: string &#124; string[]) =&gt; void define the methods

Home > @acoustic-content-sdk/component-api > AbstractComponentTypeRefResolver

AbstractComponentTypeRefResolver interface

Service that resolves a component type ref given a layout.

Signature:

export interface AbstractComponentTypeRefResolver<T> 

Properties

Property Type Description
getTypeByLayout (aLayout: Layout, aLayoutMode?: string) =&gt; Observable&lt;T&gt; Returns the type object based on the layout configuration

Home > @acoustic-content-sdk/component-api > AbstractLayoutComponentDirective

AbstractLayoutComponentDirective interface

Type of the Layout metadata.

Signature:

export interface AbstractLayoutComponentDirective 

Properties

Property Type Description
layoutMode string &#124; string[] An optional layout mode used with a default layout mapping.
mappingId string &#124; string[] ID of the content item, content type or the content type name used for a default layout mapping. If the ID is not given, this layout will not be mapped by default.
selector string &#124; string[] Defines the mapping between the layout controller to the layout implementation. If this property is missing, the selector of the component will be used instead.

Home > @acoustic-content-sdk/component-api > DeliveryContentResolver

DeliveryContentResolver interface

Service interface that allows to resolve a rendering context given its ID.

Signature:

export interface DeliveryContentResolver 

Methods

Method Description
getDeliveryContentItem(aID) Resolves a rendering context given the ID of the item

Home > @acoustic-content-sdk/component-api > DeliveryLayoutMappingResolver

DeliveryLayoutMappingResolver interface

Service interface that allows to resolve a type

Signature:

export interface DeliveryLayoutMappingResolver 

Methods

Method Description
getDeliveryLayoutMapping(aTypeId) Resolves a layout mapping given the ID of the type of the mapping

Home > @acoustic-content-sdk/component-api > DeliveryLayoutResolver

DeliveryLayoutResolver interface

Service interface that allows to resolve a type

Signature:

export interface DeliveryLayoutResolver 

Methods

Method Description
getDeliveryLayout(aLayoutId) Resolves a layout record

Home > @acoustic-content-sdk/component-api > DeliveryPageResolver

DeliveryPageResolver interface

Service interface that allows to resolve a rendering context given its ID.

Signature:

export interface DeliveryPageResolver 

Methods

Method Description
getDeliveryPage(aPath) Resolves a rendering context given the ID of the item

Home > @acoustic-content-sdk/component-api > DeliverySearchResolver

DeliverySearchResolver interface

Service that performs a search query against delivery search for artifacts of a particular classification.

Signature:

export interface DeliverySearchResolver 

Methods

Method Description
getDeliverySearchResults(aQuery, aClassification) Execute the search. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Home > @acoustic-content-sdk/component-api > DeliverySiteResolver

DeliverySiteResolver interface

Signature:

export interface DeliverySiteResolver 

Methods

Method Description
getSiteDeliveryContentItem() Resolves the current site

Home > @acoustic-content-sdk/component-api > DeliveryTypeResolver

DeliveryTypeResolver interface

Service interface that allows to resolve a type

Signature:

export interface DeliveryTypeResolver 

Methods

Method Description
getDeliveryType(aID) Resolves a rendering context given the ID of the item

Home > @acoustic-content-sdk/component-api > HandlebarsResolver

HandlebarsResolver interface

Service interface to map a template to a (markup) string

Signature:

export interface HandlebarsResolver 

Methods

Method Description
getHandlebarsProcessor(aId) Resolves the template ID to a processor

Home > @acoustic-content-sdk/component-api > LayoutMappingDirective

LayoutMappingDirective interface

Type of the LayoutMapping metadata.

Signature:

export interface LayoutMappingDirective 

Properties

Property Type Description
id string &#124; string[] Type IDs or content IDs to map this to
kind CONTENT_ITEM_KIND &#124; CONTENT_ITEM_KIND[] Type IDs to map this to
layoutMode string &#124; string[] An optional layout mode used with this layout mapping.
selector string &#124; string[] Defines the mapping between the layout controller to the layout implementation. If this property is missing, the selector of the component will be used instead.

Home > @acoustic-content-sdk/component-api > LayoutMappingResolver

LayoutMappingResolver interface

Signature:

export interface LayoutMappingResolver 

Properties

Property Type Description
getSelector (aLayoutMode: string, aRenderingContext: RenderingContextV2) =&gt; string &#124; undefined Returns the layout selector based on the rendering context

Home > @acoustic-content-sdk/component-api > LayoutResolver

LayoutResolver interface

Callback that finds the layout assigned to the object in the current rendering context.

Signature:

export interface LayoutResolver 

Properties

Property Type Description
resolveLayout (aLayoutMode: string, aRenderingContext: RenderingContextV2) =&gt; Observable&lt;Layout&gt; Returns the layout layout object based on the rendering context and the mode

Home > @acoustic-content-sdk/component-api > PreRenderingResolver

PreRenderingResolver interface

Service interface that returns the pre-rendered content by id

Signature:

export interface PreRenderingResolver 

Methods

Method Description
getPreRenderedMarkup(aSelector, aLayoutMode) Generate a pre-rendering of the referenced content item

Home > @acoustic-content-sdk/component-api > ProtectedContent

ProtectedContent interface

Signature:

export interface ProtectedContent 

Properties

Property Type Description
protected$ Observable&lt;boolean&gt; Flag to tell whether or not to serve protected content

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchInput

ReconciledDeliverySearchInput interface

Input to the reconciled search operation

Signature:

export interface ReconciledDeliverySearchInput<T> 

Properties

Property Type Description
predicate UnaryFunction&lt;T, boolean&gt; Matcher function that tests if a particular value matches the search query
query QueryInput The search query object used to execute a query equivalent to the matcher

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver

ReconciledDeliverySearchResolver interface

Service that performs a search query against delivery search for artifacts of a particular classification.

Signature:

export interface ReconciledDeliverySearchResolver 

Methods

Method Description
getDeliverySearchResults(aQuery, aClassification) Execute the search for layout mappings. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for layouts. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for assets. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.
getDeliverySearchResults(aQuery, aClassification) Execute the search. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Home > @acoustic-content-sdk/component-api > RenderingContextResolver

RenderingContextResolver interface

Constructs a rendering context

Signature:

export interface RenderingContextResolver 

Properties

Property Type Description
resolveRenderingContext (aItem: RenderingContextInput, aProvider: RenderingContextProviderV2) =&gt; Observable&lt;RenderingContextV2&gt; Returns the layout selector based on the rendering context

Home > @acoustic-content-sdk/component-api > SeedResolver

SeedResolver interface

Service interface that allows to resolve a seed

Signature:

export interface SeedResolver 

Methods

Method Description
getSeed(aID, aClassification) Resolves a rendering context given the ID of the item

Home > @acoustic-content-sdk/component-api > WchPageService

WchPageService interface

Service interface that allows to resolve a rendering context given the page.

Signature:

export interface WchPageService 

Methods

Method Description
getRenderingContextByPath(aPath) Resolves the rendering context given the path

Home > @acoustic-content-sdk/component-api > ACOUSTIC_RC_INTERCEPTOR_TOKEN

ACOUSTIC_RC_INTERCEPTOR_TOKEN variable

Signature:

ACOUSTIC_RC_INTERCEPTOR_TOKEN = "8453750A-4519-4184-840B-D490E909D23E"

Home > @acoustic-content-sdk/component-api > VERSION

VERSION variable

Version and build number of the package

Signature:

VERSION: {
    version: {
        major: string;
        minor: string;
        patch: string;
        branch: string;
    };
    build: Date;
}

Home > @acoustic-content-sdk/component-api > HandlebarsProcessor

HandlebarsProcessor type

the processor converts the context into a string

Signature:

export declare type HandlebarsProcessor = (aContext: RenderingContextV2) => string;

Home > @acoustic-content-sdk/component-api > RenderingContextInput

RenderingContextInput type

Signature:

export declare type RenderingContextInput = string | DeliveryContentItem | DeliveryGroupElement | DeliveryReferenceElement;

Home > @acoustic-content-sdk/component-api > WindowType

WindowType type

Signature:

export declare type WindowType = Window | Object;

Home > @acoustic-content-sdk/component-api > AbstractComponentTypeRefResolver > getTypeByLayout

AbstractComponentTypeRefResolver.getTypeByLayout property

Returns the type object based on the layout configuration

Signature:

getTypeByLayout: (aLayout: Layout, aLayoutMode?: string) => Observable<T>;

Home > @acoustic-content-sdk/component-api > AbstractComponentResolver > resolveComponent

AbstractComponentResolver.resolveComponent() method

Signature:

resolveComponent(aRenderingContext: RenderingContextV2, aLayoutMode?: string): Observable<T>;

Parameters

Parameter Type Description
aRenderingContext RenderingContextV2
aLayoutMode string

Returns:

Observable<T>

Home > @acoustic-content-sdk/component-api > AbstractLayoutComponentDirective > layoutMode

AbstractLayoutComponentDirective.layoutMode property

An optional layout mode used with a default layout mapping.

Signature:

layoutMode?: string | string[];

Home > @acoustic-content-sdk/component-api > AbstractLayoutComponentDirective > mappingId

AbstractLayoutComponentDirective.mappingId property

ID of the content item, content type or the content type name used for a default layout mapping. If the ID is not given, this layout will not be mapped by default.

Signature:

mappingId?: string | string[];

Home > @acoustic-content-sdk/component-api > AbstractLayoutComponentDirective > selector

AbstractLayoutComponentDirective.selector property

Defines the mapping between the layout controller to the layout implementation. If this property is missing, the selector of the component will be used instead.

Signature:

selector?: string | string[];

Home > @acoustic-content-sdk/component-api > DeliveryContentResolver > getDeliveryContentItem

DeliveryContentResolver.getDeliveryContentItem() method

Resolves a rendering context given the ID of the item

Signature:

getDeliveryContentItem(aID: string): Observable<DeliveryContentItem>;

Parameters

Parameter Type Description
aID string the ID of the item

Returns:

Observable<DeliveryContentItem>

an observable of the context

Home > @acoustic-content-sdk/component-api > AbstractComponentsRegistry > getTypeByLayout

AbstractComponentsRegistry.getTypeByLayout property

Returns the type object based on the layout configuration

Signature:

getTypeByLayout: (aLayout: Layout, aLayoutMode?: string) => Observable<TYPE>;

Home > @acoustic-content-sdk/component-api > AbstractComponentsRegistry > getTypeBySelector

AbstractComponentsRegistry.getTypeBySelector property

Returns the type object based on the layout selector

Signature:

getTypeBySelector: (aSelector: string, aLayoutMode?: string) => Observable<TYPE>;

Home > @acoustic-content-sdk/component-api > AbstractComponentsRegistry > registerType

AbstractComponentsRegistry.registerType property

define the methods

Signature:

registerType: (aController: string | string[], aType: TYPE, aLayoutModes?: string | string[]) => void;

Home > @acoustic-content-sdk/component-api > DeliveryLayoutResolver > getDeliveryLayout

DeliveryLayoutResolver.getDeliveryLayout() method

Resolves a layout record

Signature:

getDeliveryLayout(aLayoutId: string): Observable<DeliveryLayout>;

Parameters

Parameter Type Description
aLayoutId string the ID of the layout

Returns:

Observable<DeliveryLayout>

an observable of the layout

Home > @acoustic-content-sdk/component-api > DeliveryPageResolver > getDeliveryPage

DeliveryPageResolver.getDeliveryPage() method

Resolves a rendering context given the ID of the item

Signature:

getDeliveryPage(aPath: string): Observable<DeliveryContentItem>;

Parameters

Parameter Type Description
aPath string the path to the page

Returns:

Observable<DeliveryContentItem>

an observable of the context

Home > @acoustic-content-sdk/component-api > DeliveryLayoutMappingResolver > getDeliveryLayoutMapping

DeliveryLayoutMappingResolver.getDeliveryLayoutMapping() method

Resolves a layout mapping given the ID of the type of the mapping

Signature:

getDeliveryLayoutMapping(aTypeId: string): Observable<DeliveryLayoutMapping>;

Parameters

Parameter Type Description
aTypeId string the ID of the content type the layout is mapped to

Returns:

Observable<DeliveryLayoutMapping>

an observable of the context

Home > @acoustic-content-sdk/component-api > DeliverySearchResolver > getDeliverySearchResults

DeliverySearchResolver.getDeliverySearchResults() method

Execute the search. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<T>(aQuery: QueryInput, aClassification: string): Observable<SearchResults<T>>;

Parameters

Parameter Type Description
aQuery QueryInput the query input
aClassification string the classification

Returns:

Observable<SearchResults<T>>

the search result

Home > @acoustic-content-sdk/component-api > DeliverySiteResolver > getSiteDeliveryContentItem

DeliverySiteResolver.getSiteDeliveryContentItem() method

Resolves the current site

Signature:

getSiteDeliveryContentItem(): Observable<SiteDeliveryContentItem>;

Returns:

Observable<SiteDeliveryContentItem>

the site record

Home > @acoustic-content-sdk/component-api > DeliveryTypeResolver > getDeliveryType

DeliveryTypeResolver.getDeliveryType() method

Resolves a rendering context given the ID of the item

Signature:

getDeliveryType(aID: string): Observable<DeliveryType>;

Parameters

Parameter Type Description
aID string the ID of the item

Returns:

Observable<DeliveryType>

an observable of the context

Home > @acoustic-content-sdk/component-api > LayoutMappingDirective > id

LayoutMappingDirective.id property

Type IDs or content IDs to map this to

Signature:

id?: string | string[];

Home > @acoustic-content-sdk/component-api > LayoutMappingDirective > kind

LayoutMappingDirective.kind property

Type IDs to map this to

Signature:

kind?: CONTENT_ITEM_KIND | CONTENT_ITEM_KIND[];

Home > @acoustic-content-sdk/component-api > LayoutMappingDirective > layoutMode

LayoutMappingDirective.layoutMode property

An optional layout mode used with this layout mapping.

Signature:

layoutMode?: string | string[];

Home > @acoustic-content-sdk/component-api > LayoutMappingDirective > selector

LayoutMappingDirective.selector property

Defines the mapping between the layout controller to the layout implementation. If this property is missing, the selector of the component will be used instead.

Signature:

selector?: string | string[];

Home > @acoustic-content-sdk/component-api > HandlebarsResolver > getHandlebarsProcessor

HandlebarsResolver.getHandlebarsProcessor() method

Resolves the template ID to a processor

Signature:

getHandlebarsProcessor(aId: string): Observable<HandlebarsProcessor>;

Parameters

Parameter Type Description
aId string the ID of the template

Returns:

Observable<HandlebarsProcessor>

an observable of the processor

Home > @acoustic-content-sdk/component-api > LayoutMappingResolver > getSelector

LayoutMappingResolver.getSelector property

Returns the layout selector based on the rendering context

Signature:

getSelector: (aLayoutMode: string, aRenderingContext: RenderingContextV2) => string | undefined;

Home > @acoustic-content-sdk/component-api > LayoutResolver > resolveLayout

LayoutResolver.resolveLayout property

Returns the layout layout object based on the rendering context and the mode

Signature:

resolveLayout: (aLayoutMode: string, aRenderingContext: RenderingContextV2) => Observable<Layout>;

Home > @acoustic-content-sdk/component-api > PreRenderingResolver > getPreRenderedMarkup

PreRenderingResolver.getPreRenderedMarkup() method

Generate a pre-rendering of the referenced content item

Signature:

getPreRenderedMarkup(aSelector: string, aLayoutMode?: string): Observable<string>;

Parameters

Parameter Type Description
aSelector string the markup selector. This is either the ID of a content item or ID#accessor to address a markup fragment
aLayoutMode string optionally the layout mode

Returns:

Observable<string>

an observable of the result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchInput > predicate

ReconciledDeliverySearchInput.predicate property

Matcher function that tests if a particular value matches the search query

Signature:

predicate: UnaryFunction<T, boolean>;

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchInput > query

ReconciledDeliverySearchInput.query property

The search query object used to execute a query equivalent to the matcher

Signature:

query: QueryInput;

Home > @acoustic-content-sdk/component-api > ProtectedContent > protected$

ProtectedContent.protected$ property

Flag to tell whether or not to serve protected content

Signature:

protected$: Observable<boolean>;

Home > @acoustic-content-sdk/component-api > RenderingContextResolver > resolveRenderingContext

RenderingContextResolver.resolveRenderingContext property

Returns the layout selector based on the rendering context

Signature:

resolveRenderingContext: (aItem: RenderingContextInput, aProvider: RenderingContextProviderV2) => Observable<RenderingContextV2>;

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for layout mappings. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringLayoutMapping>, aClassification: typeof CLASSIFICATION_LAYOUT_MAPPING): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringLayoutMapping&gt; the query input
aClassification typeof CLASSIFICATION_LAYOUT_MAPPING the classification

Returns:

Observable<SearchResults<RESULT>>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for layouts. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringLayout>, aClassification: typeof CLASSIFICATION_LAYOUT): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringLayout&gt; the query input
aClassification typeof CLASSIFICATION_LAYOUT the classification

Returns:

Observable<SearchResults<RESULT>>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for assets. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringAsset>, aClassification: typeof CLASSIFICATION_ASSET): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringAsset&gt; the query input
aClassification typeof CLASSIFICATION_ASSET the classification

Returns:

Observable<SearchResults<RESULT>>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringContentItem>, aClassification: typeof CLASSIFICATION_CONTENT): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringContentItem&gt; the query input
aClassification typeof CLASSIFICATION_CONTENT the classification

Returns:

Observable<SearchResults<RESULT>>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search for content items. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<RESULT>(aQuery: ReconciledDeliverySearchInput<AuthoringType>, aClassification: typeof CLASSIFICATION_CONTENT_TYPE): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;AuthoringType&gt; the query input
aClassification typeof CLASSIFICATION_CONTENT_TYPE the classification

Returns:

Observable<SearchResults<RESULT>>

the search result

Home > @acoustic-content-sdk/component-api > ReconciledDeliverySearchResolver > getDeliverySearchResults

ReconciledDeliverySearchResolver.getDeliverySearchResults() method

Execute the search. The implementation will add the classification to the fq part of the query, automatically, so there is no need to contain it in the query.

Signature:

getDeliverySearchResults<ITEM, RESULT>(aQuery: ReconciledDeliverySearchInput<ITEM>, aClassification: string): Observable<SearchResults<RESULT>>;

Parameters

Parameter Type Description
aQuery ReconciledDeliverySearchInput&lt;ITEM&gt; the query input
aClassification string the classification

Returns:

Observable<SearchResults<RESULT>>

the search result

Home > @acoustic-content-sdk/component-api > SeedResolver > getSeed

SeedResolver.getSeed() method

Resolves a rendering context given the ID of the item

Signature:

getSeed(aID: string, aClassification: string): Observable<string>;

Parameters

Parameter Type Description
aID string the ID of the item
aClassification string classification of the item

Returns:

Observable<string>

an observable of the context

Home > @acoustic-content-sdk/component-api > WchPageService > getRenderingContextByPath

WchPageService.getRenderingContextByPath() method

Resolves the rendering context given the path

Signature:

getRenderingContextByPath(aPath: string): Observable<RenderingContextV2 | null | undefined>;

Parameters

Parameter Type Description
aPath string the path as a string

Returns:

Observable<RenderingContextV2 | null | undefined>

the observable of the rendering context or undefined if it could not be found

更多

友情链接

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文