Package com.sun.identity.sm
Class ChoiceValues
java.lang.Object
com.sun.identity.sm.ChoiceValues
- All Implemented Interfaces:
ChoiceValues
- Direct Known Subclasses:
SecretIdChoiceValues
The abstract class
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
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Constant key string for the "Please select from the list" value populated in the combo box on the UI amongst the available valid choices -
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.forgerock.am.config.ChoiceValues
getChoiceValues, getChoiceValues
-
Field Details
-
EMPTY_SCRIPT_SELECTION
Constant key string for the "Please select from the list" value populated in the combo box on the UI amongst the available valid choices- See Also:
-
-
Constructor Details
-
ChoiceValues
public ChoiceValues()
-
-
Method Details
-
getAttributeName
Returns the name of the attribute for which the choice values will be returned.- Returns:
- the name of attribute for which the choice values are returned
-
getConfiguredKeyValues
Returns the configured key-value pairs for the class in the service's configuration file- Returns:
- key-value pairs configured for this class in the service schema XML file
-
getAttributeSchemaNode
Returns the XMLAttributeSchema
node associated with this attribute- Returns:
- XML node of
AttributeSchema
-