c_SSPPortalService

Description

Functions specific for Portal

Methods


<static> getApplicationVersion() → {string}

Description

Get the current SSP application version

Returns

<static> addFeedback( feedback ) → {boolean}

Description

Add a feedback entry

Parameters
Name Type Description
feedback PortalFeedback
Returns

<static> getUIMessages() → {Object}

Description

Retrieve all UI messages configured specifically for the SSP portal and the users language

Returns

(key: message)


<static> getApplicationConfiguration() → {ApplicationConfiguration}

Description

Retrieve the portal configuration object

Returns

Configuration object


<static> _getChatUIScriptUrl() → {string}

Description

Get the Chat UI Popin script url

Returns

<static> _getMkzHeader() → {Array.<MenuItem>}

Description

Get the MKZ header menu options

Returns

<static> pageSearch( sourceText, searchValue ) → {number}

Description

Generic search algorythm for every search on the portal, return -1 if not found otherwise a score between 0 and 100 (included)

Parameters
Name Type Description
sourceText string

Concatenated string that includes all text to be searched in

searchValue string

The value to search for

Returns

-1 for not found, otherwise a score from 0 to 100

Details

This function should be client only and is not used on the backend


<static> getConfigurationProperty( property, defaultValue [, parse ] ) → {Object|string}

Description

Retrieve a system property by name

Parameters
Name Type Attributes Default Description
property string

Property name to retrieve, for JSON string properties

defaultValue any

Default value if property can't be read

parse boolean <optional>
true

Whether to parse JSON into an object or not, true will return a parsed object or {}, not a string

Returns

Value as string or parsed JSON object


<static> getNgTemplates() → {Array.<AngularTemplate>}

Description

Retrieve all the kpn-ssp templates so that they can be pre-loaded in the client application

Returns

<static> getMenuItemList() → {Array.<MenuItem>}

Description

Retrieve a list of enabled menu items, eg menu items available for the current user

Returns

<static> getNewsList() → {Array.<ListItem>}

Description

Get a list of available news items

Returns