public class SchemaEntityFactory extends Object implements EntityFactory
| Constructor and Description |
|---|
SchemaEntityFactory()
Instantiates a new schema entity factory.
|
| Modifier and Type | Method and Description |
|---|---|
AttributeType |
getAttributeType(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName)
Construct an AttributeType from an entry representing an AttributeType.
|
LdapComparator<?> |
getLdapComparator(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName)
Retrieve and load a Comparator class from the DIT.
|
LdapComparator<?> |
getLdapComparator(SchemaManager schemaManager,
LdapComparatorDescription comparatorDescription,
Registries targetRegistries,
String schemaName)
Construct a LdapComparator from a description of a comparator.
|
MatchingRule |
getMatchingRule(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName)
Construct an MatchingRule from an entry get from the Dit
|
Normalizer |
getNormalizer(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName)
Retrieve and load a Normalizer class from the DIT.
|
Normalizer |
getNormalizer(SchemaManager schemaManager,
NormalizerDescription normalizerDescription,
Registries targetRegistries,
String schemaName)
Create a new instance of a Normalizer
|
ObjectClass |
getObjectClass(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName) |
Schema |
getSchema(Entry entry)
Return an instance of the Schema associated to the entry
|
LdapSyntax |
getSyntax(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName) |
SyntaxChecker |
getSyntaxChecker(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName)
Retrieve and load a syntaxChecker class from the DIT.
|
SyntaxChecker |
getSyntaxChecker(SchemaManager schemaManager,
SyntaxCheckerDescription syntaxCheckerDescription,
Registries targetRegistries,
String schemaName)
Create a new instance of a SyntaxChecker
|
public SchemaEntityFactory()
public Schema getSchema(Entry entry) throws LdapException
getSchema in interface EntityFactoryentry - The Schema entryLdapExceptionpublic SyntaxChecker getSyntaxChecker(SchemaManager schemaManager, Entry entry, Registries targetRegistries, String schemaName) throws LdapException
getSyntaxChecker in interface EntityFactoryschemaManager - The Schema Managerentry - The entry containing all the informations to build a SyntaxCheckertargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofLdapException - if anything fails during loadingpublic SyntaxChecker getSyntaxChecker(SchemaManager schemaManager, SyntaxCheckerDescription syntaxCheckerDescription, Registries targetRegistries, String schemaName) throws Exception
getSyntaxChecker in interface EntityFactoryschemaManager - The Schema ManagersyntaxCheckerDescription - The SyntaxChecker description objecttargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofException - If the creation has failedpublic LdapComparator<?> getLdapComparator(SchemaManager schemaManager, LdapComparatorDescription comparatorDescription, Registries targetRegistries, String schemaName) throws Exception
getLdapComparator in interface EntityFactoryschemaManager - The Schema ManagercomparatorDescription - The LdapComparator description objecttargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofException - If the creation has failedpublic LdapComparator<?> getLdapComparator(SchemaManager schemaManager, Entry entry, Registries targetRegistries, String schemaName) throws LdapException
getLdapComparator in interface EntityFactoryschemaManager - The Schema Managerentry - The entry containing all the informations to build a LdapComparatortargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofLdapException - if anything fails during loadingpublic Normalizer getNormalizer(SchemaManager schemaManager, NormalizerDescription normalizerDescription, Registries targetRegistries, String schemaName) throws Exception
getNormalizer in interface EntityFactoryschemaManager - The Schema ManagernormalizerDescription - The Normalizer description objecttargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofException - If the creation has failedpublic Normalizer getNormalizer(SchemaManager schemaManager, Entry entry, Registries targetRegistries, String schemaName) throws LdapException
getNormalizer in interface EntityFactoryschemaManager - The Schema Managerentry - The entry containing all the informations to build a NormalizertargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofLdapException - if anything fails during loadingpublic LdapSyntax getSyntax(SchemaManager schemaManager, Entry entry, Registries targetRegistries, String schemaName) throws LdapInvalidAttributeValueException, LdapUnwillingToPerformException
getSyntax in interface EntityFactoryschemaManager - The Schema Managerentry - The entry containing all the informations to build a LdapSyntaxtargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofLdapInvalidAttributeValueExceptionLdapUnwillingToPerformExceptionpublic MatchingRule getMatchingRule(SchemaManager schemaManager, Entry entry, Registries targetRegistries, String schemaName) throws LdapUnwillingToPerformException, LdapInvalidAttributeValueException
getMatchingRule in interface EntityFactoryschemaManager - The Schema Managerentry - The entry containing all the informations to build a MatchingRuletargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofLdapUnwillingToPerformExceptionLdapInvalidAttributeValueExceptionpublic ObjectClass getObjectClass(SchemaManager schemaManager, Entry entry, Registries targetRegistries, String schemaName) throws LdapException
getObjectClass in interface EntityFactoryschemaManager - The Schema Managerentry - The entry containing all the informations to build an ObjectClasstargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofLdapExceptionpublic AttributeType getAttributeType(SchemaManager schemaManager, Entry entry, Registries targetRegistries, String schemaName) throws LdapInvalidAttributeValueException, LdapUnwillingToPerformException
getAttributeType in interface EntityFactoryschemaManager - The Schema Managerentry - The entry containing all the informations to build an AttributeTypetargetRegistries - The registries containing all the enabled SchemaObjectsschemaName - The schema this SchemaObject will be part ofLdapInvalidAttributeValueExceptionLdapUnwillingToPerformExceptionCopyright © 2021. All rights reserved.