Manages and runs basic extension functionality.
evaluateRule(ruleId: string, context?: RuleContext): boolean
Evaluates a rule.
string - ID of the rule to evaluateRuleContext - (Optional) Custom rule execution context.boolean - True if the rule passed, false otherwisegetActionById(id: string): ActionRef
Retrieves an action using its ID value.
string - The ID value to look forActionRef - Action or null if not foundgetAuthGuards(ids: string[]): Array<Type<any>>
Retrieves one or more auth guards using an array of ID values.
string[] - Array of ID value to look forArray<Type<any>> - Array of auth guards or empty array if none were foundgetComponentById(id: string): Type<>
Retrieves a registered extension component using its ID value.
string - The ID value to look forType<> - The component or null if not foundgetElements(key: string, fallback: Array<> = []): Array<>
string - Array<> - Array<> - getEvaluator(key: string): RuleEvaluator
Retrieves a RuleEvaluator function using its key name.
string - Key name to look forRuleEvaluator - RuleEvaluator or null if not foundgetFeature(key: string|string[], defaultValue: any = [])
Gets features by key.
string|string[] - Key string using dot notation or array of stringsany - Default value returned if feature is not found, default is empty arraygetRouteById(id: string): RouteRef
Retrieves a route using its ID value.
string - The ID value to look forRouteRef - The route or null if not foundgetRuleById(id: string): RuleRef
Retrieves a rule using its ID value.
string - The ID value to look forRuleRef - The rule or null if not foundload(): Promise<ExtensionConfig>
Loads and registers an extension config file and plugins (specified by path properties).
Promise<ExtensionConfig> - The loaded config datarunExpression(value: string|any, context?: any): any
Runs a lightweight expression stored in a string.
string|any - String containing the expression or literal valueany - (Optional) Parameter object for the expression with details of app stateany - Result of evaluated expression, if found, or the literal value otherwisesetAuthGuards(values: Function)
Adds one or more new auth guards to the existing set.
Function - The new auth guards to addsetComponents(values: Function)
Adds one or more new components to the existing set.
Function - The new components to addsetEvaluators(values: Function)
Adds one or more new rule evaluators to the existing set.
Function - The new evaluators to addsetup(config: ExtensionConfig)
Registers extensions from a config object.
ExtensionConfig - Object with config dataUse the methods of this service to add extensibility features to your app. You can find further details in the App extensions page.
© 2023 Alfresco Software, Inc. All Rights Reserved.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.