public static final class MatchingRuleUse.Builder extends Object
Modifier and Type | Method and Description |
---|---|
SchemaBuilder |
addToSchema()
Adds this matching rule use definition to the schema, throwing a
ConflictingSchemaElementException if there is an existing
matching rule definition with the same numeric OID. |
SchemaBuilder |
addToSchemaOverwrite()
Adds this matching rule use definition to the schema overwriting any
existing matching rule use definition with the same numeric OID.
|
MatchingRuleUse.Builder |
attributes(Collection<String> attributeOids)
Adds the provided list of attribute types to the list of attribute
type the matching rule applies to.
|
MatchingRuleUse.Builder |
attributes(String... attributeOids)
Adds the provided list of attribute types to the list of attribute
type the matching rule applies to.
|
MatchingRuleUse.Builder |
description(String description)
Sets the description.
|
MatchingRuleUse.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.
|
MatchingRuleUse.Builder |
extraProperties(String extensionName,
String... extensionValues)
Adds the provided extended property.
|
MatchingRuleUse.Builder |
names(Collection<String> names)
Adds the provided user friendly names.
|
MatchingRuleUse.Builder |
names(String... names)
Adds the provided user friendly names.
|
MatchingRuleUse.Builder |
obsolete(boolean isObsolete)
Specifies whether this schema element is obsolete.
|
MatchingRuleUse.Builder |
oid(String oid)
Sets the numeric OID which uniquely identifies this matching rule use
definition.
|
MatchingRuleUse.Builder |
removeAllAttributes()
Removes all attribute types the matching rule applies to.
|
MatchingRuleUse.Builder |
removeAllExtraProperties()
Removes all extra properties.
|
MatchingRuleUse.Builder |
removeAllNames()
Removes all user defined names.
|
MatchingRuleUse.Builder |
removeAttribute(String attributeOid)
Removes the provided attribute type.
|
MatchingRuleUse.Builder |
removeExtraProperty(String extensionName,
String... extensionValues)
Removes the specified extended property.
|
MatchingRuleUse.Builder |
removeName(String name)
Removes the provided user defined name.
|
public SchemaBuilder addToSchema()
ConflictingSchemaElementException
if there is an existing
matching rule definition with the same numeric OID.ConflictingSchemaElementException
- If there is an existing matching rule use definition with
the same numeric OID.public SchemaBuilder addToSchemaOverwrite()
public MatchingRuleUse.Builder attributes(Collection<String> attributeOids)
attributeOids
- The list of attribute type numeric OIDs.public MatchingRuleUse.Builder attributes(String... attributeOids)
attributeOids
- The list of attribute type numeric OIDs.public MatchingRuleUse.Builder description(String description)
description
- The description, which may be null
in which case
the empty string will be used.public MatchingRuleUse.Builder extraProperties(Map<String,List<String>> extraProperties)
extraProperties
- The collection of extended properties.public MatchingRuleUse.Builder extraProperties(String extensionName, String... extensionValues)
extensionName
- The name of the extended property.extensionValues
- The optional list of values for the extended property.public MatchingRuleUse.Builder names(Collection<String> names)
names
- The user friendly names.public MatchingRuleUse.Builder names(String... names)
names
- The user friendly names.public MatchingRuleUse.Builder obsolete(boolean isObsolete)
isObsolete
- true
if this schema element is obsolete
(default is false
).public MatchingRuleUse.Builder oid(String oid)
oid
- The numeric OID.public MatchingRuleUse.Builder removeAllAttributes()
public MatchingRuleUse.Builder removeAllExtraProperties()
public MatchingRuleUse.Builder removeAllNames()
public MatchingRuleUse.Builder removeAttribute(String attributeOid)
attributeOid
- The attribute type OID to be removed.public MatchingRuleUse.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 MatchingRuleUse.Builder removeName(String name)
name
- The user defined name to be removed.Copyright © 2010-2018, ForgeRock All Rights Reserved.