| | |
| | | public static void initializeJMX() |
| | | throws InitializationException |
| | | { |
| | | |
| | | try |
| | | { |
| | | // FIXME -- Should we use the plaform Mbean Server or |
| | |
| | | */ |
| | | public static String getConfigFile() |
| | | { |
| | | |
| | | return directoryServer.configFile; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AuthenticatedUsers getAuthenticatedUsers() |
| | | { |
| | | |
| | | return directoryServer.authenticatedUsers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static CryptoManager getCryptoManager() |
| | | { |
| | | |
| | | return directoryServer.cryptoManager; |
| | | } |
| | | |
| | |
| | | public void initializeMailServerPropertySets() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | mailServerPropertySets = new CopyOnWriteArrayList<Properties>(); |
| | | |
| | | // FIXME -- Actually read the information from the config handler. |
| | |
| | | */ |
| | | public static CopyOnWriteArrayList<Properties> getMailServerPropertySets() |
| | | { |
| | | |
| | | return directoryServer.mailServerPropertySets; |
| | | } |
| | | |
| | |
| | | public void initializeSchema() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // Create the schema configuration manager, and initialize the schema from |
| | | // the configuration. |
| | | schemaConfigManager = new SchemaConfigManager(); |
| | |
| | | public static Set<BackendInitializationListener> |
| | | getBackendInitializationListeners() |
| | | { |
| | | |
| | | return directoryServer.backendInitializationListeners; |
| | | } |
| | | |
| | |
| | | public static void registerBackendInitializationListener( |
| | | BackendInitializationListener listener) |
| | | { |
| | | |
| | | directoryServer.backendInitializationListeners.add(listener); |
| | | } |
| | | |
| | |
| | | public static void deregisterBackendInitializationListener( |
| | | BackendInitializationListener listener) |
| | | { |
| | | |
| | | directoryServer.backendInitializationListeners.remove(listener); |
| | | } |
| | | |
| | |
| | | private void initializeBackends() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | backendConfigManager = new BackendConfigManager(); |
| | | backendConfigManager.initializeBackendConfig(); |
| | | |
| | |
| | | public void initializeGroupManager() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | groupManager = new GroupManager(); |
| | | groupManager.initializeGroupImplementations(); |
| | | |
| | |
| | | */ |
| | | public static GroupManager getGroupManager() |
| | | { |
| | | |
| | | return directoryServer.groupManager; |
| | | } |
| | | |
| | |
| | | private void initializeSupportedControls() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | supportedControls.add(OID_LDAP_ASSERTION); |
| | | supportedControls.add(OID_LDAP_READENTRY_PREREAD); |
| | | supportedControls.add(OID_LDAP_READENTRY_POSTREAD); |
| | |
| | | private void initializeSupportedFeatures() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | supportedFeatures.add(OID_ALL_OPERATIONAL_ATTRS_FEATURE); |
| | | supportedFeatures.add(OID_MODIFY_INCREMENT_FEATURE); |
| | | supportedFeatures.add(OID_TRUE_FALSE_FILTERS_FEATURE); |
| | |
| | | private void initializeIdentityMappers() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | identityMapperConfigManager = new IdentityMapperConfigManager(); |
| | | identityMapperConfigManager.initializeIdentityMappers(); |
| | | } |
| | |
| | | private void initializeExtendedOperations() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | extendedOperationConfigManager = new ExtendedOperationConfigManager(); |
| | | extendedOperationConfigManager.initializeExtendedOperationHandlers(); |
| | | } |
| | |
| | | private void initializeSASLMechanisms() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | saslConfigManager = new SASLConfigManager(); |
| | | saslConfigManager.initializeSASLMechanismHandlers(); |
| | | } |
| | |
| | | private void initializeConnectionHandlers() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | connectionHandlerConfigManager = new ConnectionHandlerConfigManager(); |
| | | connectionHandlerConfigManager.initializeConnectionHandlerConfig(); |
| | | } |
| | |
| | | public void initializePasswordPolicyComponents() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | |
| | | // Initialize all the password storage schemes. |
| | | storageSchemeConfigManager = new PasswordStorageSchemeConfigManager(); |
| | | storageSchemeConfigManager.initializePasswordStorageSchemes(); |
| | |
| | | */ |
| | | public static OperatingSystem getOperatingSystem() |
| | | { |
| | | |
| | | return directoryServer.operatingSystem; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ThreadGroup getDirectoryThreadGroup() |
| | | { |
| | | |
| | | return directoryServer.directoryThreadGroup; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ConfigHandler getConfigHandler() |
| | | { |
| | | |
| | | return directoryServer.configHandler; |
| | | } |
| | | |
| | |
| | | public void initializePlugins() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | pluginConfigManager.initializePluginConfig(null); |
| | | } |
| | | |
| | |
| | | public void initializePlugins(Set<PluginType> pluginTypes) |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | pluginConfigManager = new PluginConfigManager(); |
| | | pluginConfigManager.initializePluginConfig(pluginTypes); |
| | | } |
| | |
| | | */ |
| | | public static PluginConfigManager getPluginConfigManager() |
| | | { |
| | | |
| | | return directoryServer.pluginConfigManager; |
| | | } |
| | | |
| | |
| | | public static ConfigEntry getConfigEntry(DN entryDN) |
| | | throws ConfigException |
| | | { |
| | | |
| | | return directoryServer.configHandler.getConfigEntry(entryDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static String getServerRoot() |
| | | { |
| | | |
| | | if (directoryServer.configHandler == null) |
| | | { |
| | | String serverRoot = System.getenv(ENV_VAR_INSTANCE_ROOT); |
| | |
| | | */ |
| | | public static long getStartTime() |
| | | { |
| | | |
| | | return directoryServer.startUpTime; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static String getStartTimeUTC() |
| | | { |
| | | |
| | | return directoryServer.startTimeUTC; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Schema getSchema() |
| | | { |
| | | |
| | | return directoryServer.schema; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setSchema(Schema schema) |
| | | { |
| | | |
| | | directoryServer.schema = schema; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ConcurrentHashMap<String,MatchingRule> getMatchingRules() |
| | | { |
| | | |
| | | return directoryServer.schema.getMatchingRules(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getMatchingRuleSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getMatchingRuleSet(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static MatchingRule getMatchingRule(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getMatchingRule(lowerName); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerMatchingRule(matchingRule, |
| | | overwriteExisting); |
| | | } |
| | |
| | | */ |
| | | public static void deregisterMatchingRule(MatchingRule matchingRule) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterMatchingRule(matchingRule); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<String,ApproximateMatchingRule> |
| | | getApproximateMatchingRules() |
| | | { |
| | | |
| | | return directoryServer.schema.getApproximateMatchingRules(); |
| | | } |
| | | |
| | |
| | | public static ApproximateMatchingRule |
| | | getApproximateMatchingRule(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getApproximateMatchingRule(lowerName); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerApproximateMatchingRule(matchingRule, |
| | | overwriteExisting); |
| | | } |
| | |
| | | public static void deregisterApproximateMatchingRule(ApproximateMatchingRule |
| | | matchingRule) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterApproximateMatchingRule(matchingRule); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<String,EqualityMatchingRule> |
| | | getEqualityMatchingRules() |
| | | { |
| | | |
| | | return directoryServer.schema.getEqualityMatchingRules(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static EqualityMatchingRule getEqualityMatchingRule(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getEqualityMatchingRule(lowerName); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerEqualityMatchingRule(matchingRule, |
| | | overwriteExisting); |
| | | } |
| | |
| | | public static void deregisterEqualityMatchingRule(EqualityMatchingRule |
| | | matchingRule) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterEqualityMatchingRule(matchingRule); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<String,OrderingMatchingRule> |
| | | getOrderingMatchingRules() |
| | | { |
| | | |
| | | return directoryServer.schema.getOrderingMatchingRules(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static OrderingMatchingRule getOrderingMatchingRule(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getOrderingMatchingRule(lowerName); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerOrderingMatchingRule(matchingRule, |
| | | overwriteExisting); |
| | | } |
| | |
| | | public static void deregisterOrderingMatchingRule(OrderingMatchingRule |
| | | matchingRule) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterOrderingMatchingRule(matchingRule); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<String,SubstringMatchingRule> |
| | | getSubstringMatchingRules() |
| | | { |
| | | |
| | | return directoryServer.schema.getSubstringMatchingRules(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static SubstringMatchingRule getSubstringMatchingRule(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getSubstringMatchingRule(lowerName); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerSubstringMatchingRule(matchingRule, |
| | | overwriteExisting); |
| | | } |
| | |
| | | public static void deregisterSubstringMatchingRule(SubstringMatchingRule |
| | | matchingRule) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterSubstringMatchingRule(matchingRule); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ConcurrentHashMap<String,ObjectClass> getObjectClasses() |
| | | { |
| | | |
| | | return directoryServer.schema.getObjectClasses(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getObjectClassSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getObjectClassSet(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ObjectClass getObjectClass(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getObjectClass(lowerName); |
| | | } |
| | | |
| | |
| | | public static ObjectClass getObjectClass(String lowerName, |
| | | boolean returnDefault) |
| | | { |
| | | |
| | | ObjectClass oc = directoryServer.schema.getObjectClass(lowerName); |
| | | if (returnDefault && (oc == null)) |
| | | { |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerObjectClass(objectClass, overwriteExisting); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterObjectClass(ObjectClass objectClass) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterObjectClass(objectClass); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ObjectClass getTopObjectClass() |
| | | { |
| | | |
| | | ObjectClass objectClass = |
| | | directoryServer.schema.getObjectClass(TOP_OBJECTCLASS_NAME); |
| | | if (objectClass == null) |
| | |
| | | */ |
| | | public static ObjectClass getDefaultObjectClass(String name) |
| | | { |
| | | |
| | | String lowerName = toLowerCase(name); |
| | | ObjectClass objectClass = directoryServer.schema.getObjectClass(lowerName); |
| | | if (objectClass == null) |
| | |
| | | */ |
| | | public static ObjectClass getDefaultAuxiliaryObjectClass(String name) |
| | | { |
| | | |
| | | String lowerName = toLowerCase(name); |
| | | ObjectClass objectClass = directoryServer.schema.getObjectClass(lowerName); |
| | | if (objectClass == null) |
| | |
| | | */ |
| | | public static ConcurrentHashMap<String,AttributeType> getAttributeTypes() |
| | | { |
| | | |
| | | return directoryServer.schema.getAttributeTypes(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getAttributeTypeSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getAttributeTypeSet(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeType getAttributeType(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getAttributeType(lowerName); |
| | | } |
| | | |
| | |
| | | public static AttributeType getAttributeType(String lowerName, |
| | | boolean returnDefault) |
| | | { |
| | | |
| | | AttributeType type = directoryServer.schema.getAttributeType(lowerName); |
| | | if (returnDefault && (type == null)) |
| | | { |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerAttributeType(attributeType, |
| | | overwriteExisting); |
| | | } |
| | |
| | | */ |
| | | public static void deregisterAttributeType(AttributeType attributeType) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterAttributeType(attributeType); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeType getObjectClassAttributeType() |
| | | { |
| | | |
| | | if (directoryServer.objectClassAttributeType == null) |
| | | { |
| | | directoryServer.objectClassAttributeType = |
| | |
| | | */ |
| | | public static AttributeType getDefaultAttributeType(String name) |
| | | { |
| | | |
| | | |
| | | return getDefaultAttributeType(name, getDefaultAttributeSyntax()); |
| | | } |
| | | |
| | |
| | | public static AttributeType getDefaultAttributeType(String name, |
| | | AttributeSyntax syntax) |
| | | { |
| | | |
| | | |
| | | String oid = toLowerCase(name) + "-oid"; |
| | | String definition = "( " + oid + " NAME '" + name + "' SYNTAX " + |
| | | syntax.getOID() + " )"; |
| | |
| | | */ |
| | | public static ConcurrentHashMap<String,AttributeSyntax> getAttributeSyntaxes() |
| | | { |
| | | |
| | | return directoryServer.schema.getSyntaxes(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getAttributeSyntaxSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getSyntaxSet(); |
| | | } |
| | | |
| | |
| | | public static AttributeSyntax getAttributeSyntax(String oid, |
| | | boolean allowDefault) |
| | | { |
| | | |
| | | AttributeSyntax syntax = directoryServer.schema.getSyntax(oid); |
| | | if ((syntax == null) && allowDefault) |
| | | { |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerSyntax(syntax, overwriteExisting); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterAttributeSyntax(AttributeSyntax syntax) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterSyntax(syntax); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeSyntax getDefaultAttributeSyntax() |
| | | { |
| | | |
| | | return directoryServer.defaultSyntax; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeSyntax getDefaultBinarySyntax() |
| | | { |
| | | |
| | | return directoryServer.defaultBinarySyntax; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeSyntax getDefaultBooleanSyntax() |
| | | { |
| | | |
| | | return directoryServer.defaultBooleanSyntax; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeSyntax getDefaultDNSyntax() |
| | | { |
| | | |
| | | return directoryServer.defaultDNSyntax; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeSyntax getDefaultIntegerSyntax() |
| | | { |
| | | |
| | | return directoryServer.defaultIntegerSyntax; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AttributeSyntax getDefaultStringSyntax() |
| | | { |
| | | |
| | | return directoryServer.defaultStringSyntax; |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<MatchingRule,MatchingRuleUse> |
| | | getMatchingRuleUses() |
| | | { |
| | | |
| | | return directoryServer.schema.getMatchingRuleUses(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getMatchingRuleUseSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getMatchingRuleUseSet(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static MatchingRuleUse getMatchingRuleUse(MatchingRule matchingRule) |
| | | { |
| | | |
| | | return directoryServer.schema.getMatchingRuleUse(matchingRule); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerMatchingRuleUse(matchingRuleUse, |
| | | overwriteExisting); |
| | | } |
| | |
| | | */ |
| | | public static void deregisterMatchingRuleUse(MatchingRuleUse matchingRuleUse) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterMatchingRuleUse(matchingRuleUse); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<ObjectClass,DITContentRule> |
| | | getDITContentRules() |
| | | { |
| | | |
| | | return directoryServer.schema.getDITContentRules(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getDITContentRuleSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getDITContentRuleSet(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static DITContentRule getDITContentRule(ObjectClass objectClass) |
| | | { |
| | | |
| | | return directoryServer.schema.getDITContentRule(objectClass); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerDITContentRule(ditContentRule, |
| | | overwriteExisting); |
| | | } |
| | |
| | | */ |
| | | public static void deregisterDITContentRule(DITContentRule ditContentRule) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterDITContentRule(ditContentRule); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<NameForm,DITStructureRule> |
| | | getDITStructureRules() |
| | | { |
| | | |
| | | return directoryServer.schema.getDITStructureRulesByNameForm(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getDITStructureRuleSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getDITStructureRuleSet(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static DITStructureRule getDITStructureRule(int ruleID) |
| | | { |
| | | |
| | | return directoryServer.schema.getDITStructureRule(ruleID); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static DITStructureRule getDITStructureRule(NameForm nameForm) |
| | | { |
| | | |
| | | return directoryServer.schema.getDITStructureRule(nameForm); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerDITStructureRule(ditStructureRule, |
| | | overwriteExisting); |
| | | } |
| | |
| | | public static void deregisterDITStructureRule(DITStructureRule |
| | | ditStructureRule) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterDITStructureRule(ditStructureRule); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ConcurrentHashMap<ObjectClass,NameForm> getNameForms() |
| | | { |
| | | |
| | | return directoryServer.schema.getNameFormsByObjectClass(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static LinkedHashSet<AttributeValue> getNameFormSet() |
| | | { |
| | | |
| | | return directoryServer.schema.getNameFormSet(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static NameForm getNameForm(ObjectClass objectClass) |
| | | { |
| | | |
| | | return directoryServer.schema.getNameForm(objectClass); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static NameForm getNameForm(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.schema.getNameForm(lowerName); |
| | | } |
| | | |
| | |
| | | boolean overwriteExisting) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | directoryServer.schema.registerNameForm(nameForm, overwriteExisting); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterNameForm(NameForm nameForm) |
| | | { |
| | | |
| | | directoryServer.schema.deregisterNameForm(nameForm); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static MBeanServer getJMXMBeanServer() |
| | | { |
| | | |
| | | return directoryServer.mBeanServer; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ConcurrentHashMap<DN,JMXMBean> getJMXMBeans() |
| | | { |
| | | |
| | | return directoryServer.mBeans; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static JMXMBean getJMXMBean(DN configEntryDN) |
| | | { |
| | | |
| | | return directoryServer.mBeans.get(configEntryDN); |
| | | } |
| | | |
| | |
| | | public static void registerConfigurableComponent(ConfigurableComponent |
| | | component) |
| | | { |
| | | |
| | | DN componentDN = component.getConfigurableComponentEntryDN(); |
| | | JMXMBean mBean = directoryServer.mBeans.get(componentDN); |
| | | if (mBean == null) |
| | |
| | | public static void deregisterConfigurableComponent(ConfigurableComponent |
| | | component) |
| | | { |
| | | |
| | | DN componentDN = component.getConfigurableComponentEntryDN(); |
| | | JMXMBean mBean = directoryServer.mBeans.get(componentDN); |
| | | if (mBean != null) |
| | |
| | | */ |
| | | public static void registerInvokableComponent(InvokableComponent component) |
| | | { |
| | | |
| | | DN componentDN = component.getInvokableComponentEntryDN(); |
| | | JMXMBean mBean = directoryServer.mBeans.get(componentDN); |
| | | if (mBean == null) |
| | |
| | | */ |
| | | public static void deregisterInvokableComponent(InvokableComponent component) |
| | | { |
| | | |
| | | DN componentDN = component.getInvokableComponentEntryDN(); |
| | | JMXMBean mBean = directoryServer.mBeans.get(componentDN); |
| | | if (mBean != null) |
| | |
| | | */ |
| | | public static void registerAlertGenerator(AlertGenerator alertGenerator) |
| | | { |
| | | |
| | | DN componentDN = alertGenerator.getComponentEntryDN(); |
| | | JMXMBean mBean = directoryServer.mBeans.get(componentDN); |
| | | if (mBean == null) |
| | |
| | | */ |
| | | public static void deregisterAlertGenerator(AlertGenerator alertGenerator) |
| | | { |
| | | |
| | | DN componentDN = alertGenerator.getComponentEntryDN(); |
| | | JMXMBean mBean = directoryServer.mBeans.get(componentDN); |
| | | if (mBean != null) |
| | |
| | | */ |
| | | public static CopyOnWriteArrayList<AlertHandler> getAlertHandlers() |
| | | { |
| | | |
| | | return directoryServer.alertHandlers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerAlertHandler(AlertHandler alertHandler) |
| | | { |
| | | |
| | | directoryServer.alertHandlers.add(alertHandler); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterAlertHandler(AlertHandler alertHandler) |
| | | { |
| | | |
| | | directoryServer.alertHandlers.remove(alertHandler); |
| | | } |
| | | |
| | |
| | | String alertType, int alertID, |
| | | String alertMessage) |
| | | { |
| | | |
| | | |
| | | if ((directoryServer.alertHandlers == null) || |
| | | directoryServer.alertHandlers.isEmpty()) |
| | | { |
| | |
| | | public static ConcurrentHashMap<String,PasswordStorageScheme> |
| | | getPasswordStorageSchemes() |
| | | { |
| | | |
| | | return directoryServer.passwordStorageSchemes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static PasswordStorageScheme getPasswordStorageScheme(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.passwordStorageSchemes.get(lowerName); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<String,PasswordStorageScheme> |
| | | getAuthPasswordStorageSchemes() |
| | | { |
| | | |
| | | return directoryServer.authPasswordStorageSchemes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static PasswordStorageScheme getAuthPasswordStorageScheme(String name) |
| | | { |
| | | |
| | | return directoryServer.authPasswordStorageSchemes.get(name); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerPasswordStorageScheme(PasswordStorageScheme scheme) |
| | | { |
| | | |
| | | String name = toLowerCase(scheme.getStorageSchemeName()); |
| | | directoryServer.passwordStorageSchemes.put(name, scheme); |
| | | |
| | |
| | | */ |
| | | public static void deregisterPasswordStorageScheme(String lowerName) |
| | | { |
| | | |
| | | PasswordStorageScheme scheme = |
| | | directoryServer.passwordStorageSchemes.remove(lowerName); |
| | | |
| | |
| | | */ |
| | | public static ConcurrentHashMap<DN,PasswordValidator> getPasswordValidators() |
| | | { |
| | | |
| | | return directoryServer.passwordValidators; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static PasswordValidator getPasswordValidator(DN configEntryDN) |
| | | { |
| | | |
| | | return directoryServer.passwordValidators.get(configEntryDN); |
| | | } |
| | | |
| | |
| | | public static void registerPasswordValidator(DN configEntryDN, |
| | | PasswordValidator validator) |
| | | { |
| | | |
| | | directoryServer.passwordValidators.put(configEntryDN, validator); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterPasswordValidator(DN configEntryDN) |
| | | { |
| | | |
| | | directoryServer.passwordValidators.remove(configEntryDN); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<DN,AccountStatusNotificationHandler> |
| | | getAccountStatusNotificationHandlers() |
| | | { |
| | | |
| | | return directoryServer.accountStatusNotificationHandlers; |
| | | } |
| | | |
| | |
| | | public static AccountStatusNotificationHandler |
| | | getAccountStatusNotificationHandler(DN handlerDN) |
| | | { |
| | | |
| | | return directoryServer.accountStatusNotificationHandlers.get(handlerDN); |
| | | } |
| | | |
| | |
| | | public static void registerAccountStatusNotificationHandler(DN handlerDN, |
| | | AccountStatusNotificationHandler handler) |
| | | { |
| | | |
| | | directoryServer.accountStatusNotificationHandlers.put(handlerDN, handler); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterAccountStatusNotificationHandler(DN handlerDN) |
| | | { |
| | | |
| | | directoryServer.accountStatusNotificationHandlers.remove(handlerDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ConcurrentHashMap<DN,PasswordGenerator> getPasswordGenerators() |
| | | { |
| | | |
| | | return directoryServer.passwordGenerators; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static PasswordGenerator getPasswordGenerator(DN configEntryDN) |
| | | { |
| | | |
| | | return directoryServer.passwordGenerators.get(configEntryDN); |
| | | } |
| | | |
| | |
| | | public static void registerPasswordGenerator(DN configEntryDN, |
| | | PasswordGenerator generator) |
| | | { |
| | | |
| | | directoryServer.passwordGenerators.put(configEntryDN, generator); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterPasswordGenerator(DN configEntryDN) |
| | | { |
| | | |
| | | directoryServer.passwordGenerators.remove(configEntryDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static PasswordPolicy[] getPasswordPolicies() |
| | | { |
| | | |
| | | // The password policy objects are returned in an array to prevent the |
| | | // caller from modifying the map structure. |
| | | PasswordPolicyConfig[] values = directoryServer.passwordPolicies.values() |
| | |
| | | */ |
| | | public static DN getDefaultPasswordPolicyDN() |
| | | { |
| | | |
| | | return directoryServer.defaultPasswordPolicyDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setDefaultPasswordPolicyDN(DN defaultPasswordPolicyDN) |
| | | { |
| | | |
| | | directoryServer.defaultPasswordPolicyDN = defaultPasswordPolicyDN; |
| | | directoryServer.defaultPasswordPolicyConfig = null; |
| | | } |
| | |
| | | */ |
| | | public static ConcurrentHashMap<String,MonitorProvider> getMonitorProviders() |
| | | { |
| | | |
| | | return directoryServer.monitorProviders; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static MonitorProvider getMonitorProvider(String lowerName) |
| | | { |
| | | |
| | | return directoryServer.monitorProviders.get(lowerName); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerMonitorProvider(MonitorProvider monitorProvider) |
| | | { |
| | | |
| | | String lowerName = toLowerCase(monitorProvider.getMonitorInstanceName()); |
| | | directoryServer.monitorProviders.put(lowerName, monitorProvider); |
| | | |
| | |
| | | */ |
| | | public static void deregisterMonitorProvider(String lowerName) |
| | | { |
| | | |
| | | MonitorProvider provider = |
| | | directoryServer.monitorProviders.remove(toLowerCase(lowerName)); |
| | | |
| | |
| | | */ |
| | | public static EntryCache getEntryCache() |
| | | { |
| | | |
| | | return directoryServer.entryCache; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setEntryCache(EntryCache entryCache) |
| | | { |
| | | |
| | | synchronized (directoryServer) |
| | | { |
| | | directoryServer.entryCache = entryCache; |
| | |
| | | */ |
| | | public static Map<DN,KeyManagerProvider> getKeyManagerProviders() |
| | | { |
| | | |
| | | return directoryServer.keyManagerProviders; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static KeyManagerProvider getKeyManagerProvider(DN providerDN) |
| | | { |
| | | |
| | | return directoryServer.keyManagerProviders.get(providerDN); |
| | | } |
| | | |
| | |
| | | public static void registerKeyManagerProvider(DN providerDN, |
| | | KeyManagerProvider provider) |
| | | { |
| | | |
| | | directoryServer.keyManagerProviders.put(providerDN, provider); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterKeyManagerProvider(DN providerDN) |
| | | { |
| | | |
| | | directoryServer.keyManagerProviders.remove(providerDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Map<DN,TrustManagerProvider> getTrustManagerProviders() |
| | | { |
| | | |
| | | return directoryServer.trustManagerProviders; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static TrustManagerProvider getTrustManagerProvider(DN providerDN) |
| | | { |
| | | |
| | | return directoryServer.trustManagerProviders.get(providerDN); |
| | | } |
| | | |
| | |
| | | public static void registerTrustManagerProvider(DN providerDN, |
| | | TrustManagerProvider provider) |
| | | { |
| | | |
| | | directoryServer.trustManagerProviders.put(providerDN, provider); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterTrustManagerProvider(DN providerDN) |
| | | { |
| | | |
| | | directoryServer.trustManagerProviders.remove(providerDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Map<DN,CertificateMapper> getCertificateMappers() |
| | | { |
| | | |
| | | return directoryServer.certificateMappers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static CertificateMapper getCertificateMapper(DN mapperDN) |
| | | { |
| | | |
| | | return directoryServer.certificateMappers.get(mapperDN); |
| | | } |
| | | |
| | |
| | | public static void registerCertificateMapper(DN mapperDN, |
| | | CertificateMapper mapper) |
| | | { |
| | | |
| | | directoryServer.certificateMappers.put(mapperDN, mapper); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterCertificateMapper(DN mapperDN) |
| | | { |
| | | |
| | | directoryServer.certificateMappers.remove(mapperDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Set<Privilege> getRootPrivileges() |
| | | { |
| | | |
| | | return directoryServer.rootDNConfigManager.getRootPrivileges(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static CopyOnWriteArraySet<DN> getRootDNs() |
| | | { |
| | | |
| | | return directoryServer.rootDNs; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean isRootDN(DN userDN) |
| | | { |
| | | |
| | | return directoryServer.rootDNs.contains(userDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerRootDN(DN rootDN) |
| | | { |
| | | |
| | | directoryServer.rootDNs.add(rootDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterRootDN(DN rootDN) |
| | | { |
| | | |
| | | directoryServer.rootDNs.remove(rootDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ConcurrentHashMap<DN,DN> getAlternateRootBindDNs() |
| | | { |
| | | |
| | | return directoryServer.alternateRootBindDNs; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static DN getActualRootBindDN(DN alternateRootBindDN) |
| | | { |
| | | |
| | | return directoryServer.alternateRootBindDNs.get(alternateRootBindDN); |
| | | } |
| | | |
| | |
| | | DN alternateRootBindDN) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | DN existingRootEntryDN = |
| | | directoryServer.alternateRootBindDNs.putIfAbsent(alternateRootBindDN, |
| | | actualRootEntryDN); |
| | |
| | | */ |
| | | public static DN deregisterAlternateRootBindDN(DN alternateRootBindDN) |
| | | { |
| | | |
| | | return directoryServer.alternateRootBindDNs.remove(alternateRootBindDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ResultCode getServerErrorResultCode() |
| | | { |
| | | |
| | | return directoryServer.serverErrorResultCode; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setServerErrorResultCode(ResultCode serverErrorResultCode) |
| | | { |
| | | |
| | | directoryServer.serverErrorResultCode = serverErrorResultCode; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean addMissingRDNAttributes() |
| | | { |
| | | |
| | | return directoryServer.addMissingRDNAttributes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setAddMissingRDNAttributes(boolean addMissingRDNAttributes) |
| | | { |
| | | |
| | | directoryServer.addMissingRDNAttributes = addMissingRDNAttributes; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean allowAttributeNameExceptions() |
| | | { |
| | | |
| | | return directoryServer.allowAttributeNameExceptions; |
| | | } |
| | | |
| | |
| | | public static void setAllowAttributeNameExceptions( |
| | | boolean allowAttributeNameExceptions) |
| | | { |
| | | |
| | | directoryServer.allowAttributeNameExceptions = allowAttributeNameExceptions; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean checkSchema() |
| | | { |
| | | |
| | | return directoryServer.checkSchema; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setCheckSchema(boolean checkSchema) |
| | | { |
| | | |
| | | directoryServer.checkSchema = checkSchema; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AcceptRejectWarn getSingleStructuralObjectClassPolicy() |
| | | { |
| | | |
| | | return directoryServer.singleStructuralClassPolicy; |
| | | } |
| | | |
| | |
| | | public static void setSingleStructuralObjectClassPolicy( |
| | | AcceptRejectWarn singleStructuralClassPolicy) |
| | | { |
| | | |
| | | directoryServer.singleStructuralClassPolicy = singleStructuralClassPolicy; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static AcceptRejectWarn getSyntaxEnforcementPolicy() |
| | | { |
| | | |
| | | return directoryServer.syntaxEnforcementPolicy; |
| | | } |
| | | |
| | |
| | | public static void setSyntaxEnforcementPolicy( |
| | | AcceptRejectWarn syntaxEnforcementPolicy) |
| | | { |
| | | |
| | | directoryServer.syntaxEnforcementPolicy = syntaxEnforcementPolicy; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean notifyAbandonedOperations() |
| | | { |
| | | |
| | | return directoryServer.notifyAbandonedOperations; |
| | | } |
| | | |
| | |
| | | public static void setNotifyAbandonedOperations( |
| | | boolean notifyAbandonedOperations) |
| | | { |
| | | |
| | | directoryServer.notifyAbandonedOperations = notifyAbandonedOperations; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Map<String,Backend> getBackends() |
| | | { |
| | | |
| | | return directoryServer.backends; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Backend getBackend(String backendID) |
| | | { |
| | | |
| | | return directoryServer.backends.get(backendID); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean hasBackend(String backendID) |
| | | { |
| | | |
| | | return directoryServer.backends.containsKey(backendID); |
| | | } |
| | | |
| | |
| | | public static void registerBackend(Backend backend) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | ensureNotNull(backend); |
| | | |
| | | String backendID = backend.getBackendID(); |
| | |
| | | */ |
| | | public static void deregisterBackend(Backend backend) |
| | | { |
| | | |
| | | ensureNotNull(backend); |
| | | |
| | | synchronized (directoryServer) |
| | |
| | | */ |
| | | public static Map<DN,Backend> getBaseDNs() |
| | | { |
| | | |
| | | return directoryServer.baseDNs; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Backend getBackendWithBaseDN(DN baseDN) |
| | | { |
| | | |
| | | return directoryServer.baseDNs.get(baseDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Backend getBackend(DN entryDN) |
| | | { |
| | | |
| | | if (entryDN.isNullDN()) |
| | | { |
| | | return directoryServer.rootDSEBackend; |
| | |
| | | boolean isPrivate, boolean testOnly) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | ensureNotNull(baseDN, backend); |
| | | |
| | | synchronized (directoryServer) |
| | |
| | | public static void deregisterBaseDN(DN baseDN, boolean testOnly) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | ensureNotNull(baseDN); |
| | | |
| | | synchronized (directoryServer) |
| | |
| | | */ |
| | | public static Map<DN,Backend> getPublicNamingContexts() |
| | | { |
| | | |
| | | return directoryServer.publicNamingContexts; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static Map<DN,Backend> getPrivateNamingContexts() |
| | | { |
| | | |
| | | return directoryServer.privateNamingContexts; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean isNamingContext(DN dn) |
| | | { |
| | | |
| | | return (directoryServer.publicNamingContexts.containsKey(dn) || |
| | | directoryServer.privateNamingContexts.containsKey(dn)); |
| | | } |
| | |
| | | */ |
| | | public static Entry getRootDSE() |
| | | { |
| | | |
| | | return directoryServer.rootDSEBackend.getRootDSE(); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static RootDSEBackend getRootDSEBackend() |
| | | { |
| | | |
| | | return directoryServer.rootDSEBackend; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static DN getSchemaDN() |
| | | { |
| | | |
| | | return directoryServer.schemaDN; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setSchemaDN(DN schemaDN) |
| | | { |
| | | |
| | | directoryServer.schemaDN = schemaDN; |
| | | } |
| | | |
| | |
| | | public static Entry getEntry(DN entryDN) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | // If the entry is the root DSE, then get and return that. |
| | | if (entryDN.isNullDN()) |
| | | { |
| | |
| | | public static boolean entryExists(DN entryDN) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | // If the entry is the root DSE, then it will always exist. |
| | | if (entryDN.isNullDN()) |
| | | { |
| | |
| | | */ |
| | | public static TreeSet<String> getSupportedControls() |
| | | { |
| | | |
| | | return directoryServer.supportedControls; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean isSupportedControl(String controlOID) |
| | | { |
| | | |
| | | return directoryServer.supportedControls.contains(controlOID); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerSupportedControl(String controlOID) |
| | | { |
| | | |
| | | synchronized (directoryServer.supportedControls) |
| | | { |
| | | directoryServer.supportedControls.add(controlOID); |
| | |
| | | */ |
| | | public static void deregisterSupportedControl(String controlOID) |
| | | { |
| | | |
| | | synchronized (directoryServer.supportedControls) |
| | | { |
| | | directoryServer.supportedControls.remove(controlOID); |
| | |
| | | */ |
| | | public static TreeSet<String> getSupportedFeatures() |
| | | { |
| | | |
| | | return directoryServer.supportedFeatures; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean isSupportedFeature(String featureOID) |
| | | { |
| | | |
| | | return directoryServer.supportedFeatures.contains(featureOID); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerSupportedFeature(String featureOID) |
| | | { |
| | | |
| | | synchronized (directoryServer.supportedFeatures) |
| | | { |
| | | directoryServer.supportedFeatures.add(featureOID); |
| | |
| | | */ |
| | | public static void deregisterSupportedFeature(String featureOID) |
| | | { |
| | | |
| | | synchronized (directoryServer.supportedFeatures) |
| | | { |
| | | directoryServer.supportedFeatures.remove(featureOID); |
| | |
| | | public static ConcurrentHashMap<String,ExtendedOperationHandler> |
| | | getSupportedExtensions() |
| | | { |
| | | |
| | | return directoryServer.extendedOperationHandlers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static ExtendedOperationHandler getExtendedOperationHandler(String oid) |
| | | { |
| | | |
| | | return directoryServer.extendedOperationHandlers.get(oid); |
| | | } |
| | | |
| | |
| | | public static void registerSupportedExtension(String oid, |
| | | ExtendedOperationHandler handler) |
| | | { |
| | | |
| | | directoryServer.extendedOperationHandlers.put(toLowerCase(oid), handler); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterSupportedExtension(String oid) |
| | | { |
| | | |
| | | directoryServer.extendedOperationHandlers.remove(toLowerCase(oid)); |
| | | } |
| | | |
| | |
| | | public static ConcurrentHashMap<String,SASLMechanismHandler> |
| | | getSupportedSASLMechanisms() |
| | | { |
| | | |
| | | return directoryServer.saslMechanismHandlers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static SASLMechanismHandler getSASLMechanismHandler(String name) |
| | | { |
| | | |
| | | return directoryServer.saslMechanismHandlers.get(name); |
| | | } |
| | | |
| | |
| | | public static void registerSASLMechanismHandler(String name, |
| | | SASLMechanismHandler handler) |
| | | { |
| | | |
| | | // FIXME -- Should we force this name to be lowercase? If so, then will |
| | | // that cause the lower name to be used in the root DSE? |
| | | directoryServer.saslMechanismHandlers.put(name, handler); |
| | |
| | | */ |
| | | public static void deregisterSASLMechanismHandler(String name) |
| | | { |
| | | |
| | | // FIXME -- Should we force this name to be lowercase? |
| | | directoryServer.saslMechanismHandlers.remove(name); |
| | | } |
| | |
| | | */ |
| | | public static ConcurrentHashMap<DN,IdentityMapper> getIdentityMappers() |
| | | { |
| | | |
| | | return directoryServer.identityMappers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static IdentityMapper getIdentityMapper(DN configEntryDN) |
| | | { |
| | | |
| | | return directoryServer.identityMappers.get(configEntryDN); |
| | | } |
| | | |
| | |
| | | public static void registerIdentityMapper(DN configEntryDN, |
| | | IdentityMapper identityMapper) |
| | | { |
| | | |
| | | directoryServer.identityMappers.put(configEntryDN, identityMapper); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterIdentityMapper(DN configEntryDN) |
| | | { |
| | | |
| | | directoryServer.identityMappers.remove(configEntryDN); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static DN getProxiedAuthorizationIdentityMapperDN() |
| | | { |
| | | |
| | | return directoryServer.proxiedAuthorizationIdentityMapperDN; |
| | | } |
| | | |
| | |
| | | public static void setProxiedAuthorizationIdentityMapperDN( |
| | | DN proxiedAuthorizationIdentityMapperDN) |
| | | { |
| | | |
| | | directoryServer.proxiedAuthorizationIdentityMapperDN = |
| | | proxiedAuthorizationIdentityMapperDN; |
| | | } |
| | |
| | | */ |
| | | public static IdentityMapper getProxiedAuthorizationIdentityMapper() |
| | | { |
| | | |
| | | if (directoryServer.proxiedAuthorizationIdentityMapperDN == null) |
| | | { |
| | | return null; |
| | |
| | | */ |
| | | public static CopyOnWriteArrayList<ConnectionHandler> getConnectionHandlers() |
| | | { |
| | | |
| | | return directoryServer.connectionHandlers; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerConnectionHandler(ConnectionHandler handler) |
| | | { |
| | | |
| | | synchronized (directoryServer.connectionHandlers) |
| | | { |
| | | directoryServer.connectionHandlers.add(handler); |
| | |
| | | */ |
| | | public static void deregisterConnectionHandler(ConnectionHandler handler) |
| | | { |
| | | |
| | | synchronized (directoryServer.connectionHandlers) |
| | | { |
| | | directoryServer.connectionHandlers.remove(handler); |
| | |
| | | private void initializeWorkQueue() |
| | | throws ConfigException, InitializationException |
| | | { |
| | | |
| | | DN configEntryDN; |
| | | try |
| | | { |
| | |
| | | */ |
| | | public static WorkQueue getWorkQueue() |
| | | { |
| | | |
| | | return directoryServer.workQueue; |
| | | } |
| | | |
| | |
| | | public static void enqueueRequest(Operation operation) |
| | | throws DirectoryException |
| | | { |
| | | |
| | | |
| | | // See if a bind is already in progress on the associated connection. If so |
| | | // then reject the operation. |
| | | ClientConnection clientConnection = operation.getClientConnection(); |
| | |
| | | public static CopyOnWriteArrayList<ChangeNotificationListener> |
| | | getChangeNotificationListeners() |
| | | { |
| | | |
| | | return directoryServer.changeNotificationListeners; |
| | | } |
| | | |
| | |
| | | public static void registerChangeNotificationListener( |
| | | ChangeNotificationListener changeListener) |
| | | { |
| | | |
| | | directoryServer.changeNotificationListeners.add(changeListener); |
| | | } |
| | | |
| | |
| | | public static void deregisterChangeNotificationListener( |
| | | ChangeNotificationListener changeListener) |
| | | { |
| | | |
| | | directoryServer.changeNotificationListeners.remove(changeListener); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static CopyOnWriteArrayList<PersistentSearch> getPersistentSearches() |
| | | { |
| | | |
| | | return directoryServer.persistentSearches; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerPersistentSearch(PersistentSearch persistentSearch) |
| | | { |
| | | |
| | | directoryServer.persistentSearches.add(persistentSearch); |
| | | persistentSearch.getSearchOperation().getClientConnection(). |
| | | registerPersistentSearch(persistentSearch); |
| | |
| | | public static void deregisterPersistentSearch(PersistentSearch |
| | | persistentSearch) |
| | | { |
| | | |
| | | directoryServer.persistentSearches.remove(persistentSearch); |
| | | persistentSearch.getSearchOperation().getClientConnection(). |
| | | deregisterPersistentSearch(persistentSearch); |
| | |
| | | public static CopyOnWriteArrayList<SynchronizationProvider> |
| | | getSynchronizationProviders() |
| | | { |
| | | |
| | | return directoryServer.synchronizationProviders; |
| | | } |
| | | |
| | |
| | | public static void registerSynchronizationProvider(SynchronizationProvider |
| | | provider) |
| | | { |
| | | |
| | | directoryServer.synchronizationProviders.add(provider); |
| | | } |
| | | |
| | |
| | | public static void deregisterSynchronizationProvider(SynchronizationProvider |
| | | provider) |
| | | { |
| | | |
| | | directoryServer.synchronizationProviders.remove(provider); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void registerShutdownListener(ServerShutdownListener listener) |
| | | { |
| | | |
| | | directoryServer.shutdownListeners.add(listener); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void deregisterShutdownListener(ServerShutdownListener listener) |
| | | { |
| | | |
| | | directoryServer.shutdownListeners.remove(listener); |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void shutDown(String className, String reason) |
| | | { |
| | | |
| | | synchronized (directoryServer) |
| | | { |
| | | if (directoryServer.shuttingDown) |
| | |
| | | */ |
| | | public static void restart(String className, String reason) |
| | | { |
| | | |
| | | try |
| | | { |
| | | String configClass = directoryServer.configClass; |
| | |
| | | */ |
| | | public static long getMaxAllowedConnections() |
| | | { |
| | | |
| | | return directoryServer.maxAllowedConnections; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setMaxAllowedConnections(long maxAllowedConnections) |
| | | { |
| | | |
| | | if (maxAllowedConnections > 0) |
| | | { |
| | | directoryServer.maxAllowedConnections = maxAllowedConnections; |
| | |
| | | */ |
| | | public static long newConnectionAccepted(ClientConnection clientConnection) |
| | | { |
| | | |
| | | synchronized (directoryServer.establishedConnections) |
| | | { |
| | | if ((directoryServer.maxAllowedConnections > 0) && |
| | |
| | | */ |
| | | public static void connectionClosed(ClientConnection clientConnection) |
| | | { |
| | | |
| | | synchronized (directoryServer.establishedConnections) |
| | | { |
| | | directoryServer.establishedConnections.remove(clientConnection); |
| | |
| | | */ |
| | | public static long getCurrentConnections() |
| | | { |
| | | |
| | | return directoryServer.currentConnections; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static long getMaxConnections() |
| | | { |
| | | |
| | | return directoryServer.maxConnections; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static long getTotalConnections() |
| | | { |
| | | |
| | | return directoryServer.totalConnections; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static int getSizeLimit() |
| | | { |
| | | |
| | | return directoryServer.sizeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setSizeLimit(int sizeLimit) |
| | | { |
| | | |
| | | directoryServer.sizeLimit = sizeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static int getLookthroughLimit() |
| | | { |
| | | |
| | | return directoryServer.lookthroughLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setLookthroughLimit(int lookthroughLimit) |
| | | { |
| | | |
| | | directoryServer.lookthroughLimit = lookthroughLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static int getTimeLimit() |
| | | { |
| | | |
| | | return directoryServer.timeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setTimeLimit(int timeLimit) |
| | | { |
| | | |
| | | directoryServer.timeLimit = timeLimit; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static WritabilityMode getWritabilityMode() |
| | | { |
| | | |
| | | return directoryServer.writabilityMode; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static void setWritabilityMode(WritabilityMode writabilityMode) |
| | | { |
| | | |
| | | directoryServer.writabilityMode = writabilityMode; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean bindWithDNRequiresPassword() |
| | | { |
| | | |
| | | return directoryServer.bindWithDNRequiresPassword; |
| | | } |
| | | |
| | |
| | | public static void setBindWithDNRequiresPassword(boolean |
| | | bindWithDNRequiresPassword) |
| | | { |
| | | |
| | | directoryServer.bindWithDNRequiresPassword = bindWithDNRequiresPassword; |
| | | } |
| | | |
| | |
| | | */ |
| | | public static boolean rejectUnauthenticatedRequests() |
| | | { |
| | | |
| | | return directoryServer.rejectUnauthenticatedRequests; |
| | | } |
| | | |
| | |
| | | public static void setRejectUnauthenticatedRequests(boolean |
| | | rejectUnauthenticatedRequests) |
| | | { |
| | | |
| | | directoryServer.rejectUnauthenticatedRequests = |
| | | rejectUnauthenticatedRequests; |
| | | } |
| | |
| | | */ |
| | | public DN getComponentEntryDN() |
| | | { |
| | | |
| | | try |
| | | { |
| | | if (configHandler == null) |
| | |
| | | */ |
| | | public String getClassName() |
| | | { |
| | | |
| | | return CLASS_NAME; |
| | | } |
| | | |
| | |
| | | */ |
| | | public void uncaughtException(Thread thread, Throwable exception) |
| | | { |
| | | |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, exception); |