alfresco-ng2-components/docs/content-services/services/extension-manager.service.md
2025-04-04 15:38:28 +05:30

4.7 KiB

Title, Added, Status, Last reviewed
Title Added Status Last reviewed
Extension Manager service v2.0.0 Active 2025-04-04

Extension Manager service

Implements the functionalities related to Extension Management

Class members

Methods

  • getPluginInfo(nodeEntry: Observable<ExtensionInfoModel>): boolean
    Fetches the extension configuration from a running application
    • instanceUrl: string - URL of the running application
    • Returns Observable<ExtensionInfoModel> - Observable emitting the extension configuration for the application
  • getSavedPluginState(key: string): Observable<ExtensionCompositionEntry>
    Fetches the saved extension configuration from the database
    • instanceId: string - Unique id under which the extension configuration is saved
    • Returns Observable<ExtensionCompositionEntry> - Observable emitting the saved extension state
  • getDefaultPluginState(instanceUrl: string: Observable<AppConfigPluginRef>
    Fetches the states of plugins from a running application
    • instanceUrl: string - URL of the running application
    • Returns Observable<AppConfigPluginRef> - Observable emitting the plugin state of a running application
  • publishExtensionConfig(key: string, pluginConfig: ExtensionComposition): Observable<void>
    Publishes the extensions configuration to the database
    • instanceId: string - Id to use to identify the application
    • pluginConfig: ExtensionComposition - The extension configuration to be saved
    • Returns Observable<void> - Observable emitting no value

Details

This service provides methods necessary to publish and fetch extensions configuration

Models

ExtensionCompositionEntry

Properties

Name Type
entry ExtensionComposition

ExtensionComposition

Properties

Name Type
appConfig AppConfigPluginRef
rules RuleRef[]
routes RouteRef[]
actions ActionRef[]
features [key: string]: any

ExtensionInfoModel

Properties

Name Type
$id string
$name string
$version string
$vendor string
$license string
$description string
$dependencies Array
$$compatibilities Array
extensionId string
appConfig AppConfigPluginRef
rules RuleRef[]
routes RouteRef[]
actions ActionRef[]
features [key: string]: any

AppConfigPluginRef

Properties

Name Type
plugins { [key: string]: boolean }