Class ConfigManagement
java.lang.Object
org.frankframework.management.bus.endpoints.BusEndpointBase
org.frankframework.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 org.frankframework.management.bus.endpoints.BusEndpointBase
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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 org.frankframework.management.bus.endpoints.BusEndpointBase
afterPropertiesSet, createBean, doAfterPropertiesSet, getAdapterByName, getApplicationContext, getBean, getConfigurationByName, getIbisManager, getMediaTypeFromName, getPipeByName, getReceiverByName, log2SecurityLog, setApplicationContext
-
Constructor Details
-
ConfigManagement
public ConfigManagement()
-
-
Method Details
-
getXMLConfiguration
@ActionSelector(GET) @RolesAllowed({"IbisObserver","IbisDataAdmin","IbisAdmin","IbisTester"}) 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) @RolesAllowed({"IbisObserver","IbisDataAdmin","IbisAdmin","IbisTester"}) 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) @RolesAllowed({"IbisTester","IbisAdmin","IbisDataAdmin"}) 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) @RolesAllowed({"IbisTester","IbisAdmin","IbisDataAdmin"}) public org.springframework.messaging.Message<String> uploadConfiguration(org.springframework.messaging.Message<InputStream> message) -
downloadConfiguration
@ActionSelector(DOWNLOAD) @RolesAllowed({"IbisObserver","IbisDataAdmin","IbisAdmin","IbisTester"}) public BinaryMessage downloadConfiguration(org.springframework.messaging.Message<?> message) throws IOException 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.- Throws:
IOException
-
deleteConfiguration
@ActionSelector(DELETE) @RolesAllowed({"IbisDataAdmin","IbisAdmin","IbisTester"}) 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.
-