| | |
| | | /** The account status notification handler config manager for the server. */ |
| | | private AccountStatusNotificationHandlerConfigManager accountStatusNotificationHandlerConfigManager; |
| | | |
| | | /** The default syntax to use for binary attributes. */ |
| | | private Syntax defaultBinarySyntax; |
| | | /** The default syntax to use for Boolean attributes. */ |
| | | private Syntax defaultBooleanSyntax; |
| | | /** The default syntax to use for DN attributes. */ |
| | | private Syntax defaultDNSyntax; |
| | | /** The default syntax to use for integer attributes. */ |
| | | private Syntax defaultIntegerSyntax; |
| | | /** The default syntax to use for string attributes. */ |
| | | private Syntax defaultStringSyntax; |
| | | |
| | | /** The default attribute syntax to use for attributes with no defined syntax. */ |
| | | private Syntax defaultSyntax; |
| | | /** The attribute type used to reference the "objectclass" attribute. */ |
| | | private AttributeType objectClassAttributeType; |
| | | /** The authenticated users manager for the server. */ |
| | |
| | | { |
| | | synchronized (directoryServer) |
| | | { |
| | | |
| | | // Set default values for variables that may be needed during schema |
| | | // processing. |
| | | directoryServer.syntaxEnforcementPolicy = AcceptRejectWarn.REJECT; |
| | |
| | | */ |
| | | private void bootstrapAttributeSyntaxes() |
| | | { |
| | | defaultBinarySyntax = CoreSchema.getBinarySyntax(); |
| | | defaultBooleanSyntax = CoreSchema.getBooleanSyntax(); |
| | | defaultStringSyntax = CoreSchema.getDirectoryStringSyntax(); |
| | | defaultDNSyntax = CoreSchema.getDNSyntax(); |
| | | defaultIntegerSyntax = CoreSchema.getIntegerSyntax(); |
| | | defaultSyntax = defaultStringSyntax; |
| | | schema.registerDefaultSyntax(defaultSyntax); |
| | | schema.registerDefaultSyntax(getDefaultSyntax()); |
| | | |
| | | Syntax[] syntaxes = { |
| | | defaultBinarySyntax, defaultBooleanSyntax, defaultStringSyntax, defaultDNSyntax, defaultIntegerSyntax, |
| | | getDefaultBinarySyntax(), |
| | | getDefaultBooleanSyntax(), |
| | | getDefaultStringSyntax(), |
| | | getDefaultDNSyntax(), |
| | | getDefaultIntegerSyntax(), |
| | | CoreSchema.getAttributeTypeDescriptionSyntax(), |
| | | CoreSchema.getIA5StringSyntax(), |
| | | CoreSchema.getGeneralizedTimeSyntax(), |
| | |
| | | { |
| | | try |
| | | { |
| | | Syntax newOIDSyntax = CoreSchema.getOIDSyntax(); |
| | | oidSyntax = newOIDSyntax; |
| | | oidSyntax = CoreSchema.getOIDSyntax(); |
| | | directoryServer.schema.registerSyntax(oidSyntax, true); |
| | | } |
| | | catch (Exception e) |
| | |
| | | */ |
| | | public static Syntax getDefaultAttributeSyntax() |
| | | { |
| | | return directoryServer.defaultSyntax; |
| | | return directoryServer.getDefaultSyntax(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static Syntax getDefaultBinarySyntax() |
| | | { |
| | | return directoryServer.defaultBinarySyntax; |
| | | return CoreSchema.getBinarySyntax(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static Syntax getDefaultBooleanSyntax() |
| | | { |
| | | return directoryServer.defaultBooleanSyntax; |
| | | return CoreSchema.getBooleanSyntax(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static Syntax getDefaultDNSyntax() |
| | | { |
| | | return directoryServer.defaultDNSyntax; |
| | | return CoreSchema.getDNSyntax(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static Syntax getDefaultIntegerSyntax() |
| | | { |
| | | return directoryServer.defaultIntegerSyntax; |
| | | return CoreSchema.getIntegerSyntax(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static Syntax getDefaultStringSyntax() |
| | | { |
| | | return directoryServer.defaultStringSyntax; |
| | | return CoreSchema.getDirectoryStringSyntax(); |
| | | } |
| | | |
| | | private Syntax getDefaultSyntax() |
| | | { |
| | | return CoreSchema.getDirectoryStringSyntax(); |
| | | } |
| | | |
| | | /** |
| | |
| | | coreConfigManager = null; |
| | | compressedSchema = null; |
| | | cryptoManager = null; |
| | | defaultBinarySyntax = null; |
| | | defaultBooleanSyntax = null; |
| | | defaultDNSyntax = null; |
| | | defaultIntegerSyntax = null; |
| | | defaultStringSyntax = null; |
| | | defaultSyntax = null; |
| | | entryCache = null; |
| | | environmentConfig = null; |
| | | objectClassAttributeType = null; |
| | |
| | | { |
| | | return directoryServer.lockManager; |
| | | } |
| | | |
| | | } |
| | | |