Package com.sun.identity.sm
Class ChoiceValues
- java.lang.Object
-
- com.sun.identity.sm.ChoiceValues
-
- Direct Known Subclasses:
AllConfiguredModuleInstances,AllowedAgents,AllowedModulesChoiceValues,AuditTopicChoiceValues,ConfiguredAuthServices,ConfiguredDiscoveryConfig,ConfiguredIdentityTypes,ConfiguredModuleInstances,ConfiguredSignedElements,ConfiguredSTSConfig,ConfiguredWSCSecurityMech,ConfiguredWSPSecurityMech,JdbcDatabaseTypeChoiceValues,PossibleLocales,ScriptChoiceValues
public abstract class ChoiceValues extends Object
The abstract classChoiceValuesprovides 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 Summary
Constructors Constructor Description ChoiceValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName()Returns the name of the attribute for which the choice values will be returned.NodegetAttributeSchemaNode()Returns the XMLAttributeSchemanode associated with this attributeabstract MapgetChoiceValues()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.MapgetChoiceValues(Map envParams)Returns the choice values for attribute for the given environment parameters.MapgetConfiguredKeyValues()Returns the configured key-value pairs for the class in the service's configuration file
-
-
-
Method Detail
-
getChoiceValues
public abstract Map 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.- Returns:
- choice values for the attribute as a
java.util.Map. Key being the choice and the value being the I18N key
-
getChoiceValues
public Map getChoiceValues(Map envParams)
Returns the choice values for attribute for the given environment parameters. The default implementation calls the interfacegetChoiceValueswithout the parameter. A class extending this class can override this method to return the choice values and their corresponding I18N key, for the attribute.- Parameters:
envParams- environment parameters- Returns:
- choice values for the attribute as a
java.util.Map. Key being the choice and the value being the I18N key
-
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 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 XMLAttributeSchemanode associated with this attribute- Returns:
- XML node of
AttributeSchema
-
-