public static final class DitContentRule.Builder extends Object
Modifier and Type | Method and Description |
---|---|
SchemaBuilder |
addToSchema()
Adds this DIT content rule to the schema, throwing a
ConflictingSchemaElementException if there is an existing DIT
content rule with the same structural object class OID. |
SchemaBuilder |
addToSchemaOverwrite()
Adds this DIT content rule to the schema overwriting any existing
content rule with the same structural class OID.
|
DitContentRule.Builder |
auxiliaryObjectClasses(Collection<String> objectClassNamesOrOids)
Adds the provided auxiliary classes to the list of auxiliary object
classes that entries subject to this DIT content rule may belong to.
|
DitContentRule.Builder |
auxiliaryObjectClasses(String... objectClassNamesOrOids)
Adds the provided auxiliary classes to the list of auxiliary object
classes that entries subject to this DIT content rule may belong to.
|
DitContentRule.Builder |
description(String description)
Sets the description.
|
DitContentRule.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.
|
DitContentRule.Builder |
extraProperties(String extensionName,
String... extensionValues)
Adds the provided extended property.
|
DitContentRule.Builder |
names(Collection<String> names)
Adds the provided user friendly names.
|
DitContentRule.Builder |
names(String... names)
Adds the provided user friendly names.
|
DitContentRule.Builder |
obsolete(boolean isObsolete)
Specifies whether this schema element is obsolete.
|
DitContentRule.Builder |
optionalAttributes(Collection<String> attributeNamesOrOids)
Adds the provided optional attributes to the list of attribute types
that entries subject to this DIT content rule may contain.
|
DitContentRule.Builder |
optionalAttributes(String... attributeNamesOrOids)
Adds the provided optional attributes to the list of attribute types
that entries subject to this DIT content rule may contain.
|
DitContentRule.Builder |
prohibitedAttributes(Collection<String> attributeNamesOrOids)
Adds the provided prohibited attributes to the list of attribute types
that entries subject to this DIT content rule must not contain.
|
DitContentRule.Builder |
prohibitedAttributes(String... attributeNamesOrOids)
Adds the provided prohibited attributes to the list of attribute types
that entries subject to this DIT content rule must not contain.
|
DitContentRule.Builder |
removeAllAuxiliaryObjectClasses()
Clears the list of auxiliary object classes that entries subject to
this DIT content rule may belong to.
|
DitContentRule.Builder |
removeAllExtraProperties()
Removes all extra properties.
|
DitContentRule.Builder |
removeAllNames()
Removes all user defined names.
|
DitContentRule.Builder |
removeAllOptionalAttributes()
Clears the list of attribute types that entries subject to this DIT
content rule may contain.
|
DitContentRule.Builder |
removeAllProhibitedAttributes()
Clears the list of attribute types that entries subject to this DIT
content rule must not contain.
|
DitContentRule.Builder |
removeAllRequiredAttributes()
Clears the list of attribute types that entries subject to this DIT
content rule must contain.
|
DitContentRule.Builder |
removeAuxiliaryObjectClass(String objectClassNameOrOid)
Removes the provided object class in the list of auxiliary object classes that entries subject to
this DIT content rule may belong to.
|
DitContentRule.Builder |
removeExtraProperty(String extensionName,
String... extensionValues)
Removes the specified extended property.
|
DitContentRule.Builder |
removeName(String name)
Removes the provided user defined name.
|
DitContentRule.Builder |
removeOptionalAttribute(String attributeNameOrOid)
Removes the provided optional attribute in the list of attribute
types that entries subject to this DIT content rule may contain.
|
DitContentRule.Builder |
removeProhibitedAttribute(String attributeNameOrOid)
Removes the provided prohibited attribute in the list of attribute
types that entries subject to this DIT content rule must not contain.
|
DitContentRule.Builder |
removeRequiredAttribute(String attributeNameOrOid)
Removes the provided required attribute in the list of attribute
types that entries subject to this DIT content rule must contain.
|
DitContentRule.Builder |
requiredAttributes(Collection<String> attributeNamesOrOids)
Adds the provided attribute to the list of attribute types that
entries subject to this DIT content rule must contain.
|
DitContentRule.Builder |
requiredAttributes(String... attributeNamesOrOids)
Adds the provided attribute to the list of attribute types that
entries subject to this DIT content rule must contain.
|
DitContentRule.Builder |
structuralClassOid(String structuralClassOid)
Sets the structural class OID which uniquely identifies this DIT
content rule.
|
public SchemaBuilder addToSchema()
ConflictingSchemaElementException
if there is an existing DIT
content rule with the same structural object class OID.ConflictingSchemaElementException
- If there is an existing DIT content rule with the same
structural object class OID.public SchemaBuilder addToSchemaOverwrite()
public DitContentRule.Builder auxiliaryObjectClasses(Collection<String> objectClassNamesOrOids)
objectClassNamesOrOids
- The list of auxiliary class names or OIDs.public DitContentRule.Builder auxiliaryObjectClasses(String... objectClassNamesOrOids)
objectClassNamesOrOids
- The list of auxiliary class names or OIDs.public DitContentRule.Builder description(String description)
description
- The description, which may be null
in which case
the empty string will be used.public DitContentRule.Builder extraProperties(Map<String,List<String>> extraProperties)
extraProperties
- The collection of extended properties.public DitContentRule.Builder extraProperties(String extensionName, String... extensionValues)
extensionName
- The name of the extended property.extensionValues
- The optional list of values for the extended property.public DitContentRule.Builder names(Collection<String> names)
names
- The user friendly names.public DitContentRule.Builder names(String... names)
names
- The user friendly names.public DitContentRule.Builder obsolete(boolean isObsolete)
isObsolete
- true
if this schema element is obsolete (default
is false
).public DitContentRule.Builder optionalAttributes(Collection<String> attributeNamesOrOids)
attributeNamesOrOids
- The list of optional attribute names or OIDs.public DitContentRule.Builder optionalAttributes(String... attributeNamesOrOids)
attributeNamesOrOids
- The list of optional attribute names or OIDs.public DitContentRule.Builder prohibitedAttributes(Collection<String> attributeNamesOrOids)
attributeNamesOrOids
- The list of prohibited attribute names or OIDs.public DitContentRule.Builder prohibitedAttributes(String... attributeNamesOrOids)
attributeNamesOrOids
- The list of prohibited attribute names or OIDs.public DitContentRule.Builder removeAllAuxiliaryObjectClasses()
public DitContentRule.Builder removeAllExtraProperties()
public DitContentRule.Builder removeAllNames()
public DitContentRule.Builder removeAllOptionalAttributes()
public DitContentRule.Builder removeAllProhibitedAttributes()
public DitContentRule.Builder removeAllRequiredAttributes()
public DitContentRule.Builder removeAuxiliaryObjectClass(String objectClassNameOrOid)
objectClassNameOrOid
- The auxiliary object class name or OID to be removed.public DitContentRule.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 DitContentRule.Builder removeName(String name)
name
- The user defined name to be removed.public DitContentRule.Builder removeOptionalAttribute(String attributeNameOrOid)
attributeNameOrOid
- The optional attribute name or OID to be removed.public DitContentRule.Builder removeProhibitedAttribute(String attributeNameOrOid)
attributeNameOrOid
- The prohibited attribute name or OID to be removed.public DitContentRule.Builder removeRequiredAttribute(String attributeNameOrOid)
attributeNameOrOid
- The provided required attribute name or OID to be removed.public DitContentRule.Builder requiredAttributes(Collection<String> attributeNamesOrOids)
attributeNamesOrOids
- The list of required attribute names or OIDs.public DitContentRule.Builder requiredAttributes(String... attributeNamesOrOids)
attributeNamesOrOids
- The list of required attribute names or OIDs.public DitContentRule.Builder structuralClassOid(String structuralClassOid)
structuralClassOid
- The numeric OID.Copyright © 2010-2018, ForgeRock All Rights Reserved.