org.alfresco.repo.web.scripts.config
Class OpenSearchConfigElement

java.lang.Object
  extended by org.springframework.extensions.config.element.ConfigElementAdapter
      extended by 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

See Also:
Serialized Form

Nested Class Summary
static class OpenSearchConfigElement.EngineConfig
          Inner class representing the configuration of an OpenSearch engine
static class OpenSearchConfigElement.ProxyConfig
          Inner class representing the configuration of the OpenSearch proxy
 
Field Summary
static java.lang.String CONFIG_ELEMENT_ID
           
 
Fields inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
attributes, children, name, value
 
Constructor Summary
OpenSearchConfigElement()
          Default constructor
OpenSearchConfigElement(java.lang.String name)
          Constructor
 
Method Summary
 org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
           
 java.util.List getChildren()
           
 OpenSearchConfigElement.EngineConfig getEngine(java.lang.String proxy)
           
 java.util.Set getEngines()
           
 OpenSearchConfigElement.ProxyConfig getProxy()
          Gets the proxy configuration
 
Methods inherited from class org.springframework.extensions.config.element.ConfigElementAdapter
getAttribute, getAttributeCount, getAttributes, getChild, getChildCount, getChildren, getChildrenMap, getChildValue, getName, getValue, hasAttribute, hasChildren, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_ELEMENT_ID

public static final java.lang.String CONFIG_ELEMENT_ID
See Also:
Constant Field Values
Constructor Detail

OpenSearchConfigElement

public OpenSearchConfigElement()
Default constructor


OpenSearchConfigElement

public OpenSearchConfigElement(java.lang.String name)
Constructor

Parameters:
name - Name of the element this config element represents
Method Detail

getChildren

public java.util.List getChildren()
Specified by:
getChildren in interface org.springframework.extensions.config.ConfigElement
Overrides:
getChildren in class org.springframework.extensions.config.element.ConfigElementAdapter
See Also:
org.alfresco.config.ConfigElement#getChildren()

combine

public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
Specified by:
combine in interface org.springframework.extensions.config.ConfigElement
Specified by:
combine in class org.springframework.extensions.config.element.ConfigElementAdapter
See Also:
org.alfresco.config.ConfigElement#combine(org.alfresco.config.ConfigElement)

getProxy

public OpenSearchConfigElement.ProxyConfig getProxy()
Gets the proxy configuration

Returns:
The proxy configuration

getEngines

public java.util.Set 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)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.