Class AIConfigurationServiceImpl

  • All Implemented Interfaces:
    AIConfigurationService

    public class AIConfigurationServiceImpl
    extends Object
    implements AIConfigurationService
    Collects the configurations from AIConfigurationPlugins and aggregates them.

    The primary responsibility of this class is to determine which AI services are allowed based on various parameters such as:

    • The user or user group making the request.
    • The content path being accessed or edited.
    • The URL of the editor in the browser.

    The configurations are defined as OSGI configurations and can be dynamically modified at runtime. Each configuration specifies:

    • Allowed and denied users or user groups.
    • Allowed and denied content paths.
    • Allowed and denied views (based on the URL).
    • The specific AI services that the configuration applies to.

    When determining the allowed services, this implementation checks all the available configurations and aggregates the results. A service is considered allowed if it matches any of the "allowed" regular expressions and does not match any of the "denied" regular expressions.

    See Also:
    AIConfigurationPlugin, GPTPermissionConfiguration