org.rhq.plugins.jbossas5.adapter.impl.configuration.custom
Class JMSSecurityConfigAdapter
java.lang.Object
org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyListAdapter
org.rhq.plugins.jbossas5.adapter.impl.configuration.custom.JMSSecurityConfigAdapter
- All Implemented Interfaces:
- PropertyAdapter<org.rhq.core.domain.configuration.PropertyList,org.rhq.core.domain.configuration.definition.PropertyDefinitionList>
public class JMSSecurityConfigAdapter
- extends AbstractPropertyListAdapter
This class provides code that maps back and forth between a PropertyList of PropertyMaps and a MapCompositeValueSupport with the key being a JMS security role name and the value being a CompositeValueSupports representing the role's read/write/create permissions. Here's what the PropertyList looks
like:
<c:list-property name="securityConfig" min="2" max="4" displayName="Security Configurations"
description="This element specifies a XML fragment which describes the access control list to be used by the
SecurityManager to authorize client operations against the destination. The content model is the same as for the
SecurityManager SecurityConf attribute."> <c:map-property name="role" displayName="Security Configuration
Attributes" description="These are the attributes that define the role name, and if the role is allowed to read,
write or create Messages on this Queue."> <c:simple-property name="name" description="Name of the Security
Role. e.g. Guest" summary="true" required="true"/> <c:simple-property name="read" description="Is this role
allowed to read messages?" summary="true" required="false" type="boolean"/> <c:simple-property name="write"
description="Is this role allowed to write messages?" summary="true" required="false" type="boolean"/>
<c:simple-property name="create" description="Is this role allowed to create messages?" summary="true"
required="false" type="boolean"/> </c:map-property> </c:list-property>
- Author:
- Ian Springer
|
Method Summary |
org.jboss.metatype.api.values.MetaValue |
convertToMetaValue(org.rhq.core.domain.configuration.PropertyList propertyList,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList,
org.jboss.metatype.api.types.MetaType metaType)
Given a Property and its PropertyDefinition, create and return a corresponding MetaValue
with the specified MetaType. |
void |
populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertyList propertyList,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList)
Given a Property and its PropertyDefinition, as well as a MetaValue, populate that
MetaValue so it corresponds to the Property. |
void |
populatePropertyFromMetaValue(org.rhq.core.domain.configuration.PropertyList propertyList,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList)
Given a Property and its PropertyDefinition, as well as a MetaValue, populate the
Property so it corresponds to the MetaValue. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMSSecurityConfigAdapter
public JMSSecurityConfigAdapter()
convertToMetaValue
public org.jboss.metatype.api.values.MetaValue convertToMetaValue(org.rhq.core.domain.configuration.PropertyList propertyList,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList,
org.jboss.metatype.api.types.MetaType metaType)
- Description copied from interface:
PropertyAdapter
- Given a
Property and its PropertyDefinition, create and return a corresponding MetaValue
with the specified MetaType. If the Property is a list or a map, all descendant Property's should be
represented as descendants of the returned MetaValue. Generally this method can simply create an empty MetaValue
object and then delegate the population of the guts of the object to PropertyAdapter.populateMetaValueFromProperty(Property,
MetaValue, PropertyDefinition).
- Parameters:
propertyList - the property to be convertedpropertyDefinitionList - the property's definitionmetaType - the type of MetaValue that should be created and returned
- Returns:
- the MetaValue representation of the given Property
populateMetaValueFromProperty
public void populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertyList propertyList,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList)
- Description copied from interface:
PropertyAdapter
- Given a
Property and its PropertyDefinition, as well as a MetaValue, populate that
MetaValue so it corresponds to the Property. If the Property is a list or a map, all descendant Property's should
be added as descendants of the MetaValue.
- Parameters:
propertyList - the property to be copiedmetaValue - the MetaValue to be populated; should not be nullpropertyDefinitionList - the property's definition
populatePropertyFromMetaValue
public void populatePropertyFromMetaValue(org.rhq.core.domain.configuration.PropertyList propertyList,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList)
- Description copied from interface:
PropertyAdapter
- Given a
Property and its PropertyDefinition, as well as a MetaValue, populate the
Property so it corresponds to the MetaValue. If the MetaValue is a from of list or map, all descendant
MetaValue's should be added as descendants of the Property.
- Parameters:
propertyList - the property to be populated; should not be nullmetaValue - the MetaValue to be copiedpropertyDefinitionList - the property's definition
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.