Interface CharonFacade

  • All Known Implementing Classes:
    CharonFacadeImpl

    public interface CharonFacade
    Facade around charon REST accesses
    • Method Detail

      • createDefaultConfiguration

        CPSConfiguration createDefaultConfiguration​(KBKey kbKey)
        Create default configuration and handle cookies
        Parameters:
        kbKey - key of the knowledgebase
        Returns:
        runtime configuration
      • getExternalConfiguration

        java.lang.String getExternalConfiguration​(java.lang.String configId)
                                           throws ConfigurationEngineException
        Retrieves the external representation for a given runtime configuration
        Parameters:
        configId - id of the runtime configuration
        Returns:
        external representation of the runtime configuration
        Throws:
        ConfigurationEngineException - Service has failed, e.g. because session timed out
      • createConfigurationFromExternal

        @Deprecated(since="1811",
                    forRemoval=true)
        CPSConfiguration createConfigurationFromExternal​(java.lang.String externalConfiguration)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new runtime configuration from the external representation of the configuration
        Parameters:
        externalConfiguration - external representation of the configuration
        Returns:
        runtime configuration based on the external representation
      • releaseSession

        void releaseSession​(java.lang.String configId,
                            java.lang.String version)
        Deletes the session for the specified runtime configuration on the client
        Parameters:
        configId - id of the runtime configuration to be deleted
        version - version of the runtime configuration to be deleted
      • createConfigurationFromExternal

        @Deprecated(since="1811",
                    forRemoval=true)
        CPSConfiguration createConfigurationFromExternal​(CPSExternalConfiguration externalConfigStructured)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new runtime configuration from the external typed representation of the configuration
        Parameters:
        externalConfigStructured - The structured external configuration
        Returns:
        Runtime representation
      • createConfigurationFromExternal

        CPSConfiguration createConfigurationFromExternal​(java.lang.String externalConfiguration,
                                                         java.lang.String contextProduct)
        Creates a new runtime configuration from the external representation of the configuration
        Parameters:
        externalConfiguration - external representation of the configuration
        contextProduct - context product
        Returns:
        runtime configuration based on the external representation
      • createConfigurationFromExternal

        CPSConfiguration createConfigurationFromExternal​(CPSExternalConfiguration externalConfigStructured,
                                                         java.lang.String contextProduct)
        Creates a new runtime configuration from the external typed representation of the configuration
        Parameters:
        externalConfigStructured - structured external configuration
        contextProduct - context product
        Returns:
        Runtime representation