| | |
| | | */ |
| | | public SchemaConfigManager() |
| | | { |
| | | |
| | | configHandler = DirectoryServer.getConfigHandler(); |
| | | |
| | | schema = new Schema(); |
| | |
| | | */ |
| | | public static String getSchemaDirectoryPath() |
| | | { |
| | | |
| | | String schemaDirPath = System.getProperty(PROPERTY_SCHEMA_DIRECTORY); |
| | | if ((schemaDirPath == null) || (schemaDirPath.length() == 0)) |
| | | { |
| | |
| | | */ |
| | | public Schema getSchema() |
| | | { |
| | | |
| | | return schema; |
| | | } |
| | | |
| | |
| | | public void initializeMatchingRules() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // First, get the matching rule configuration base entry. |
| | | ConfigEntry matchingRuleBaseEntry; |
| | | try |
| | |
| | | public void initializeAttributeSyntaxes() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // First, get the attribute syntax configuration base entry. |
| | | ConfigEntry syntaxBaseEntry; |
| | | try |
| | |
| | | public void initializeSchemaFromFiles() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // Construct the path to the directory that should contain the schema files |
| | | // and make sure that it exists and is a directory. Get a list of the files |
| | | // in that directory sorted in alphabetic order. |
| | |
| | | public static void loadSchemaFile(Schema schema, String schemaFile) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | loadSchemaFile(schema, schemaFile, true); |
| | | } |
| | | |
| | |
| | | boolean failOnError) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // Create an LDIF reader to use when reading the files. |
| | | String schemaDirPath = getSchemaDirectoryPath(); |
| | | LDIFReader reader; |
| | |
| | | public boolean configChangeIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // NYI |
| | | |
| | | // If we've gotten here then the monitor entry appears to be acceptable. |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationChange(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | |
| | | public boolean configAddIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // NYI |
| | | |
| | | // If we've gotten here then the monitor entry appears to be acceptable. |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationAdd(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |
| | |
| | | public boolean configDeleteIsAcceptable(ConfigEntry configEntry, |
| | | StringBuilder unacceptableReason) |
| | | { |
| | | |
| | | |
| | | // NYI -- Should we allow deletes of elements with this as superior? |
| | | |
| | | return true; |
| | |
| | | */ |
| | | public ConfigChangeResult applyConfigurationDelete(ConfigEntry configEntry) |
| | | { |
| | | |
| | | |
| | | DN configEntryDN = configEntry.getDN(); |
| | | ResultCode resultCode = ResultCode.SUCCESS; |
| | | boolean adminActionRequired = false; |