public final class AttributeTypeHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOG
A logger for this class
|
| Modifier | Constructor and Description |
|---|---|
private |
AttributeTypeHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addToRegistries(MutableAttributeType attributeType,
List<Throwable> errors,
Registries registries)
Inject the AttributeType into the Registries, updating the references to
other SchemaObject
If one of the referenced SchemaObject does not exist (SUP, EQUALITY, ORDERING, SUBSTR, SYNTAX),
an exception is thrown.
|
private static void |
buildEquality(MutableAttributeType attributeType,
List<Throwable> errors,
Registries registries)
Build the EQUALITY MR reference for an AttributeType
|
private static void |
buildOrdering(MutableAttributeType attributeType,
List<Throwable> errors,
Registries registries)
Build the ORDERING MR reference for an AttributeType
|
private static void |
buildSubstring(MutableAttributeType attributeType,
List<Throwable> errors,
Registries registries)
Build the SUBSTR MR reference for an AttributeType
|
private static boolean |
buildSuperior(MutableAttributeType attributeType,
List<Throwable> errors,
Registries registries)
Build the Superior AttributeType reference for an AttributeType
|
private static void |
buildSyntax(MutableAttributeType attributeType,
List<Throwable> errors,
Registries registries)
Build the SYNTAX reference for an AttributeType
|
private static void |
checkCollective(MutableAttributeType attributeType,
List<Throwable> errors)
Check the constraints for the Collective field.
|
private static void |
checkUsage(AttributeType attributeType,
List<Throwable> errors)
Check the constraints for the Usage field.
|
static void |
removeFromRegistries(AttributeType attributeType,
List<Throwable> errors,
Registries registries)
Remove the AttributeType from the registries, updating the references to
other SchemaObject.
|
public static void addToRegistries(MutableAttributeType attributeType, List<Throwable> errors, Registries registries) throws LdapException
attributeType - The AttributeType to add to the Registrieserrors - The errors we got while adding the AttributeType to the Registriesregistries - The RegistriesLdapException - If the AttributeType is not validprivate static boolean buildSuperior(MutableAttributeType attributeType, List<Throwable> errors, Registries registries)
private static void buildSyntax(MutableAttributeType attributeType, List<Throwable> errors, Registries registries)
private static void buildEquality(MutableAttributeType attributeType, List<Throwable> errors, Registries registries)
private static void buildSubstring(MutableAttributeType attributeType, List<Throwable> errors, Registries registries)
private static void buildOrdering(MutableAttributeType attributeType, List<Throwable> errors, Registries registries)
private static void checkUsage(AttributeType attributeType, List<Throwable> errors)
private static void checkCollective(MutableAttributeType attributeType, List<Throwable> errors)
public static void removeFromRegistries(AttributeType attributeType, List<Throwable> errors, Registries registries) throws LdapException
attributeType - The AttributeType to remove from the Registrieserrors - The errors we got while removing the AttributeType from the Registriesregistries - The RegistriesLdapException - If the AttributeType is not validCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.