org.jboss.on.plugins.tomcat
Class TomcatUserComponent

java.lang.Object
  extended by org.rhq.plugins.jmx.MBeanResourceComponent<TomcatUserDatabaseComponent>
      extended by org.jboss.on.plugins.tomcat.TomcatUserComponent
All Implemented Interfaces:
AvailabilityFacet, ConfigurationFacet, DeleteResourceFacet, ResourceComponent<TomcatUserDatabaseComponent>, MeasurementFacet, OperationFacet, JMXComponent<TomcatUserDatabaseComponent>

public class TomcatUserComponent
extends MBeanResourceComponent<TomcatUserDatabaseComponent>
implements DeleteResourceFacet

Manage a Tomcat User

Author:
Jay Shaughnessy

Field Summary
static String CONFIG_FULL_NAME
           
static String CONFIG_GROUPS
           
static String CONFIG_PASSWORD
           
static String CONFIG_ROLES
           
static String CONFIG_USERNAME
           
static String PLUGIN_CONFIG_NAME
           
static String RESOURCE_TYPE_NAME
           
 
Fields inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
bean, log, OBJECT_NAME_PROP, PROPERTY_TRANSFORM, resourceContext
 
Fields inherited from interface org.rhq.plugins.jmx.JMXComponent
CREDENTIALS_CONFIG_PROP, PRINCIPAL_CONFIG_PROP
 
Constructor Summary
TomcatUserComponent()
           
 
Method Summary
 void deleteResource()
           
 org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
          Roles and Groups are handled as comma delimited lists and offered up as a String array of object names by the MBean
 void updateResourceConfiguration(ConfigurationUpdateReport report)
           
 
Methods inherited from class org.rhq.plugins.jmx.MBeanResourceComponent
getAttributeName, getAttributeProperty, getAvailability, getBeanProperties, getEmsBean, getEmsConnection, getPropertyValueAsType, getResourceContext, getValues, getValues, invokeOperation, invokeOperation, loadBean, loadBean, lookupAttributeProperty, setEmsBean, setResourceContext, start, stop, transformBeanName, updateResourceConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FULL_NAME

public static final String CONFIG_FULL_NAME
See Also:
Constant Field Values

CONFIG_GROUPS

public static final String CONFIG_GROUPS
See Also:
Constant Field Values

CONFIG_PASSWORD

public static final String CONFIG_PASSWORD
See Also:
Constant Field Values

CONFIG_ROLES

public static final String CONFIG_ROLES
See Also:
Constant Field Values

CONFIG_USERNAME

public static final String CONFIG_USERNAME
See Also:
Constant Field Values

PLUGIN_CONFIG_NAME

public static final String PLUGIN_CONFIG_NAME
See Also:
Constant Field Values

RESOURCE_TYPE_NAME

public static final String RESOURCE_TYPE_NAME
See Also:
Constant Field Values
Constructor Detail

TomcatUserComponent

public TomcatUserComponent()
Method Detail

loadResourceConfiguration

public org.rhq.core.domain.configuration.Configuration loadResourceConfiguration()
Roles and Groups are handled as comma delimited lists and offered up as a String array of object names by the MBean

Specified by:
loadResourceConfiguration in interface ConfigurationFacet
Overrides:
loadResourceConfiguration in class MBeanResourceComponent<TomcatUserDatabaseComponent>

updateResourceConfiguration

public void updateResourceConfiguration(ConfigurationUpdateReport report)
Specified by:
updateResourceConfiguration in interface ConfigurationFacet
Overrides:
updateResourceConfiguration in class MBeanResourceComponent<TomcatUserDatabaseComponent>

deleteResource

public void deleteResource()
                    throws Exception
Specified by:
deleteResource in interface DeleteResourceFacet
Throws:
Exception


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.