AbstractMCorner

AbstractMCorner ⇐ MAbstract

Class defining a generic Corner entry holding associated contents.

Kind: global abstract mixin
Extends: MAbstract
Properties

NameType
forceCornerBoolean
isCornerBoolean

getCornerEntries([options]) ⇒ Promise.<Array.<AbstractEntry>>

Return the entries of the corner, which are the access point to go deeper in a part of a corner.

Kind: instance method of AbstractMCorner

ParamTypeDefaultDescription
[options]Object

Some options

[options.force]booleanfalse

If true, don't use the cache

[options.duration]number

Duration in milliseconds before invalidation of cache (if null, $$maxAge value is used by default)

getEntryComponents(entryId, [options]) ⇒ Promise.<Array.<AbstractEntryComponent>>

Array of component types that are browsable when the user navigates the entry.

Kind: instance method of AbstractMCorner

ParamTypeDefaultDescription
entryIdString
[options]Object

Some options

[options.force]booleanfalse

If true, don't use the cache

[options.duration]number

Duration in milliseconds before invalidation of cache (if null, $$maxAge value is used by default)

getComponentContents(entryId, componentId, options) ⇒ ListModel.<BusinessModel>

Return the contents that will populate a component of an entry. May contains different types of items depending of the type of the component. Here a content refers to a data model (Content, Channel, People, Event, …).

Kind: instance method of AbstractMCorner

ParamTypeDefaultDescription
entryIdstring

the id of the entry

componentIdstring

the id of the component

optionsObject | null

additional options

[options.duration]number

Duration in milliseconds before invalidation of cache (if null, $$maxAge value is used by default)

_getCornerEntries([options]) ⇒ Promise.<Array.<Entry>>

Retrieves current corner entries.

Kind: instance abstract method of AbstractMCorner
Returns: Promise.<Array.<Entry>> - A promise holding a list of corner entries.

ParamTypeDescription
[options]Object

Some options

_getEntryComponents(entryId, [options]) ⇒ Promise.<Entry>

Retrieves the components for a given corner entry.

Kind: instance abstract method of AbstractMCorner
Returns: Promise.<Entry> - A promise holding an entry object when resolved.

ParamTypeDescription
entryIdString

the identifier of the corner entry (of the module)

[options]Object

Some options

_getComponentContents(entryId, componentId, options) ⇒ ListModel.<BusinessModel>

Return the contents that will populate a component of a corner entry.

Kind: instance abstract method of AbstractMCorner
Returns: ListModel.<BusinessModel> - A list model object holding an associated business model.

ParamTypeDescription
entryIdstring

the identifier of the corner entry (of the module)

componentIdstring

the identifier of the component

optionsObject

additional options