Interface CharonFacade
-
- All Known Implementing Classes:
CharonFacadeImpl
public interface CharonFacadeFacade around charon REST accesses
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CPSConfigurationcreateConfigurationFromExternal(CPSExternalConfiguration externalConfigStructured)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - usecreateConfigurationFromExternal(CPSExternalConfiguration, String)CPSConfigurationcreateConfigurationFromExternal(CPSExternalConfiguration externalConfigStructured, java.lang.String contextProduct)Creates a new runtime configuration from the external typed representation of the configurationCPSConfigurationcreateConfigurationFromExternal(java.lang.String externalConfiguration)Deprecated, for removal: This API element is subject to removal in a future version.since 18.11.0 - usecreateConfigurationFromExternal(String, String)CPSConfigurationcreateConfigurationFromExternal(java.lang.String externalConfiguration, java.lang.String contextProduct)Creates a new runtime configuration from the external representation of the configurationCPSConfigurationcreateDefaultConfiguration(KBKey kbKey)Create default configuration and handle cookiesCPSConfigurationgetConfiguration(java.lang.String configId)Gets configuration, sends cookies along with request.java.lang.StringgetExternalConfiguration(java.lang.String configId)Retrieves the external representation for a given runtime configurationvoidreleaseSession(java.lang.String configId, java.lang.String version)Deletes the session for the specified runtime configuration on the clientjava.lang.StringupdateConfiguration(CPSConfiguration configuration)Updates configuration, sends cookies along with request.
-
-
-
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 ConfigurationEngineExceptionRetrieves 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.since 18.11.0 - usecreateConfigurationFromExternal(String, String)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 deletedversion- 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.since 18.11.0 - usecreateConfigurationFromExternal(CPSExternalConfiguration, String)Creates a new runtime configuration from the external typed representation of the configuration- Parameters:
externalConfigStructured- The structured external configuration- Returns:
- Runtime representation
-
updateConfiguration
java.lang.String updateConfiguration(CPSConfiguration configuration) throws ConfigurationEngineException
Updates configuration, sends cookies along with request. The cookies are handled internally and received from theCPSResponseAttributeStrategy- Parameters:
configuration- runtime configuration that includes only the updates- Returns:
- version of the updated runtime configuration
- Throws:
ConfigurationEngineException- when service call fails
-
getConfiguration
CPSConfiguration getConfiguration(java.lang.String configId) throws ConfigurationEngineException
Gets configuration, sends cookies along with request. The cookies are handled internally and received from theCPSResponseAttributeStrategy- Parameters:
configId- configuration id- Returns:
- current state of the runtime configuration
- Throws:
ConfigurationEngineException- when service call fails
-
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 configurationcontextProduct- 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 configurationcontextProduct- context product- Returns:
- Runtime representation
-
-