public class AbstractMessagingConfigurationEditor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ATTRIBUTE |
protected String |
code |
protected org.rhq.core.domain.configuration.Configuration |
config
Configuration object for the resource.
|
protected CreateResourceReport |
createReport |
protected static String |
DEPENDS |
protected File |
deploymentFile
File object of the XML file that will store the resource's configuration values.
|
protected static org.apache.commons.logging.Log |
LOG |
protected org.jdom.Element |
root
Root Element of the XML File.
|
protected String |
rootElementString
Root Element of the xml file.
|
protected String |
securityConfig |
protected String |
type
Holds the type of JMS
|
protected ConfigurationUpdateReport |
updateReport |
| Constructor and Description |
|---|
AbstractMessagingConfigurationEditor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNameAttributeToMBeanElement(org.jdom.Element mbeanElement,
String name) |
protected void |
bindSimplePropertiesToConfiguration(String[] properties,
String elementName,
String attributeName,
org.jdom.Element componentElement) |
protected void |
bindSimplePropertiesToXML(String elementName,
String attributeName,
org.jdom.Element componentElement)
Takes the child elements of the componentElement and loops through them to find the particular property via the
looped elements attribute and creates the PropertySimple objects to attach to the @see Configuration object
|
void |
deleteComponent(File deploymentFile,
String name) |
protected org.jdom.Element |
findComponentElement(String name)
Finds the main Element object that holds all the configuration for the particular component.
|
protected org.jdom.Element |
findSecurityConf(org.jdom.Element componentElement)
Gets the Element for the component that holds the Security Confs for Roles.
|
protected String |
getNameProperty() |
String |
getRootElementString()
Getter method
|
String |
getType()
Getter method
|
org.rhq.core.domain.configuration.Configuration |
loadConfiguration(File file,
String name) |
protected void |
loadNameProperty(org.jdom.Element mbeanElement) |
void |
setRootElementString(String rootElement)
Setter method
|
void |
setType(String type)
Setter method
|
protected void |
updateFile(org.jdom.Document doc)
Updates the file.
|
protected void |
updateIfNameChanged(org.jdom.Element mbeanElement) |
protected static final org.apache.commons.logging.Log LOG
protected static final String DEPENDS
protected String type
protected String code
protected String rootElementString
protected org.jdom.Element root
protected org.rhq.core.domain.configuration.Configuration config
objectsprotected CreateResourceReport createReport
protected ConfigurationUpdateReport updateReport
protected File deploymentFile
protected String securityConfig
protected static final String ATTRIBUTE
public AbstractMessagingConfigurationEditor()
protected void bindSimplePropertiesToXML(String elementName, String attributeName, org.jdom.Element componentElement)
elementName - String representing the type of Element to get.attributeName - What is the property name to find within the childrencomponentElement - Element representing this Topic or Queueprotected void bindSimplePropertiesToConfiguration(String[] properties, String elementName, String attributeName, org.jdom.Element componentElement)
protected org.jdom.Element findComponentElement(String name)
name - String Topic or Queue nameprotected org.jdom.Element findSecurityConf(org.jdom.Element componentElement)
componentElement - components main Elementprotected void loadNameProperty(org.jdom.Element mbeanElement)
protected String getNameProperty()
protected void updateIfNameChanged(org.jdom.Element mbeanElement)
protected void addNameAttributeToMBeanElement(org.jdom.Element mbeanElement,
String name)
protected void updateFile(org.jdom.Document doc)
throws org.jdom.JDOMException,
IOException
doc - JDom Document object for the fileorg.jdom.JDOMException - If JDOM cannot process the Document objectIOException - If there is an exception when dealing with the File object.public String getRootElementString()
public void setRootElementString(String rootElement)
rootElement - root element name. i.e. "datasources"public String getType()
public void setType(String type)
type - component type. i.e. "local-tx-datasource"Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.