Package org.opends.server.extensions
Class IndexedAttributesChecks
java.lang.Object
org.opends.server.extensions.IndexedAttributesChecks
Utility class that checks whether attributes indexed.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkAllAttributesAreIndexedForEquality
(Dn cfgDn, Set<Dn> cfgBaseDNs, Collection<AttributeType> attrTypes, LocalizableMessageDescriptor.Arg3<Object, Object, Object> notIndexedMsg, ConfigChangeResult ccr, BackendConfigManager backendConfigManager) Checks whether all the attribute types are indexed for equality.static void
checkAllAttributesAreIndexedForExtensibleMatchingRule
(Dn cfgDn, Set<Dn> cfgBaseDNs, Collection<AttributeType> attrTypes, MatchingRule matchingRule, LocalizableMessageDescriptor.Arg4<Object, Object, Object, Object> notIndexedMsg, ConfigChangeResult ccr, BackendConfigManager backendConfigManager) Checks whether all attribute types are indexed for a given matching rule.getBaseDns
(Set<Dn> baseDns, BackendConfigManager backendConfigManager) If we have an explicit set of base DNs, then use it.
-
Method Details
-
checkAllAttributesAreIndexedForEquality
public static void checkAllAttributesAreIndexedForEquality(Dn cfgDn, Set<Dn> cfgBaseDNs, Collection<AttributeType> attrTypes, LocalizableMessageDescriptor.Arg3<Object, Object, Object> notIndexedMsg, ConfigChangeResult ccr, BackendConfigManager backendConfigManager) Checks whether all the attribute types are indexed for equality.- Parameters:
cfgDn
- the configuration DNcfgBaseDNs
- the base DNs to checkattrTypes
- the attribute types to checknotIndexedMsg
- the message to use for unindexed attribute typesbackendConfigManager
- the backend config managerccr
- where to store the results
-
checkAllAttributesAreIndexedForExtensibleMatchingRule
public static void checkAllAttributesAreIndexedForExtensibleMatchingRule(Dn cfgDn, Set<Dn> cfgBaseDNs, Collection<AttributeType> attrTypes, MatchingRule matchingRule, LocalizableMessageDescriptor.Arg4<Object, Object, Object, Object> notIndexedMsg, ConfigChangeResult ccr, BackendConfigManager backendConfigManager) Checks whether all attribute types are indexed for a given matching rule.- Parameters:
cfgDn
- the configuration DNcfgBaseDNs
- the base DNs to checkattrTypes
- the attribute types to checkmatchingRule
- the matching rule to checknotIndexedMsg
- the message to use for unindexed attribute typesbackendConfigManager
- the backend config managerccr
- where to store the results
-
getBaseDns
If we have an explicit set of base DNs, then use it. Otherwise, use the set of public naming contexts in the server.- Parameters:
baseDns
- the provided base DNsbackendConfigManager
- the backend config manager- Returns:
- the provided base DNs if they are not empty, or the public naming contexts
-