Interface UniqueAttributePluginCfgClient
- All Superinterfaces:
ConfigurationClient
,PluginCfgClient
The Unique Attribute Plugin enforces constraints on the value of an attribute within a portion of the directory.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition<? extends UniqueAttributePluginCfgClient,
? extends UniqueAttributePluginCfg> Get the configuration definition associated with this Unique Attribute Plugin.Gets the "base-dn" property.Gets the "java-class" property.Gets the "plugin-type" property.getType()
Gets the "type" property.void
setBaseDn
(Collection<ValueOrExpression<Dn>> values) Sets the "base-dn" property.void
setJavaClass
(ValueOrExpression<String> value) Sets the "java-class" property.void
Sets the "plugin-type" property.void
setType
(Collection<ValueOrExpression<AttributeType>> values) Sets the "type" property.Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
Methods inherited from interface org.forgerock.opendj.server.config.client.PluginCfgClient
isEnabled, isInvokeForInternalOperations, setEnabled, setInvokeForInternalOperations
-
Method Details
-
definition
ManagedObjectDefinition<? extends UniqueAttributePluginCfgClient,? extends UniqueAttributePluginCfg> definition()Get the configuration definition associated with this Unique Attribute Plugin.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfacePluginCfgClient
- Returns:
- Returns the configuration definition associated with this Unique Attribute Plugin.
-
getBaseDn
SortedSet<ValueOrExpression<Dn>> getBaseDn()Gets the "base-dn" property.Specifies a base DN within which the attribute must be unique.
- Returns:
- Returns the values of the "base-dn" property.
-
setBaseDn
Sets the "base-dn" property.Specifies a base DN within which the attribute must be unique.
- Parameters:
values
- The values of the "base-dn" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getJavaClass
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the plug-in implementation.
Default value:
org.opends.server.plugins.UniqueAttributePlugin
- Specified by:
getJavaClass
in interfacePluginCfgClient
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the plug-in implementation.
- Specified by:
setJavaClass
in interfacePluginCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
getPluginType
Gets the "plugin-type" property.Specifies the set of plug-in types for the plug-in, which specifies the times at which the plug-in is invoked.
Default values:
preoperationadd
,preoperationmodify
,preoperationmodifydn
,postoperationadd
,postoperationmodify
,postoperationmodifydn
,postsynchronizationadd
,postsynchronizationmodify
,postsynchronizationmodifydn
- Specified by:
getPluginType
in interfacePluginCfgClient
- Returns:
- Returns the values of the "plugin-type" property.
-
setPluginType
@MandatoryProperty void setPluginType(Collection<ValueOrExpression<PluginCfgDefn.PluginType>> values) throws PropertyException Sets the "plugin-type" property.Specifies the set of plug-in types for the plug-in, which specifies the times at which the plug-in is invoked.
- Specified by:
setPluginType
in interfacePluginCfgClient
- Parameters:
values
- The values of the "plugin-type" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getType
Gets the "type" property.Specifies the attribute types to check for value uniqueness. Each attribute value must be unique for all specified attribute types. For example, if both uid and cn types are specified, then each uid and cn value must be unique for all uid and cn attributes under the specified base DN(s).
- Returns:
- Returns the values of the "type" property.
-
setType
@MandatoryProperty void setType(Collection<ValueOrExpression<AttributeType>> values) throws PropertyException Sets the "type" property.Specifies the attribute types to check for value uniqueness. Each attribute value must be unique for all specified attribute types. For example, if both uid and cn types are specified, then each uid and cn value must be unique for all uid and cn attributes under the specified base DN(s).
- Parameters:
values
- The values of the "type" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-