Class ConfigManagement
- java.lang.Object
-
- nl.nn.adapterframework.management.bus.endpoints.BusEndpointBase
-
- nl.nn.adapterframework.management.bus.endpoints.ConfigManagement
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@BusAware("frank-management-bus") @TopicSelector(CONFIGURATION) public class ConfigManagement extends BusEndpointBase
-
-
Field Summary
-
Fields inherited from class nl.nn.adapterframework.management.bus.endpoints.BusEndpointBase
log
-
-
Constructor Summary
Constructors Constructor Description ConfigManagement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteConfiguration(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to delete header version The version of the Configuration to find header datasourceName The name of the datasource where the configurations are located.BinaryResponseMessage
downloadConfiguration(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to download header version The version of the Configuration to find header datasourceName The name of the datasource where the configurations are located.org.springframework.messaging.Message<String>
getConfigurationDetailsByName(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to find header datasourceName The name of the datasource where the configurations are located.org.springframework.messaging.Message<String>
getXMLConfiguration(org.springframework.messaging.Message<?> message)
The header 'loaded' is used to differentiate between the loaded and original (raw) XML.org.springframework.messaging.Message<String>
manageConfiguration(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to manage header version The version of the Configuration to find header activate Whether the configuration should be activated header autoreload Whether the configuration should be reloaded (on the next ReloadJob interval) header datasourceName The name of the datasource where the configurations are located.org.springframework.messaging.Message<String>
uploadConfiguration(org.springframework.messaging.Message<InputStream> message)
-
Methods inherited from class nl.nn.adapterframework.management.bus.endpoints.BusEndpointBase
afterPropertiesSet, createBean, doAfterPropertiesSet, getAdapterByName, getApplicationContext, getBean, getConfigurationByName, getIbisManager, getMediaTypeFromName, getPipeByName, getReceiverByName, log2SecurityLog, setApplicationContext
-
-
-
-
Method Detail
-
getXMLConfiguration
@ActionSelector(GET) public org.springframework.messaging.Message<String> getXMLConfiguration(org.springframework.messaging.Message<?> message)
The header 'loaded' is used to differentiate between the loaded and original (raw) XML.- Returns:
- Configuration XML
-
getConfigurationDetailsByName
@ActionSelector(FIND) public org.springframework.messaging.Message<String> getConfigurationDetailsByName(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to find header datasourceName The name of the datasource where the configurations are located.- Returns:
- If the configuration is of type DatabaseClassLoader, the metadata of the configurations found in the database.
-
manageConfiguration
@ActionSelector(MANAGE) public org.springframework.messaging.Message<String> manageConfiguration(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to manage header version The version of the Configuration to find header activate Whether the configuration should be activated header autoreload Whether the configuration should be reloaded (on the next ReloadJob interval) header datasourceName The name of the datasource where the configurations are located.- Returns:
- Manages a configuration, either activates the config directly or sets the autoreload flag in the database
-
uploadConfiguration
@ActionSelector(UPLOAD) public org.springframework.messaging.Message<String> uploadConfiguration(org.springframework.messaging.Message<InputStream> message)
-
downloadConfiguration
@ActionSelector(DOWNLOAD) public BinaryResponseMessage downloadConfiguration(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to download header version The version of the Configuration to find header datasourceName The name of the datasource where the configurations are located.
-
deleteConfiguration
@ActionSelector(DELETE) public void deleteConfiguration(org.springframework.messaging.Message<?> message)
header configuration The name of the Configuration to delete header version The version of the Configuration to find header datasourceName The name of the datasource where the configurations are located.
-
-