Interface BackendIndexCfgClient
-
- All Superinterfaces:
ConfigurationClient
public interface BackendIndexCfgClient extends ConfigurationClient
A client-side interface for reading and modifying Backend Index settings.Backend Indexes are used to store information that makes it possible to locate entries very quickly when processing search operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends BackendIndexCfgClient,? extends BackendIndexCfg>definition()Get the configuration definition associated with this Backend Index.org.forgerock.opendj.ldap.schema.AttributeTypegetAttribute()Gets the "attribute" property.IntegergetIndexEntryLimit()Gets the "index-entry-limit" property.SortedSet<String>getIndexExtensibleMatchingRule()Gets the "index-extensible-matching-rule" property.SortedSet<BackendIndexCfgDefn.IndexType>getIndexType()Gets the "index-type" property.intgetSubstringLength()Gets the "substring-length" property.booleanisConfidentialityEnabled()Gets the "confidentiality-enabled" property.voidsetAttribute(org.forgerock.opendj.ldap.schema.AttributeType value)Sets the "attribute" property.voidsetConfidentialityEnabled(Boolean value)Sets the "confidentiality-enabled" property.voidsetIndexEntryLimit(Integer value)Sets the "index-entry-limit" property.voidsetIndexExtensibleMatchingRule(Collection<String> values)Sets the "index-extensible-matching-rule" property.voidsetIndexType(Collection<BackendIndexCfgDefn.IndexType> values)Sets the "index-type" property.voidsetSubstringLength(Integer value)Sets the "substring-length" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends BackendIndexCfgClient,? extends BackendIndexCfg> definition()
Get the configuration definition associated with this Backend Index.- Specified by:
definitionin interfaceConfigurationClient- Returns:
- Returns the configuration definition associated with this Backend Index.
-
getAttribute
org.forgerock.opendj.ldap.schema.AttributeType getAttribute()
Gets the "attribute" property.Specifies the name of the attribute for which the index is to be maintained.
- Returns:
- Returns the value of the "attribute" property.
-
setAttribute
void setAttribute(org.forgerock.opendj.ldap.schema.AttributeType value) throws PropertyException, PropertyExceptionSets the "attribute" property.Specifies the name of the attribute for which the index is to be maintained.
This property is read-only and can only be modified during creation of a Backend Index.
- Parameters:
value- The value of the "attribute" property.- Throws:
PropertyException- If the new value is invalid.PropertyException- If this Backend Index is not being initialized.
-
isConfidentialityEnabled
boolean isConfidentialityEnabled()
Gets the "confidentiality-enabled" property.Specifies whether contents of the index should be confidential.
Setting the flag to true will hash keys for equality type indexes using SHA-1 and encrypt the list of entries matching a substring key for substring indexes.
- Returns:
- Returns the value of the "confidentiality-enabled" property.
-
setConfidentialityEnabled
void setConfidentialityEnabled(Boolean value) throws PropertyException
Sets the "confidentiality-enabled" property.Specifies whether contents of the index should be confidential.
Setting the flag to true will hash keys for equality type indexes using SHA-1 and encrypt the list of entries matching a substring key for substring indexes.
- Parameters:
value- The value of the "confidentiality-enabled" property.- Throws:
PropertyException- If the new value is invalid.
-
getIndexEntryLimit
Integer getIndexEntryLimit()
Gets the "index-entry-limit" property.Specifies the maximum number of entries that are allowed to match a given index key before that particular index key is no longer maintained.
This is analogous to the ALL IDs threshold in the Sun Java System Directory Server. If this is specified, its value overrides the JE backend-wide configuration. For no limit, use 0 for the value.
- Returns:
- Returns the value of the "index-entry-limit" property.
-
setIndexEntryLimit
void setIndexEntryLimit(Integer value) throws PropertyException
Sets the "index-entry-limit" property.Specifies the maximum number of entries that are allowed to match a given index key before that particular index key is no longer maintained.
This is analogous to the ALL IDs threshold in the Sun Java System Directory Server. If this is specified, its value overrides the JE backend-wide configuration. For no limit, use 0 for the value.
- Parameters:
value- The value of the "index-entry-limit" property.- Throws:
PropertyException- If the new value is invalid.
-
getIndexExtensibleMatchingRule
SortedSet<String> getIndexExtensibleMatchingRule()
Gets the "index-extensible-matching-rule" property.The extensible matching rule in an extensible index.
An extensible matching rule must be specified using either LOCALE or OID of the matching rule.
- Returns:
- Returns the values of the "index-extensible-matching-rule" property.
-
setIndexExtensibleMatchingRule
void setIndexExtensibleMatchingRule(Collection<String> values) throws PropertyException
Sets the "index-extensible-matching-rule" property.The extensible matching rule in an extensible index.
An extensible matching rule must be specified using either LOCALE or OID of the matching rule.
- Parameters:
values- The values of the "index-extensible-matching-rule" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
getIndexType
SortedSet<BackendIndexCfgDefn.IndexType> getIndexType()
Gets the "index-type" property.Specifies the type(s) of indexing that should be performed for the associated attribute.
For equality, presence, and substring index types, the associated attribute type must have a corresponding matching rule.
- Returns:
- Returns the values of the "index-type" property.
-
setIndexType
void setIndexType(Collection<BackendIndexCfgDefn.IndexType> values) throws PropertyException
Sets the "index-type" property.Specifies the type(s) of indexing that should be performed for the associated attribute.
For equality, presence, and substring index types, the associated attribute type must have a corresponding matching rule.
- Parameters:
values- The values of the "index-type" property.- Throws:
PropertyException- If one or more of the new values are invalid.
-
getSubstringLength
int getSubstringLength()
Gets the "substring-length" property.The length of substrings in a substring index.
- Returns:
- Returns the value of the "substring-length" property.
-
setSubstringLength
void setSubstringLength(Integer value) throws PropertyException
Sets the "substring-length" property.The length of substrings in a substring index.
- Parameters:
value- The value of the "substring-length" property.- Throws:
PropertyException- If the new value is invalid.
-
-