Class SchemaOptions
For example you set schema option as you want when using a schema.
// Retrieves options from builder. SchemaOptions options = new SchemaBuilder().getOptions(); // Creates a new option. Option myIntegerOption = options.set(Option.of(Integer.class, 0)); // Retrieves option value from SchemaOption boolean allowMalformedNamesAndOptions = options.get(SchemaOptions.ALLOW_MALFORMED_NAMES_AND_OPTIONS);
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.forgerock.util.Option<Boolean> Specifies whether the schema should allow attribute type definitions that do not declare a superior attribute type or syntax.static final org.forgerock.util.Option<Boolean> Specifies whether the Certificate syntax should allow values which do not conform to the X.509 specifications.static final org.forgerock.util.Option<Boolean> Specifies whether the JPEG Photo syntax should allow values which do not conform to the JFIF or Exif specifications.static final org.forgerock.util.Option<Boolean> Specifies whether the schema should allow certain illegal characters in OIDs and attribute options.static final org.forgerock.util.Option<Boolean> Specifies whether the Telephone Number syntax should allow values which do not conform to the E.123 international telephone number format.static final org.forgerock.util.Option<Boolean> Specifies whether zero-length values will be allowed by the Directory String syntax.static final org.forgerock.util.Option<String> Specifies the OID of the default matching rule which will be used when parsing unrecognized attributes.static final org.forgerock.util.Option<String> Specifies the OID of the default syntax which will be used when parsing unrecognized attributes.static final org.forgerock.util.Option<Boolean> Indicates whether country code values are required to strictly comply with the standard definition for this syntax.static final org.forgerock.util.Option<Boolean> Indicates whether the minimum upper bound value should be stripped from the Attribute Type Syntax Description. -
Method Summary
-
Field Details
-
ALLOW_MALFORMED_NAMES_AND_OPTIONS
Specifies whether the schema should allow certain illegal characters in OIDs and attribute options. When this compatibility option is set totruethe following illegal characters will be permitted in addition to those permitted in section 1.4 of RFC 4512:USCORE = %x5F ; underscore ("_") DOT = %x2E ; period (".")By default this compatibility option is set totruebecause these characters are often used for naming purposes (such as collation rules). -
ALLOW_ATTRIBUTE_TYPES_WITH_NO_SUP_OR_SYNTAX
Specifies whether the schema should allow attribute type definitions that do not declare a superior attribute type or syntax. When this compatibility option is set totrueinvalid attribute type definitions will use the default syntax specifed by theDEFAULT_SYNTAX_OIDoption.By default this compatibility option is set to
truein order to remain compatible with previous versions of OpenDJ. -
ALLOW_MALFORMED_JPEG_PHOTOS
Specifies whether the JPEG Photo syntax should allow values which do not conform to the JFIF or Exif specifications.By default this compatibility option is set to
true. -
ALLOW_MALFORMED_CERTIFICATES
Specifies whether the Certificate syntax should allow values which do not conform to the X.509 specifications.By default this compatibility option is set to
true. -
ALLOW_NON_STANDARD_TELEPHONE_NUMBERS
Specifies whether the Telephone Number syntax should allow values which do not conform to the E.123 international telephone number format.By default this compatibility option is set to
true. -
ALLOW_ZERO_LENGTH_DIRECTORY_STRINGS
Specifies whether zero-length values will be allowed by the Directory String syntax. This is technically forbidden by the LDAP specification, but it was allowed in earlier versions of the server, and the discussion of the directory string syntax in RFC 2252 does not explicitly state that they are not allowed.By default this compatibility option is set to
false. -
DEFAULT_SYNTAX_OID
Specifies the OID of the default syntax which will be used when parsing unrecognized attributes.By default the
OctetStringsyntax will be used. -
DEFAULT_MATCHING_RULE_OID
Specifies the OID of the default matching rule which will be used when parsing unrecognized attributes.By default the
OctetStringmatching rule will be used. -
STRICT_FORMAT_FOR_COUNTRY_STRINGS
Indicates whether country code values are required to strictly comply with the standard definition for this syntax.When set to false, country codes will not be validated and, as a result any string containing 2 characters will be acceptable. By default this compatibility option is set to
true. -
STRIP_UPPER_BOUND_FOR_ATTRIBUTE_TYPE
Indicates whether the minimum upper bound value should be stripped from the Attribute Type Syntax Description.By default this compatibility option is set to
false.
-