public class DirectoryStringSyntax extends AttributeSyntax<DirectoryStringAttributeSyntaxCfg> implements ConfigurationChangeListener<DirectoryStringAttributeSyntaxCfg>
| Constructor and Description |
|---|
DirectoryStringSyntax()
Creates a new instance of this syntax.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowZeroLengthValues()
Indicates whether zero-length values will be allowed.
|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(DirectoryStringAttributeSyntaxCfg configuration)
Applies the configuration changes to this change listener.
|
void |
finalizeSyntax()
Performs any finalization that may be necessary for this
attribute syntax.
|
String |
getDescription()
Retrieves a description for this attribute syntax.
|
String |
getName()
Retrieves the common name for this attribute syntax.
|
String |
getOID()
Retrieves the OID for this attribute syntax.
|
org.forgerock.opendj.ldap.schema.Syntax |
getSDKSyntax(org.forgerock.opendj.ldap.schema.Schema schema)
Returns the SDK Syntax equivalent to this syntax.
|
void |
initializeSyntax(DirectoryStringAttributeSyntaxCfg configuration,
ServerContext serverContext)
Initializes this attribute syntax based on the information in the provided configuration entry.
|
boolean |
isConfigurationChangeAcceptable(DirectoryStringAttributeSyntaxCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is
acceptable to this change listener.
|
equals, getApproximateMatchingRule, getEqualityMatchingRule, getOrderingMatchingRule, getSubstringMatchingRule, hashCode, isBEREncodingRequired, isConfigurationAcceptable, isHumanReadable, toString, toString, valueIsAcceptablepublic DirectoryStringSyntax()
initializeSyntax method.public void initializeSyntax(DirectoryStringAttributeSyntaxCfg configuration, ServerContext serverContext) throws org.forgerock.opendj.config.server.ConfigException, DirectoryException
AttributeSyntaxinitializeSyntax in class AttributeSyntax<DirectoryStringAttributeSyntaxCfg>configuration - The configuration to use to initialize this attribute syntax.serverContext - The server context.org.forgerock.opendj.config.server.ConfigException - If an unrecoverable problem arises in the process of performing the initialization.DirectoryException - If an unrecoverable problem arises in the process of performing the initialization.public org.forgerock.opendj.ldap.schema.Syntax getSDKSyntax(org.forgerock.opendj.ldap.schema.Schema schema)
AttributeSyntaxThis method allow smooth migration to SDK syntax. It will disappear once the the migration to SDK schema is complete, together with this class and all its implementation.
getSDKSyntax in class AttributeSyntax<DirectoryStringAttributeSyntaxCfg>schema - Schema to use to retrieve the syntaxpublic void finalizeSyntax()
AttributeSyntaxfinalizeSyntax in class AttributeSyntax<DirectoryStringAttributeSyntaxCfg>public String getName()
AttributeSyntaxgetName in class AttributeSyntax<DirectoryStringAttributeSyntaxCfg>public String getOID()
AttributeSyntaxgetOID in class AttributeSyntax<DirectoryStringAttributeSyntaxCfg>public String getDescription()
AttributeSyntaxgetDescription in class AttributeSyntax<DirectoryStringAttributeSyntaxCfg>public boolean allowZeroLengthValues()
true if zero-length values should be allowed for
attributes with a directory string syntax, or false
if not.public boolean isConfigurationChangeAcceptable(DirectoryStringAttributeSyntaxCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListenerisConfigurationChangeAcceptable in interface ConfigurationChangeListener<DirectoryStringAttributeSyntaxCfg>configuration - The new configuration containing the changes.unacceptableReasons - A list that can be used to hold messages about why the
provided configuration is not acceptable.true if the proposed change is
acceptable, or false if it is not.public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(DirectoryStringAttributeSyntaxCfg configuration)
ConfigurationChangeListenerapplyConfigurationChange in interface ConfigurationChangeListener<DirectoryStringAttributeSyntaxCfg>configuration - The new configuration containing the changes.Copyright © 2010-2018 ForgeRock AS. All Rights Reserved.