public class JMSSecurityConfigAdapter extends AbstractPropertyListAdapter
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> | Constructor and Description |
|---|
JMSSecurityConfigAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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. |
convertToPropertypublic 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)
PropertyAdapterProperty 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).propertyList - the property to be convertedpropertyDefinitionList - the property's definitionmetaType - the type of MetaValue that should be created and returnedpublic void populateMetaValueFromProperty(org.rhq.core.domain.configuration.PropertyList propertyList,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList)
PropertyAdapterProperty 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.propertyList - the property to be copiedmetaValue - the MetaValue to be populated; should not be nullpropertyDefinitionList - the property's definitionpublic void populatePropertyFromMetaValue(org.rhq.core.domain.configuration.PropertyList propertyList,
org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propertyDefinitionList)
PropertyAdapterProperty 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.propertyList - the property to be populated; should not be nullmetaValue - the MetaValue to be copiedpropertyDefinitionList - the property's definitionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.