AdvLimitService Class
Service to store/read adv limits to/from application storage.
Item Index
Methods
- _deleteExistingRecord
- _getAdvLimits
- _getExistingLimits
- _getExistingRecord
- _getLimitFromStore
- _getLimitFromStore
- _setCurrentAdvLimits
- deleteAdvLimit
- exists
- getAdvLimitsFromStore
- getCurrentAdvLimit
- getCurrentAdvLimits
- getCurrentAppPage
- getListComponentNames
- getNamedAdvLimits
- saveAdvLimit
- setCurrentAppPage
Methods
_deleteExistingRecord
-
componentName
-
settingName
Deletes adv limit record from storage.
Returns:
_getAdvLimits
-
componentNames
Returns adv limits for current appPage from storage.
Parameters:
-
componentNames
Array
Returns:
_getExistingLimits
-
componentName
-
settingName
Looks for all created adv limits.
Returns:
A promise that returns found records or undefined
if there is no such adv limit.
_getExistingRecord
-
componentName
-
settingName
Looks for already created adv limit record.
Returns:
A promise that returns founded record
or undefined
if there is no such setting.
_getLimitFromStore
-
componentName
-
settingName
Gets adv limit from storage.
Returns:
A promise that returns found records or undefined
if there is no such adv limit.
_getLimitFromStore
-
componentName
-
settingName
Creates predicate for adv limit.
Returns:
Predicate for adv limit.
_setCurrentAdvLimits
-
appPageAdvLimits
Sets current adv limits
Parameters:
-
appPageAdvLimits
ObjectCurrent adv limits
Returns:
getAdvLimitsFromStore
-
componentNames
Get adv limits from store.
Parameters:
-
componentNames
Array
getCurrentAdvLimit
-
componentName
-
advLimitName
Returns current adv limit by name.
Returns:
getCurrentAdvLimits
-
componentName
Returns current adv limits for specified component.
Parameters:
-
componentName
StringName of component.
Returns:
getNamedAdvLimits
-
componentName
Returns current list of named adv limits.
Parameters:
-
componentName
Object
Returns:
Properties
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