| | |
| | | |
| | | |
| | | // Add the "namingContexts" attribute. |
| | | Attribute namingContextAttr = |
| | | Attribute publicNamingContextAttr = |
| | | createDNAttribute(ATTR_NAMING_CONTEXTS, ATTR_NAMING_CONTEXTS_LC, |
| | | DirectoryServer.getSuffixes().keySet()); |
| | | ArrayList<Attribute> namingContextAttrs = new ArrayList<Attribute>(1); |
| | | namingContextAttrs.add(namingContextAttr); |
| | | DirectoryServer.getPublicNamingContexts().keySet()); |
| | | ArrayList<Attribute> publicNamingContextAttrs = new ArrayList<Attribute>(1); |
| | | publicNamingContextAttrs.add(publicNamingContextAttr); |
| | | if (showAllAttributes || |
| | | (! namingContextAttr.getAttributeType().isOperational())) |
| | | (! publicNamingContextAttr.getAttributeType().isOperational())) |
| | | { |
| | | dseUserAttrs.put(namingContextAttr.getAttributeType(), |
| | | namingContextAttrs); |
| | | dseUserAttrs.put(publicNamingContextAttr.getAttributeType(), |
| | | publicNamingContextAttrs); |
| | | } |
| | | else |
| | | { |
| | | dseOperationalAttrs.put(namingContextAttr.getAttributeType(), |
| | | namingContextAttrs); |
| | | dseOperationalAttrs.put(publicNamingContextAttr.getAttributeType(), |
| | | publicNamingContextAttrs); |
| | | } |
| | | |
| | | |
| | | // Add the "ds-private-naming-contexts" attribute. |
| | | Attribute privateNamingContextAttr = |
| | | createDNAttribute(ATTR_PRIVATE_NAMING_CONTEXTS, |
| | | ATTR_PRIVATE_NAMING_CONTEXTS, |
| | | DirectoryServer.getPrivateNamingContexts().keySet()); |
| | | ArrayList<Attribute> privateNamingContextAttrs = |
| | | new ArrayList<Attribute>(1); |
| | | privateNamingContextAttrs.add(privateNamingContextAttr); |
| | | if (showAllAttributes || |
| | | (! privateNamingContextAttr.getAttributeType().isOperational())) |
| | | { |
| | | dseUserAttrs.put(privateNamingContextAttr.getAttributeType(), |
| | | privateNamingContextAttrs); |
| | | } |
| | | else |
| | | { |
| | | dseOperationalAttrs.put(privateNamingContextAttr.getAttributeType(), |
| | | privateNamingContextAttrs); |
| | | } |
| | | |
| | | |
| | |
| | | Map<DN,Backend> baseMap; |
| | | if (subordinateBaseDNs == null) |
| | | { |
| | | baseMap = DirectoryServer.getSuffixes(); |
| | | baseMap = DirectoryServer.getPublicNamingContexts(); |
| | | } |
| | | else |
| | | { |
| | |
| | | Map<DN,Backend> baseMap; |
| | | if (subordinateBaseDNs == null) |
| | | { |
| | | baseMap = DirectoryServer.getSuffixes(); |
| | | baseMap = DirectoryServer.getPublicNamingContexts(); |
| | | } |
| | | else |
| | | { |
| | |
| | | case SUBORDINATE_SUBTREE: |
| | | if (subordinateBaseDNs == null) |
| | | { |
| | | baseMap = DirectoryServer.getSuffixes(); |
| | | baseMap = DirectoryServer.getPublicNamingContexts(); |
| | | } |
| | | else |
| | | { |
| | |
| | | |
| | | |
| | | /** |
| | | * Indicates whether this backend supports the specified control. |
| | | * |
| | | * @param controlOID The OID of the control for which to make the |
| | | * determination. |
| | | * |
| | | * @return <CODE>true</CODE> if this backend does support the requested |
| | | * control, or <CODE>false</CODE> |
| | | */ |
| | | public boolean supportsControl(String controlOID) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "supportsControl", |
| | | String.valueOf(controlOID)); |
| | | |
| | | // This backend does not provide any special control support. |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the OIDs of the features that may be supported by this backend. |
| | | * |
| | | * @return The OIDs of the features that may be supported by this backend. |
| | |
| | | |
| | | |
| | | /** |
| | | * Indicates whether this backend supports the specified feature. |
| | | * |
| | | * @param featureOID The OID of the feature for which to make the |
| | | * determination. |
| | | * |
| | | * @return <CODE>true</CODE> if this backend does support the requested |
| | | * feature, or <CODE>false</CODE> |
| | | */ |
| | | public boolean supportsFeature(String featureOID) |
| | | { |
| | | assert debugEnter(CLASS_NAME, "supportsFeature", |
| | | String.valueOf(featureOID)); |
| | | |
| | | // This backend does not provide any special feature support. |
| | | return false; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Indicates whether this backend provides a mechanism to export the data it |
| | | * contains to an LDIF file. |
| | | * |