Package org.forgerock.opendj.config
Class DnPropertyDefinition.Builder
- java.lang.Object
-
- org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder<Dn,DnPropertyDefinition>
-
- org.forgerock.opendj.config.DnPropertyDefinition.Builder
-
- Enclosing class:
- DnPropertyDefinition
public static final class DnPropertyDefinition.Builder extends PropertyDefinition.AbstractBuilder<Dn,DnPropertyDefinition>
An interface for incrementally constructing DN property definitions.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DnPropertyDefinition
buildInstance(AbstractManagedObjectDefinition<?,?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<Dn>> defaultBehavior, Deprecated deprecated)
Build a property definition based on the properties of this builder.void
setBaseDn(String baseDn)
Set the base DN which all valid values must be immediately subordinate to.void
setBaseDn(Dn baseDN)
Set the base DN which all valid values must be immediately subordinate to.-
Methods inherited from class org.forgerock.opendj.config.PropertyDefinition.AbstractBuilder
getInstance, setAdministratorAction, setDefaultBehaviorProvider, setDeprecated, setOption
-
-
-
-
Method Detail
-
setBaseDn
public void setBaseDn(String baseDn)
Set the base DN which all valid values must be immediately subordinate to. By default there is no based DN.- Parameters:
baseDn
- The string representation of the base DN.- Throws:
IllegalArgumentException
- If the provided string is not a valid DN string representation.
-
setBaseDn
public void setBaseDn(Dn baseDN)
Set the base DN which all valid values must be immediately subordinate to. By default there is no based DN.- Parameters:
baseDN
- The base DN.
-
buildInstance
protected DnPropertyDefinition buildInstance(AbstractManagedObjectDefinition<?,?> d, String propertyName, EnumSet<PropertyOption> options, AdministratorAction adminAction, DefaultBehaviorProvider<ValueOrExpression<Dn>> defaultBehavior, Deprecated deprecated)
Description copied from class:PropertyDefinition.AbstractBuilder
Build a property definition based on the properties of this builder.- Specified by:
buildInstance
in classPropertyDefinition.AbstractBuilder<Dn,DnPropertyDefinition>
- Parameters:
d
- The managed object definition associated with this property definition.propertyName
- The property name.options
- Options applicable to this definition.adminAction
- The administrator action.defaultBehavior
- The default behavior provider.deprecated
- The deprecation description.- Returns:
- The new property definition.
-
-