Class OpenSearchConfigElement
- java.lang.Object
-
- org.springframework.extensions.config.element.ConfigElementAdapter
-
- org.alfresco.repo.web.scripts.config.OpenSearchConfigElement
-
- All Implemented Interfaces:
java.io.Serializable
,org.springframework.extensions.config.ConfigElement
public class OpenSearchConfigElement extends org.springframework.extensions.config.element.ConfigElementAdapter
Custom config element that represents the config data for open search- Author:
- davidc
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenSearchConfigElement.EngineConfig
Inner class representing the configuration of an OpenSearch enginestatic class
OpenSearchConfigElement.ProxyConfig
Inner class representing the configuration of the OpenSearch proxy
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONFIG_ELEMENT_ID
-
Constructor Summary
Constructors Constructor Description OpenSearchConfigElement()
Default constructorOpenSearchConfigElement(java.lang.String name)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.extensions.config.ConfigElement
combine(org.springframework.extensions.config.ConfigElement configElement)
java.util.List<org.springframework.extensions.config.ConfigElement>
getChildren()
OpenSearchConfigElement.EngineConfig
getEngine(java.lang.String proxy)
java.util.Set<OpenSearchConfigElement.EngineConfig>
getEngines()
OpenSearchConfigElement.ProxyConfig
getProxy()
Gets the proxy configuration
-
-
-
Field Detail
-
CONFIG_ELEMENT_ID
public static final java.lang.String CONFIG_ELEMENT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChildren
public java.util.List<org.springframework.extensions.config.ConfigElement> getChildren()
- Specified by:
getChildren
in interfaceorg.springframework.extensions.config.ConfigElement
- Overrides:
getChildren
in classorg.springframework.extensions.config.element.ConfigElementAdapter
- See Also:
ConfigElement.getChildren()
-
combine
public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
- Specified by:
combine
in interfaceorg.springframework.extensions.config.ConfigElement
- Specified by:
combine
in classorg.springframework.extensions.config.element.ConfigElementAdapter
- See Also:
ConfigElement.combine(ConfigElement)
-
getProxy
public OpenSearchConfigElement.ProxyConfig getProxy()
Gets the proxy configuration- Returns:
- The proxy configuration
-
getEngines
public java.util.Set<OpenSearchConfigElement.EngineConfig> getEngines()
- Returns:
- Returns a set of the engines
-
getEngine
public OpenSearchConfigElement.EngineConfig getEngine(java.lang.String proxy)
- Parameters:
proxy
- name of engine proxy- Returns:
- associated engine config (or null, if none registered against proxy)
-
-