Class ConfigManagerRestServiceImpl
- java.lang.Object
-
- org.opennms.features.config.rest.impl.ConfigManagerRestServiceImpl
-
- All Implemented Interfaces:
ConfigManagerRestService
public class ConfigManagerRestServiceImpl extends Object implements ConfigManagerRestService
Currently for testing OSGI integration
-
-
Field Summary
Fields Modifier and Type Field Description static String
MESSAGE_TAG
-
Constructor Summary
Constructors Constructor Description ConfigManagerRestServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
addConfig(String configName, String configId, String jsonStr)
add new config byjavax.ws.rs.core.Response
deleteConfig(String configName, String configId)
delete config by configName and configIdjavax.ws.rs.core.Response
getAllOpenApiSchema(String acceptType, javax.servlet.http.HttpServletRequest request)
javax.ws.rs.core.Response
getConfig(String configName, String configId)
get config by configName and configIdjavax.ws.rs.core.Response
getConfigIds(String configName)
get configIdsjavax.ws.rs.core.Response
getOpenApiSchema(String configName, String acceptType, javax.servlet.http.HttpServletRequest request)
get filtered OpenApi schemajavax.ws.rs.core.Response
listConfigs()
list registered configNamesvoid
setConfigurationManagerService(ConfigurationManagerService configurationManagerService)
javax.ws.rs.core.Response
updateConfig(String configName, String configId, boolean isReplace, String jsonStr)
-
-
-
Field Detail
-
MESSAGE_TAG
public static final String MESSAGE_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
setConfigurationManagerService
public void setConfigurationManagerService(ConfigurationManagerService configurationManagerService)
-
getAllOpenApiSchema
public javax.ws.rs.core.Response getAllOpenApiSchema(String acceptType, javax.servlet.http.HttpServletRequest request)
- Specified by:
getAllOpenApiSchema
in interfaceConfigManagerRestService
-
getOpenApiSchema
public javax.ws.rs.core.Response getOpenApiSchema(String configName, String acceptType, javax.servlet.http.HttpServletRequest request)
Description copied from interface:ConfigManagerRestService
get filtered OpenApi schema- Specified by:
getOpenApiSchema
in interfaceConfigManagerRestService
- Returns:
-
getConfigIds
public javax.ws.rs.core.Response getConfigIds(String configName)
Description copied from interface:ConfigManagerRestService
get configIds- Specified by:
getConfigIds
in interfaceConfigManagerRestService
- Returns:
-
getConfig
public javax.ws.rs.core.Response getConfig(String configName, String configId)
Description copied from interface:ConfigManagerRestService
get config by configName and configId- Specified by:
getConfig
in interfaceConfigManagerRestService
- Returns:
-
addConfig
public javax.ws.rs.core.Response addConfig(String configName, String configId, String jsonStr)
Description copied from interface:ConfigManagerRestService
add new config by- Specified by:
addConfig
in interfaceConfigManagerRestService
- Returns:
-
updateConfig
public javax.ws.rs.core.Response updateConfig(String configName, String configId, boolean isReplace, String jsonStr)
- Specified by:
updateConfig
in interfaceConfigManagerRestService
- Returns:
-
deleteConfig
public javax.ws.rs.core.Response deleteConfig(String configName, String configId)
Description copied from interface:ConfigManagerRestService
delete config by configName and configId- Specified by:
deleteConfig
in interfaceConfigManagerRestService
- Returns:
-
listConfigs
public javax.ws.rs.core.Response listConfigs()
Description copied from interface:ConfigManagerRestService
list registered configNames- Specified by:
listConfigs
in interfaceConfigManagerRestService
- Returns:
-
-