Service used to change a component configuration of an app programmatically. The service is available via interface name ct.framework.api.ConfigurationAdmin.

interface ConfigAdminService {
    createFactoryConfiguration(
        factoryPersistentIdentifier: string,
    ): Configuration;
    getConfiguration(persistentIdentifier: string): Configuration;
    getFactoryConfigurations(
        factoryPersistentIdentifier: string,
    ): Configuration[];
    save(): Promise<void>;
}

Methods

  • Creates a configuration for a factory component.

    Parameters

    • factoryPersistentIdentifier: string

      Identifier for the factory component.

    Returns Configuration

  • Get the current configuration of component.

    Parameters

    • persistentIdentifier: string

      Identifier for the component.

    Returns Configuration

  • Reads all factory configuration instance entries.

    Parameters

    • factoryPersistentIdentifier: string

      Identifier for the factory component.

    Returns Configuration[]

  • Permanently store configuration changes with the app configuration.

    Returns Promise<void>