Modifier and Type | Method and Description |
---|---|
SchemaBuilder |
addToSchema()
Adds this name form to the schema, throwing a
ConflictingSchemaElementException if there is an existing
name form with the same numeric OID. |
SchemaBuilder |
addToSchemaOverwrite()
Adds this name form to the schema overwriting any existing name form
with the same numeric OID.
|
NameForm.Builder |
description(String description)
Sets the description.
|
NameForm.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.
|
NameForm.Builder |
extraProperties(String extensionName,
String... extensionValues)
Adds the provided extended property.
|
NameForm.Builder |
names(Collection<String> names)
Adds the provided user friendly names.
|
NameForm.Builder |
names(String... names)
Adds the provided user friendly names.
|
NameForm.Builder |
obsolete(boolean isObsolete)
Specifies whether this schema element is obsolete.
|
NameForm.Builder |
oid(String oid)
Sets the numeric OID which uniquely identifies this name form.
|
NameForm.Builder |
optionalAttributes(Collection<String> nameOrOids)
Adds the provided optional attributes.
|
NameForm.Builder |
optionalAttributes(String... nameOrOids)
Adds the provided optional attributes.
|
NameForm.Builder |
removeAllExtraProperties()
Removes all extra properties.
|
NameForm.Builder |
removeAllNames()
Removes all user friendly names.
|
NameForm.Builder |
removeAllOptionalAttributes()
Removes all optional attributes.
|
NameForm.Builder |
removeAllRequiredAttributes()
Removes all required attributes.
|
NameForm.Builder |
removeExtraProperty(String extensionName,
String... extensionValues)
Removes the specified extended property.
|
NameForm.Builder |
removeName(String name)
Removes the provided user friendly name.
|
NameForm.Builder |
removeOptionalAttribute(String nameOrOid)
Removes the specified optional attribute.
|
NameForm.Builder |
removeRequiredAttribute(String nameOrOid)
Removes the specified required attribute.
|
NameForm.Builder |
requiredAttributes(Collection<String> nameOrOids)
Adds the provided required attributes.
|
NameForm.Builder |
requiredAttributes(String... nameOrOids)
Adds the provided required attributes.
|
NameForm.Builder |
structuralObjectClassOid(String nameOrOid)
Sets the structural object class.
|
public SchemaBuilder addToSchema()
ConflictingSchemaElementException
if there is an existing
name form with the same numeric OID.ConflictingSchemaElementException
- If there is an existing name form with the same numeric
OID.public SchemaBuilder addToSchemaOverwrite()
public NameForm.Builder description(String description)
description
- The description, which may be null
in which case
the empty string will be used.public NameForm.Builder extraProperties(Map<String,List<String>> extraProperties)
extraProperties
- The collection of extended properties.public NameForm.Builder extraProperties(String extensionName, String... extensionValues)
extensionName
- The name of the extended property.extensionValues
- The optional list of values for the extended property.public NameForm.Builder names(Collection<String> names)
names
- The user friendly names.public NameForm.Builder names(String... names)
names
- The user friendly names.public NameForm.Builder obsolete(boolean isObsolete)
isObsolete
- true
if this schema element is obsolete (default
is false
).public NameForm.Builder oid(String oid)
oid
- The numeric OID.public NameForm.Builder optionalAttributes(Collection<String> nameOrOids)
nameOrOids
- The list of optional attributes.public NameForm.Builder optionalAttributes(String... nameOrOids)
nameOrOids
- The list of optional attributes.public NameForm.Builder removeAllExtraProperties()
public NameForm.Builder removeAllNames()
public NameForm.Builder removeAllOptionalAttributes()
public NameForm.Builder removeAllRequiredAttributes()
public NameForm.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 NameForm.Builder removeName(String name)
name
- The user friendly name to be removed.public NameForm.Builder removeOptionalAttribute(String nameOrOid)
nameOrOid
- The optional attribute to be removed.public NameForm.Builder removeRequiredAttribute(String nameOrOid)
nameOrOid
- The required attribute to be removed.public NameForm.Builder requiredAttributes(Collection<String> nameOrOids)
nameOrOids
- The list of required attributes.public NameForm.Builder requiredAttributes(String... nameOrOids)
nameOrOids
- The list of required attributes.public NameForm.Builder structuralObjectClassOid(String nameOrOid)
nameOrOid
- The structural object class.Copyright © 2010-2018, ForgeRock All Rights Reserved.