public abstract class ChoiceValues extends Object
ChoiceValues
provides a mechanism for
services to provide choice values for attributes dynamically instead of being
statically defined in the service XML file stored in the directory.
An implementation of this class must be specified in the service
configuration XML file in the definition of the respective attribute schema.
Instead of providing the choice values in the XML configuration file, the
class name must be specified within the XML node
ChoiceValuesClassName
.
Constructor and Description |
---|
ChoiceValues() |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName()
Returns the name of the attribute for which the choice values will be
returned.
|
Node |
getAttributeSchemaNode()
Returns the XML
AttributeSchema node associated with this
attribute |
abstract Map<String,String> |
getChoiceValues()
Abstract method that must be implemented by a class extending this class,
and should return the choice values and their corresponding I18N key, for
the attribute.
|
Map<String,String> |
getChoiceValues(Map<String,Object> envParams)
Returns the choice values for attribute for the given environment
parameters.
|
Map<String,Set<String>> |
getConfiguredKeyValues()
Returns the configured key-value pairs for the class in the service's
configuration file
|
public abstract Map<String,String> getChoiceValues()
java.util.Map
.
Key being the choice and the value being the I18N keypublic Map<String,String> getChoiceValues(Map<String,Object> envParams)
getChoiceValues
without the parameter. A class extending
this class can override this method to return the choice values and their
corresponding I18N key, for the attribute.envParams
- environment parametersjava.util.Map
.
Key being the choice and the value being the I18N keypublic final String getAttributeName()
public final Map<String,Set<String>> getConfiguredKeyValues()
public final Node getAttributeSchemaNode()
AttributeSchema
node associated with this
attributeAttributeSchema
Copyright © 2010-2018, ForgeRock All Rights Reserved.