Package org.opends.server.extensions
Class IndexedAttributesChecks
- java.lang.Object
-
- org.opends.server.extensions.IndexedAttributesChecks
-
public final class IndexedAttributesChecks extends Object
Utility class that checks whether attributes indexed.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkAllAttributesAreIndexedForEquality(Dn cfgDn, Set<Dn> cfgBaseDNs, Collection<AttributeType> attrTypes, LocalizableMessageDescriptor.Arg3<Object,Object,Object> notIndexedMsg, ConfigChangeResult ccr)
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)
Checks whether all attribute types are indexed for a given matching rule.static Set<Dn>
getBaseDns(Set<Dn> baseDns)
If we have an explicit set of base DNs, then use it.
-
-
-
Method Detail
-
checkAllAttributesAreIndexedForEquality
public static void checkAllAttributesAreIndexedForEquality(Dn cfgDn, Set<Dn> cfgBaseDNs, Collection<AttributeType> attrTypes, LocalizableMessageDescriptor.Arg3<Object,Object,Object> notIndexedMsg, ConfigChangeResult ccr)
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 typesccr
- 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)
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 typesccr
- where to store the results
-
getBaseDns
public static Set<Dn> getBaseDns(Set<Dn> baseDns)
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 DNs- Returns:
- the provided base DNs if they are not empty, or the public naming contexts
-
-