public static final class DitStructureRule.Builder extends Object
Modifier and Type | Method and Description |
---|---|
SchemaBuilder |
addToSchema()
Adds this DIT structure rule to the schema, throwing a
ConflictingSchemaElementException if there is an existing DIT
structure rule with the same numeric ID. |
SchemaBuilder |
addToSchemaOverwrite()
Adds this DIT structure rule to the schema overwriting any existing
DIT structure rule with the same numeric ID.
|
DitStructureRule.Builder |
description(String description)
Sets the description.
|
DitStructureRule.Builder |
extraProperties(Map<String,List<String>> extraProperties)
Adds the provided collection of extended properties.
|
T |
extraProperties(String extensionName,
List<String> extensionValues)
Adds the provided extended property.
|
DitStructureRule.Builder |
extraProperties(String extensionName,
String... extensionValues)
Adds the provided extended property.
|
DitStructureRule.Builder |
nameForm(String nameFormOID)
Sets the name form associated with the DIT structure rule.
|
DitStructureRule.Builder |
names(Collection<String> names)
Adds the provided user friendly names.
|
DitStructureRule.Builder |
names(String... names)
Adds the provided user friendly names.
|
DitStructureRule.Builder |
obsolete(boolean isObsolete)
Specifies whether this schema element is obsolete.
|
DitStructureRule.Builder |
removeAllExtraProperties()
Removes all extra properties.
|
DitStructureRule.Builder |
removeAllNames()
Removes all user defined names.
|
DitStructureRule.Builder |
removeAllSuperiorRules()
Removes all superior rules.
|
DitStructureRule.Builder |
removeExtraProperty(String extensionName,
String... extensionValues)
Removes the specified extended property.
|
DitStructureRule.Builder |
removeName(String name)
Removes the provided user defined name.
|
DitStructureRule.Builder |
removeSuperiorRule(int superiorRuleId)
Removes the provided superior rule.
|
DitStructureRule.Builder |
ruleId(int ruleId)
Sets the the numeric ID which uniquely identifies this structure rule.
|
DitStructureRule.Builder |
superiorRules(int... superiorRuleIds)
Adds the provided superior rule identifiers.
|
public SchemaBuilder addToSchema()
ConflictingSchemaElementException
if there is an existing DIT
structure rule with the same numeric ID.ConflictingSchemaElementException
- If there is an existing structure rule with the same
numeric ID.public SchemaBuilder addToSchemaOverwrite()
public DitStructureRule.Builder description(String description)
description
- The description, which may be null
in which case
the empty string will be used.public DitStructureRule.Builder extraProperties(Map<String,List<String>> extraProperties)
extraProperties
- The collection of extended properties.public DitStructureRule.Builder extraProperties(String extensionName, String... extensionValues)
extensionName
- The name of the extended property.extensionValues
- The optional list of values for the extended property.public DitStructureRule.Builder nameForm(String nameFormOID)
nameFormOID
- The name form numeric OID.public DitStructureRule.Builder names(Collection<String> names)
names
- The user friendly names.public DitStructureRule.Builder names(String... names)
names
- The user friendly names.public DitStructureRule.Builder obsolete(boolean isObsolete)
isObsolete
- true
if this schema element is obsolete
(default is false
).public DitStructureRule.Builder removeAllExtraProperties()
public DitStructureRule.Builder removeAllNames()
public DitStructureRule.Builder removeAllSuperiorRules()
public DitStructureRule.Builder removeExtraProperty(String extensionName, String... extensionValues)
extensionName
- The name of the extended property.extensionValues
- The optional list of values for the extended property,
which may be empty indicating that the entire property
should be removed.public DitStructureRule.Builder removeName(String name)
name
- The user defined name to be removed.public DitStructureRule.Builder removeSuperiorRule(int superiorRuleId)
superiorRuleId
- The superior rule ID to be removed.public DitStructureRule.Builder ruleId(int ruleId)
ruleId
- The numeric ID.public DitStructureRule.Builder superiorRules(int... superiorRuleIds)
superiorRuleIds
- Structure rule identifiers.Copyright © 2010-2018, ForgeRock All Rights Reserved.