|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SchemaManager
A class used to manage access to the Schemas and Registries. It's associated with a SchemaLoader, in charge of loading the schemas from the disk.
| Method Summary | |
|---|---|
boolean |
add(SchemaObject schemaObject)
Registers a new SchemaObject. |
boolean |
delete(SchemaObject schemaObject)
Unregisters a new SchemaObject. |
boolean |
disable(Schema... schemas)
Disables a set of Schemas, and returns true if all the schema have been disabled, with all the dependent schemas, and if the registries is still consistent. |
boolean |
disable(String... schemas)
Disables a set of Schemas, and returns true if all the schema have been disabled, with all the dependent schemas, and if the registries is still consistent. |
boolean |
disabledRelaxed(Schema... schemas)
Disables a set of Schemas, and returns true if all the schema have been disabled, with all the dependent schemas. |
boolean |
disabledRelaxed(String... schemas)
Disables a set of Schemas, and returns true if all the schema have been disabled, with all the dependent schemas. |
boolean |
enable(Schema... schemas)
Enables a set of Schemas, and returns true if all the schema have been enabled, with all the dependent schemas, and if the registries is still consistent. |
boolean |
enable(String... schemas)
Enables a set of Schemas, and returns true if all the schema have been enabled, with all the dependent schemas, and if the registries is still consistent. |
boolean |
enableRelaxed(Schema... schemas)
Enables a set of Schemas, and returns true if all the schema have been enabled, with all the dependent schemas. |
boolean |
enableRelaxed(String... schemas)
Enables a set of Schemas, and returns true if all the schema have been enabled, with all the dependent schemas. |
AttributeType |
getAttributeType(String oid)
Get an AttributeType in the AttributeType registry. |
AttributeTypeRegistry |
getAttributeTypeRegistry()
Get an immutable reference on the AttributeType registry |
ComparatorRegistry |
getComparatorRegistry()
Get an immutable reference on the Comparator registry |
List<Schema> |
getDisabled()
|
DitContentRuleRegistry |
getDITContentRuleRegistry()
Get an immutable reference on the DitContentRule registry |
DitStructureRuleRegistry |
getDITStructureRuleRegistry()
Get an immutable reference on the DitStructureRule registry |
List<Schema> |
getEnabled()
|
List<Throwable> |
getErrors()
|
OidRegistry |
getGlobalOidRegistry()
Returns a reference to the global OidRegistry |
LdapSyntaxRegistry |
getLdapSyntaxRegistry()
Get an immutable reference on the LdapSyntax registry |
Schema |
getLoadedSchema(String schemaName)
Gets a schema that has been loaded into these Registries. |
SchemaLoader |
getLoader()
|
MatchingRuleRegistry |
getMatchingRuleRegistry()
Get an immutable reference on the MatchingRule registry |
MatchingRuleUseRegistry |
getMatchingRuleUseRegistry()
Get an immutable reference on the MatchingRuleUse registry |
NameFormRegistry |
getNameFormRegistry()
Get an immutable reference on the NameForm registry |
Dn |
getNamingContext()
|
Map<String,OidNormalizer> |
getNormalizerMapping()
Get an immutable reference on the Normalizer mapping |
NormalizerRegistry |
getNormalizerRegistry()
Get an immutable reference on the Normalizer registry |
ObjectClassRegistry |
getObjectClassRegistry()
Get an immutable reference on the ObjectClass registry |
Registries |
getRegistries()
|
SyntaxCheckerRegistry |
getSyntaxCheckerRegistry()
Get an immutable reference on the SyntaxChecker registry |
void |
initialize()
Initializes the SchemaService |
boolean |
isDisabled(Schema schema)
Tells if the given Schema is disabled |
boolean |
isDisabled(String schemaName)
Tells if the given Schema is disabled |
boolean |
isEnabled(Schema schema)
Tells if the given Schema is enabled |
boolean |
isEnabled(String schemaName)
Tells if the given Schema is enabled |
boolean |
isSchemaLoaded(String schemaName)
Tells if the specific schema is loaded |
Set<String> |
listDependentSchemaNames(String schemaName)
Get the list of Schema names which has the given schema name as a dependence |
boolean |
load(Schema... schemas)
Load some Schemas into the registries. |
boolean |
load(String... schemas)
Load some Schemas into the registries. |
boolean |
loadAllEnabled()
Load all the enabled schema into the Registries. |
boolean |
loadAllEnabledRelaxed()
Load all the enabled schema into the Registries. |
boolean |
loadDisabled(Schema... schemas)
Load Schemas into the Registries, even if they are disabled. |
boolean |
loadDisabled(String... schemas)
Load Schemas into the Registries, even if they are disabled. |
boolean |
loadRelaxed(Schema... schemas)
Load Schemas into the registries, even if there are some errors in the schemas. |
boolean |
loadRelaxed(String... schemas)
Load Schemas into the registries, even if there are some errors in the schemas. |
boolean |
loadWithDeps(Schema... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend on. |
boolean |
loadWithDeps(String... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend on. |
boolean |
loadWithDepsRelaxed(Schema... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend on. |
boolean |
loadWithDepsRelaxed(String... schemas)
Load some Schemas into the registries, and loads all of the schemas they depend on. |
AttributeType |
lookupAttributeTypeRegistry(String oid)
Lookup for an AttributeType in the AttributeType registry |
LdapComparator<?> |
lookupComparatorRegistry(String oid)
Lookup for a Comparator in the Comparator registry |
LdapSyntax |
lookupLdapSyntaxRegistry(String oid)
Lookup for an LdapSyntax in the LdapSyntax registry |
MatchingRule |
lookupMatchingRuleRegistry(String oid)
Lookup for a MatchingRule in the MatchingRule registry |
Normalizer |
lookupNormalizerRegistry(String oid)
Lookup for a Normalizer in the Normalizer registry |
ObjectClass |
lookupObjectClassRegistry(String oid)
Lookup for a ObjectClass in the ObjectClass registry |
SyntaxChecker |
lookupSyntaxCheckerRegistry(String oid)
Lookup for a SyntaxChecker in the SyntaxChecker registry |
void |
setRegistries(Registries registries)
Associate a new Registries to the SchemaManager |
void |
setSchemaLoader(SchemaLoader schemaLoader)
Associate a Schema loader to this SchemaManager |
boolean |
unload(Schema... schemas)
Unload the given set of Schemas |
boolean |
unload(String... schemas)
Unload the given set of Schemas |
SchemaObject |
unregisterAttributeType(String attributeTypeOid)
Removes the registered attributeType from the attributeTypeRegistry |
SchemaObject |
unregisterComparator(String comparatorOid)
Removes the registered Comparator from the ComparatorRegistry |
SchemaObject |
unregisterDitControlRule(String ditControlRuleOid)
Removes the registered DitControlRule from the DitControlRuleRegistry |
SchemaObject |
unregisterDitStructureRule(String ditStructureRuleOid)
Removes the registered DitStructureRule from the DitStructureRuleRegistry |
SchemaObject |
unregisterLdapSyntax(String ldapSyntaxOid)
Removes the registered LdapSyntax from the LdapSyntaxRegistry |
SchemaObject |
unregisterMatchingRule(String matchingRuleOid)
Removes the registered MatchingRule from the MatchingRuleRegistry |
SchemaObject |
unregisterMatchingRuleUse(String matchingRuleUseOid)
Removes the registered MatchingRuleUse from the MatchingRuleUseRegistry |
SchemaObject |
unregisterNameForm(String nameFormOid)
Removes the registered NameForm from the NameFormRegistry |
SchemaObject |
unregisterNormalizer(String normalizerOid)
Removes the registered Normalizer from the NormalizerRegistry |
SchemaObject |
unregisterObjectClass(String objectClassOid)
Removes the registered ObjectClass from the ObjectClassRegistry |
SchemaObject |
unregisterSyntaxChecker(String syntaxCheckerOid)
Removes the registered SyntaxChecker from the SyntaxCheckerRegistry |
boolean |
verify(Schema... schemas)
Check that the Schemas are consistent regarding the current Registries. |
boolean |
verify(String... schemas)
Check that the Schemas are consistent regarding the current Registries. |
| Method Detail |
|---|
boolean load(Schema... schemas)
throws LdapException
getErrors() method will contain them
schemas - the Schemas to load
Exception - @TODO
LdapException
boolean load(String... schemas)
throws Exception
getErrors() method will contain them
schemas - the Schemas' name to load
Exception - @TODO
boolean loadWithDeps(Schema... schemas)
throws Exception
getErrors() method will contain them
schemas - the Schemas to load
Exception - @TODO
boolean loadWithDeps(String... schemas)
throws Exception
getErrors() method will contain them
schemas - the Schemas' name to load
Exception - @TODO
boolean loadRelaxed(Schema... schemas)
throws Exception
getErrors() method will contain them
schemas - the Schemas to load, if enabled
Exception - @TODO
boolean loadRelaxed(String... schemas)
throws Exception
getErrors() method will contain them
schemas - the Schemas' name to load, if enabled
Exception - @TODO
boolean loadWithDepsRelaxed(Schema... schemas)
throws Exception
getErrors() method will contain them
schemas - the Schemas to load
Exception - @TODO
boolean loadWithDepsRelaxed(String... schemas)
throws Exception
getErrors() method will contain them
schemas - the Schemas' name to load
Exception - @TODO
boolean loadDisabled(Schema... schemas)
throws Exception
getErrors() method will contain them
schemas - The Schemas to load
Exception - @TODO
boolean loadDisabled(String... schemas)
throws LdapException
getErrors() method will contain them
schemas - The Schemas' name to load
Exception - @TODO
LdapException
boolean loadAllEnabled()
throws Exception
Exception - @TODO
boolean loadAllEnabledRelaxed()
throws Exception
Exception - @TODO
boolean unload(Schema... schemas)
throws Exception
schemas - The list of Schema to unload
Exception
boolean unload(String... schemas)
throws LdapException
schemas - The list of Schema to unload
LdapException
boolean enable(Schema... schemas)
throws Exception
schemas - The list of schemas to enable
If - something went wrong
Exception
boolean enable(String... schemas)
throws LdapException
schemas - The list of schema name to enable
If - something went wrong
LdapExceptionboolean enableRelaxed(Schema... schemas)
schemas - The list of schemas to enable
boolean enableRelaxed(String... schemas)
schemas - The list of schema names to enable
List<Schema> getEnabled()
boolean isEnabled(String schemaName)
schemaName - The schema name
boolean isEnabled(Schema schema)
schema - The schema
boolean disable(Schema... schemas)
throws Exception
schemas - The list of schemas to disable
If - something went wrong
Exception
boolean disable(String... schemas)
throws LdapException
schemas - The list of schema names to disable
If - something went wrong
LdapExceptionboolean disabledRelaxed(Schema... schemas)
schemas - The list of schemas to disable
boolean disabledRelaxed(String... schemas)
schemas - The list of schema names to disable
List<Schema> getDisabled()
boolean isDisabled(String schemaName)
schemaName - The schema name
boolean isDisabled(Schema schema)
schema - The schema
boolean verify(Schema... schemas)
throws Exception
schemas - The schemas to check
Exception - if something went wrong
boolean verify(String... schemas)
throws Exception
schemas - The schema names to check
Exception - if something went wrongRegistries getRegistries()
AttributeType lookupAttributeTypeRegistry(String oid)
throws LdapException
oid - the OID we are looking for
LdapException - if the OID is not found in the AttributeType registryAttributeType getAttributeType(String oid)
oid - the OID we are looking for
LdapComparator<?> lookupComparatorRegistry(String oid)
throws LdapException
oid - the OID we are looking for
LdapException - if the OID is not found in the Comparator registry
MatchingRule lookupMatchingRuleRegistry(String oid)
throws LdapException
oid - the OID we are looking for
LdapException - if the OID is not found in the MatchingRule registry
Normalizer lookupNormalizerRegistry(String oid)
throws LdapException
oid - the OID we are looking for
LdapException - if the OID is not found in the Normalizer registry
ObjectClass lookupObjectClassRegistry(String oid)
throws LdapException
oid - the OID we are looking for
LdapException - if the OID is not found in the ObjectClass registry
LdapSyntax lookupLdapSyntaxRegistry(String oid)
throws LdapException
oid - the OID we are looking for
LdapException - if the OID is not found in the LdapSyntax registry
SyntaxChecker lookupSyntaxCheckerRegistry(String oid)
throws LdapException
oid - the OID we are looking for
LdapException - if the OID is not found in the SyntaxChecker registryAttributeTypeRegistry getAttributeTypeRegistry()
ComparatorRegistry getComparatorRegistry()
DitContentRuleRegistry getDITContentRuleRegistry()
DitStructureRuleRegistry getDITStructureRuleRegistry()
MatchingRuleRegistry getMatchingRuleRegistry()
MatchingRuleUseRegistry getMatchingRuleUseRegistry()
NormalizerRegistry getNormalizerRegistry()
NameFormRegistry getNameFormRegistry()
ObjectClassRegistry getObjectClassRegistry()
LdapSyntaxRegistry getLdapSyntaxRegistry()
SyntaxCheckerRegistry getSyntaxCheckerRegistry()
Map<String,OidNormalizer> getNormalizerMapping()
void setRegistries(Registries registries)
registries - The new RegistriesList<Throwable> getErrors()
void setSchemaLoader(SchemaLoader schemaLoader)
schemaLoader - The schema loader to useDn getNamingContext()
void initialize()
throws Exception
Exception - If the initialization failsSchemaLoader getLoader()
boolean add(SchemaObject schemaObject)
throws LdapException
schemaObject - the SchemaObject to register
LdapException - if the SchemaObject is already registered or
the registration operation is not supported
boolean delete(SchemaObject schemaObject)
throws LdapException
schemaObject - the SchemaObject to unregister
Exception - if the SchemaObject is not registered or
the deletion operation is not supported
LdapException
SchemaObject unregisterAttributeType(String attributeTypeOid)
throws LdapException
attributeTypeOid - the attributeType OID to unregister
LdapException - if the attributeType is invalid
SchemaObject unregisterComparator(String comparatorOid)
throws LdapException
comparatorOid - the Comparator OID to unregister
LdapException - if the Comparator is invalid
SchemaObject unregisterDitControlRule(String ditControlRuleOid)
throws LdapException
ditControlRuleOid - the DitControlRule OID to unregister
LdapException - if the DitControlRule is invalid
SchemaObject unregisterDitStructureRule(String ditStructureRuleOid)
throws LdapException
ditStructureRuleOid - the DitStructureRule OID to unregister
LdapException - if the DitStructureRule is invalid
SchemaObject unregisterMatchingRule(String matchingRuleOid)
throws LdapException
matchingRuleOid - the MatchingRuleRule OID to unregister
LdapException - if the MatchingRule is invalid
SchemaObject unregisterMatchingRuleUse(String matchingRuleUseOid)
throws LdapException
matchingRuleUseOid - the MatchingRuleUse OID to unregister
LdapException - if the MatchingRuleUse is invalid
SchemaObject unregisterNameForm(String nameFormOid)
throws LdapException
nameFormOid - the NameForm OID to unregister
LdapException - if the NameForm is invalid
SchemaObject unregisterNormalizer(String normalizerOid)
throws LdapException
normalizerOid - the Normalizer OID to unregister
LdapException - if the Normalizer is invalid
SchemaObject unregisterObjectClass(String objectClassOid)
throws LdapException
objectClassOid - the ObjectClass OID to unregister
LdapException - if the ObjectClass is invalid
SchemaObject unregisterLdapSyntax(String ldapSyntaxOid)
throws LdapException
ldapSyntaxOid - the LdapSyntax OID to unregister
LdapException - if the LdapSyntax is invalid
SchemaObject unregisterSyntaxChecker(String syntaxCheckerOid)
throws LdapException
syntaxCheckerOid - the SyntaxChecker OID to unregister
LdapException - if the SyntaxChecker is invalidOidRegistry getGlobalOidRegistry()
Schema getLoadedSchema(String schemaName)
schemaName - the name of the schema to lookup
boolean isSchemaLoaded(String schemaName)
schemaName - The schema we want to check
Set<String> listDependentSchemaNames(String schemaName)
schemaName - The Schema name for which we want to get the list of dependent schemas
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||