* increase timeout and modify login async * run e2e if testing is changed * improve cdk fix * fix travis update projects * disable ghostMode lite server * lint fix * fix timeout * multiple try * Update content-services-e2e.sh * Update search-e2e.sh * Update process-services-e2e.sh * Update core-e2e.sh * Update protractor.conf.ts * fix unit * remove async * increqase notification time * 3 parallel * dix path issue in save * small refactor protractor ts * fix save * create license check first script adf cli * modify regex check * refactor notification history component * decrease notification * fix notification message problem * fix test * update packages wit high risk * revert cahnge login sso e2e * fix dep * fix documentation duplication and issue * fix after review * fix after review * try 6 parallel test * back to 3 parallel test no real time improve with 6
4.9 KiB
Title, Added, Status, Last reviewed
Title | Added | Status | Last reviewed |
---|---|---|---|
Extension Service | v3.0.0 | Experimental | 2019-03-19 |
Extension Service
Manages and runs basic extension functionality.
Class members
Methods
-
evaluateRule(ruleId:
string
, context?:RuleContext
):boolean
Evaluates a rule.- ruleId:
string
- ID of the rule to evaluate - context:
RuleContext
- (Optional) Custom rule execution context. - Returns
boolean
- True if the rule passed, false otherwise
- ruleId:
-
getActionById(id:
string
):ActionRef
Retrieves an action using its ID value.- id:
string
- The ID value to look for - Returns
ActionRef
- Action or null if not found
- id:
-
getAuthGuards(ids:
string[]
):Array<Type<__type>>
Retrieves one or more auth guards using an array of ID values.- ids:
string[]
- Array of ID value to look for - Returns
Array<Type<__type>>
- Array of auth guards or empty array if none were found
- ids:
-
getComponentById(id:
string
):Type<>
Retrieves a registered extension component using its ID value.- id:
string
- The ID value to look for - Returns
Type<>
- The component or null if not found
- id:
-
getElements(key:
string
, fallback:Array<>
=[]
):Array<>
- key:
string
- - fallback:
Array<>
- - Returns
Array<>
-
- key:
-
getEvaluator(key:
string
):RuleEvaluator
Retrieves a RuleEvaluator function using its key name.- key:
string
- Key name to look for - Returns
RuleEvaluator
- RuleEvaluator or null if not found
- key:
-
getFeature(key:
string
):any[]
Gets features by key.- key:
string
- Key string, using dot notation - Returns
any[]
- Features array found by key
- key:
-
getRouteById(id:
string
):RouteRef
Retrieves a route using its ID value.- id:
string
- The ID value to look for - Returns
RouteRef
- The route or null if not found
- id:
-
getRuleById(id:
string
):RuleRef
Retrieves a rule using its ID value.- id:
string
- The ID value to look for - Returns
RuleRef
- The rule or null if not found
- id:
-
load():
Promise
<
ExtensionConfig
>
Loads and registers an extension config file and plugins (specified by path properties).- Returns
Promise
<
ExtensionConfig
>
- The loaded config data
- Returns
-
runExpression(value:
string
, context?:any
):any
Runs a lightweight expression stored in a string.- value:
string
- String containing the expression or literal value - context:
any
- (Optional) Parameter object for the expression with details of app state - Returns
any
- Result of evaluated expression, if found, or the literal value otherwise
- value:
-
setAuthGuards(values:
Function
)
Adds one or more new auth guards to the existing set.- values:
Function
- The new auth guards to add
- values:
-
setComponents(values:
Function
)
Adds one or more new components to the existing set.- values:
Function
- The new components to add
- values:
-
setEvaluators(values:
Function
)
Adds one or more new rule evaluators to the existing set.- values:
Function
- The new evaluators to add
- values:
-
setup(config:
ExtensionConfig
)
Registers extensions from a config object.- config:
ExtensionConfig
- Object with config data
- config:
Details
Use the methods of this service to add extensibility features to your app. You can find further details in the App extensions page.