|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.schema.loader.ldif.SchemaEntityFactory
public class SchemaEntityFactory
Showing how it's done ...
Constructor Summary | |
---|---|
SchemaEntityFactory()
|
Method Summary | |
---|---|
AttributeType |
getAttributeType(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
java.lang.String schemaName)
Construct an AttributeType from an entry representing an AttributeType. |
LdapComparator<?> |
getLdapComparator(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
java.lang.String schemaName)
Retrieve and load a Comparator class from the DIT. |
LdapComparator<?> |
getLdapComparator(SchemaManager schemaManager,
LdapComparatorDescription comparatorDescription,
Registries targetRegistries,
java.lang.String schemaName)
Construct a LdapComparator from a description of a comparator. |
MatchingRule |
getMatchingRule(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
java.lang.String schemaName)
Construct an MatchingRule from an entry get from the Dit |
Normalizer |
getNormalizer(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
java.lang.String schemaName)
Retrieve and load a Normalizer class from the DIT. |
Normalizer |
getNormalizer(SchemaManager schemaManager,
NormalizerDescription normalizerDescription,
Registries targetRegistries,
java.lang.String schemaName)
Create a new instance of a Normalizer |
ObjectClass |
getObjectClass(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
java.lang.String schemaName)
|
Schema |
getSchema(Entry entry)
Return an instance of the Schema associated to the entry |
LdapSyntax |
getSyntax(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
java.lang.String schemaName)
|
SyntaxChecker |
getSyntaxChecker(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
java.lang.String schemaName)
Retrieve and load a syntaxChecker class from the DIT. |
SyntaxChecker |
getSyntaxChecker(SchemaManager schemaManager,
SyntaxCheckerDescription syntaxCheckerDescription,
Registries targetRegistries,
java.lang.String schemaName)
Create a new instance of a SyntaxChecker |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaEntityFactory() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public Schema getSchema(Entry entry) throws java.lang.Exception
getSchema
in interface EntityFactory
entry
- The Schema entry
java.lang.Exception
- If the instance can't be createdpublic SyntaxChecker getSyntaxChecker(SchemaManager schemaManager, Entry entry, Registries targetRegistries, java.lang.String schemaName) throws java.lang.Exception
getSyntaxChecker
in interface EntityFactory
schemaManager
- 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 of
LdapException
- if anything fails during loading
java.lang.Exception
public SyntaxChecker getSyntaxChecker(SchemaManager schemaManager, SyntaxCheckerDescription syntaxCheckerDescription, Registries targetRegistries, java.lang.String schemaName) throws java.lang.Exception
getSyntaxChecker
in interface EntityFactory
schemaManager
- The Schema ManagersyntaxCheckerDescription
- The SyntaxChecker description objecttargetRegistries
- The registries containing all the enabled SchemaObjectsschemaName
- The schema this SchemaObject will be part of
java.lang.Exception
- If the creation has failedpublic LdapComparator<?> getLdapComparator(SchemaManager schemaManager, LdapComparatorDescription comparatorDescription, Registries targetRegistries, java.lang.String schemaName) throws java.lang.Exception
getLdapComparator
in interface EntityFactory
schemaManager
- The Schema ManagercomparatorDescription
- The LdapComparator description objecttargetRegistries
- The registries containing all the enabled SchemaObjectsschemaName
- The schema this SchemaObject will be part of
java.lang.Exception
- If the creation has failedpublic LdapComparator<?> getLdapComparator(SchemaManager schemaManager, Entry entry, Registries targetRegistries, java.lang.String schemaName) throws java.lang.Exception
getLdapComparator
in interface EntityFactory
schemaManager
- 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 of
LdapException
- if anything fails during loading
java.lang.Exception
public Normalizer getNormalizer(SchemaManager schemaManager, NormalizerDescription normalizerDescription, Registries targetRegistries, java.lang.String schemaName) throws java.lang.Exception
getNormalizer
in interface EntityFactory
schemaManager
- The Schema ManagernormalizerDescription
- The Normalizer description objecttargetRegistries
- The registries containing all the enabled SchemaObjectsschemaName
- The schema this SchemaObject will be part of
java.lang.Exception
- If the creation has failedpublic Normalizer getNormalizer(SchemaManager schemaManager, Entry entry, Registries targetRegistries, java.lang.String schemaName) throws java.lang.Exception
getNormalizer
in interface EntityFactory
schemaManager
- 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 of
LdapException
- if anything fails during loading
java.lang.Exception
public LdapSyntax getSyntax(SchemaManager schemaManager, Entry entry, Registries targetRegistries, java.lang.String schemaName) throws LdapInvalidAttributeValueException, LdapUnwillingToPerformException
getSyntax
in interface EntityFactory
schemaManager
- 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 of
LdapInvalidAttributeValueException
LdapUnwillingToPerformException
public MatchingRule getMatchingRule(SchemaManager schemaManager, Entry entry, Registries targetRegistries, java.lang.String schemaName) throws LdapUnwillingToPerformException, LdapInvalidAttributeValueException
getMatchingRule
in interface EntityFactory
schemaManager
- 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 of
LdapUnwillingToPerformException
LdapInvalidAttributeValueException
public ObjectClass getObjectClass(SchemaManager schemaManager, Entry entry, Registries targetRegistries, java.lang.String schemaName) throws java.lang.Exception
getObjectClass
in interface EntityFactory
schemaManager
- 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 of
java.lang.Exception
public AttributeType getAttributeType(SchemaManager schemaManager, Entry entry, Registries targetRegistries, java.lang.String schemaName) throws LdapInvalidAttributeValueException, LdapUnwillingToPerformException
getAttributeType
in interface EntityFactory
schemaManager
- 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 of
LdapInvalidAttributeValueException
LdapUnwillingToPerformException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |