APIs

Show:

Service to store/read adv limits to/from application storage.

Methods

_deleteExistingRecord

(
  • componentName
  • settingName
)
Promise private

Deletes adv limit record from storage.

Parameters:

  • componentName Object

    Component name.

  • settingName String

    Setting name.

Returns:

_getAdvLimits

(
  • componentNames
)
Object

Returns adv limits for current appPage from storage.

Parameters:

Returns:

_getExistingLimits

(
  • componentName
  • settingName
)
Promise private

Looks for all created adv limits.

Parameters:

  • componentName String

    Component name.

  • settingName String

    Setting name.

Returns:

Promise:

A promise that returns found records or undefined if there is no such adv limit.

_getExistingRecord

(
  • componentName
  • settingName
)
Promise private

Looks for already created adv limit record.

Parameters:

  • componentName Object

    Component name.

  • settingName String

    Setting name.

Returns:

Promise:

A promise that returns founded record or undefined if there is no such setting.

_getLimitFromStore

(
  • componentName
  • settingName
)
Promise private

Gets adv limit from storage.

Parameters:

  • componentName String

    Component name.

  • settingName String

    Setting name.

Returns:

Promise:

A promise that returns found records or undefined if there is no such adv limit.

_getLimitFromStore

(
  • componentName
  • settingName
)
Object private

Creates predicate for adv limit.

Parameters:

  • componentName String

    Component name.

  • settingName String

    Setting name.

Returns:

Object:

Predicate for adv limit.

_setCurrentAdvLimits

(
  • appPageAdvLimits
)
Object

Sets current adv limits

Parameters:

  • appPageAdvLimits Object

    Current adv limits

Returns:

deleteAdvLimit

(
  • componentName
  • settingName
)
Promise

Deletes given adv limit from storage.

Parameters:

  • componentName String

    Component name.

  • settingName String

    Setting name.

Returns:

exists

() Boolean

Returns true if adv limit for current appPage exists.

Returns:

getAdvLimitsFromStore

(
  • componentNames
)

Get adv limits from store.

Parameters:

getCurrentAdvLimit

(
  • componentName
  • advLimitName
)
Object

Returns current adv limit by name.

Parameters:

  • componentName String

    Name of component.

  • advLimitName String

    Name of adv limit.

Returns:

getCurrentAdvLimits

(
  • componentName
)
Object

Returns current adv limits for specified component.

Parameters:

  • componentName String

    Name of component.

Returns:

getCurrentAppPage

() String

Get current App Page.

Returns:

getListComponentNames

() Array

Get list of component names.

Returns:

getNamedAdvLimits

(
  • componentName
)
Object

Returns current list of named adv limits.

Parameters:

Returns:

saveAdvLimit

(
  • advLimit
  • componentName
  • settingName
)
Promise

Saves given adv limit to storage.

Parameters:

  • advLimit String

    Adv limit data to save.

  • componentName String

    Component name.

  • settingName String

    Setting name.

Returns:

Promise:

Save operation promise.

setCurrentAppPage

(
  • pageName.
)

Set current Web Page.

Parameters:

Properties

avdLimitModelName

String

Adv limit model name.

Default: 'flexberry-adv-limit'

avdLimitProjectionName

String

Adv limit projection name.

Default: 'AdvLimitE'

currentAdvLimits

Object

Current user settings for all pages

Default: {}

currentAppPage

String

Current application page name.

Default: undefined

isAdvLimitServiceEnabled

Boolean

Flag: indicates whether to use adv limit service. This flag is readed from config setting APP.isAdvLimitServiceEnabled and can be changed programatically later.

Default: false

store

DS.Store

Ember data store.