public abstract class DefaultValues extends Object
DefaultValues
provides a mechanism for
services to obtain their default values 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 default values in the XML configuration file, the
class name must be specified within the XML node
DefaultValuesClassName
.
Constructor and Description |
---|
DefaultValues() |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName()
Returns the name of the attribute for which the default values will be
returned.
|
Node |
getAttributeSchemaNode()
Returns the XML
AttributeSchema node associated with this
attribute |
Map<String,Set<String>> |
getConfiguredKeyValues()
Returns the configured key-value pairs for the class in the service's
configuration file
|
abstract Set<String> |
getDefaultValues()
Abstract method that must be implemented by a class extending this
interface, and should return the default values for the attribute.
|
Set<String> |
getDefaultValues(Map envParams)
Returns a Set of default values for the attribute, given the environment
parameters.
|
public abstract Set<String> getDefaultValues()
java.util.Set
public Set<String> getDefaultValues(Map envParams)
getDefaultValues()
which takes no parameters. The class
extending this class can override this method to take advantage of the
additional environment parameters.java.util.Set
public 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.