Package com.sun.identity.sm
Class ChoiceValues
- java.lang.Object
-
- com.sun.identity.sm.ChoiceValues
-
- All Implemented Interfaces:
ChoiceValues
- Direct Known Subclasses:
SecretIdChoiceValues
@SupportedAll public abstract class ChoiceValues extends Object implements ChoiceValues
The abstract classChoiceValues
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
Fields Modifier and Type Field Description static String
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
-
Constructor Summary
Constructors Constructor Description ChoiceValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttributeName()
Returns the name of the attribute for which the choice values will be returned.Node
getAttributeSchemaNode()
Returns the XMLAttributeSchema
node associated with this attributeMap<String,Set<String>>
getConfiguredKeyValues()
Returns the configured key-value pairs for the class in the service's configuration file-
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 Detail
-
EMPTY_SCRIPT_SELECTION
public static final String 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:
- Constant Field Values
-
-
Method Detail
-
getAttributeName
public final String 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
public final Map<String,Set<String>> 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
public final Node getAttributeSchemaNode()
Returns the XMLAttributeSchema
node associated with this attribute- Returns:
- XML node of
AttributeSchema
-
-