Uses of Class
org.forgerock.opendj.ldap.schema.Schema
Packages that use Schema
Package
Description
Classes and interfaces providing I/O functionality.
Classes and interfaces for core types including connections, entries, and
attributes.
Classes and interfaces for common LDAP controls.
Classes and interfaces for constructing and querying LDAP schemas.
Classes and interfaces for reading and writing LDIF.
-
Uses of Schema in org.forgerock.opendj.io
Methods in org.forgerock.opendj.io with parameters of type SchemaModifier and TypeMethodDescriptionstatic AttributeLdap.readAttribute(Asn1Reader reader, DecodeOptions options, Schema schema) Reads the next ASN.1 element from the providedASN1Readeras anAttribute.static ModificationLdap.readModification(Asn1Reader reader, DecodeOptions options, Schema schema) Reads the next ASN.1 element from the providedASN1Readeras aModification.Reads the next element as a distinguished name having the provided type tag.Reads the next element as a distinguished name having the Universal Sequence ASN.1 type tag. -
Uses of Schema in org.forgerock.opendj.ldap
Methods in org.forgerock.opendj.ldap that return SchemaModifier and TypeMethodDescriptionMemoryBackend.getSchema()Returns the schema used by this backend.SchemaResolver.resolveSchema(String dn) Finds the appropriate schema for use with the provided distinguished name.Methods in org.forgerock.opendj.ldap with parameters of type SchemaModifier and TypeMethodDescriptionstatic AttributeDescriptionFunctions.byteStringToAttributeDescription(ByteString value, Schema schema) Parses aByteStringas anAttributeDescriptionusing the provided schema.Functions.byteStringToDn(Schema schema) Returns a function which parsesDNs using the provided schema.SortKey.comparator(Schema schema) Returns aComparatorwhich can be used to compare entries using this sort key.static Comparator<Entry>SortKey.comparator(Schema schema, Collection<SortKey> keys) Returns aComparatorwhich can be used to compare entries using the provided list of sort keys.static Comparator<Entry>SortKey.comparator(Schema schema, SortKey... keys) Returns aComparatorwhich can be used to compare entries using the provided list of sort keys.static booleanEntries.conformsToSchema(Entry entry, SchemaValidationPolicy policy, Collection<LocalizableMessage> errorMessages, Schema schema) Returnstrueif the provided entry is valid according to the specified schema and schema validation policy.static booleanEntries.containsObjectClass(Entry entry, ObjectClass objectClass, Schema schema) Check if the provided entry contains the provided object class.static DnCreates a new DN using the provided DN template and unescaped attribute values using the provided schema.static Set<ObjectClass>Entries.getObjectClasses(Entry entry, Schema schema) Returns an unmodifiable set containing the object classes associated with the provided entry.static ObjectClassEntries.getStructuralObjectClass(Entry entry, Schema schema) Returns the structural object class associated with the provided entry, ornullif none was found.AttributeFilter.includeAttribute(String attributeDescription, Schema schema) Specifies that the named attribute should be included in filtered entries.AttributeFilter.includeAttribute(String attributeDescription, Schema schema, boolean includeAttributesFromSuperiors) Specifies that the named attribute should be included in filtered entries.booleanSubtreeSpecification.isWithinScope(Entry entry, Schema schema) Determine if an entry is within the scope of the subtree specification.Returns aMatcherwhich can be used to compare thisFilteragainst entries using the providedSchema.booleanabstract booleanCheck if the refinement matches the given entry.Sets theSchemawhich will be used for decoding distinguished names, attribute descriptions, and other objects which require a schema in order to be decoded.AttributeParser.usingSchema(Schema schema) Sets theSchemawhich will be used when parsing schema sensitive values such as DNs and attribute descriptions.static AttributeDescriptionParses the provided LDAP string representation of an attribute description using the provided schema.static AvaParses the provided LDAP string representation of an AVA using the provided schema.static DnParses the provided LDAP string representation of a DN using the provided schema.static LdapUrlParses the provided LDAP string representation of an LDAP URL using the provided schema.static RdnParses the provided LDAP string representation of a RDN using the provided schema.Constructors in org.forgerock.opendj.ldap with parameters of type SchemaModifierConstructorDescriptionAttributeFilter(Collection<String> attributeDescriptions, Schema schema) Creates a new attribute filter which will include the attributes identified by the provided search request attribute list.MemoryBackend(Schema schema) Creates a new empty memory backend which will use the provided schema.MemoryBackend(Schema schema, EntryReader reader) Creates a new memory backend which will use the provided schema, and will contain the entries read from the provided entry reader. -
Uses of Schema in org.forgerock.opendj.ldap.controls
Methods in org.forgerock.opendj.ldap.controls with parameters of type SchemaModifier and TypeMethodDescriptionMatchedValuesRequestControl.keepMatchedValues(AttributeFilter filter, Schema schema) Register a mapping function in the providedAttributeFilterwhich will only retain attribute values matching at least one filter defined in this control.MatchedValuesRequestControl.keepMatchedValues(Schema schema) Returns a mapping function which, given an attribute, returns a new attribute containing only the values matching the filters defined in this control, or an empty attribute if none of the values match. -
Uses of Schema in org.forgerock.opendj.ldap.schema
Methods in org.forgerock.opendj.ldap.schema that return SchemaModifier and TypeMethodDescriptionSchemaValidationPolicy.adaptSchemaForValidation(Schema schema) Returns a strict view of the provided schema if this policy is configured to check attributes and object class, or a non-strict view of the schema if not.Schema.asNonStrictSchema()Returns a non-strict view of this schema.Schema.asStrictSchema()Returns a strict view of this schema.static SchemaSchema.getCoreSchema()Returns the core schema.static SchemaSchema.getDefaultSchema()Returns the default schema which should be used by this application.static SchemaSchema.getEmptySchema()Returns the empty schema.static SchemaCoreSchema.getInstance()Returns a reference to the singleton core schema.static SchemaSchema.readSchema(Connection connection, Dn name) Reads the schema contained in the named subschema sub-entry.static SchemaSchema.readSchemaForEntry(Connection connection, Dn name) Reads the schema contained in the subschema sub-entry which applies to the named entry.SchemaBuilder.toSchema()Returns a strictSchemacontaining all of the schema elements contained in this schema builder as well as the same set of schema compatibility options.static SchemaParses the provided entry as a subschema subentry.Methods in org.forgerock.opendj.ldap.schema that return types with arguments of type SchemaModifier and TypeMethodDescriptionstatic io.reactivex.rxjava3.core.Single<Schema>Schema.readSchema(LdapClientSocket socket, Dn name) Reads the schema contained in the named subschema sub-entry.static LdapPromise<Schema>Schema.readSchemaAsync(Connection connection, Dn name) Asynchronously reads the schema contained in the named subschema sub-entry.static io.reactivex.rxjava3.core.Single<Schema>Schema.readSchemaForEntry(LdapClientSocket socket, Dn name) Reads the schema contained in the subschema sub-entry which applies to the named entry.static LdapPromise<Schema>Schema.readSchemaForEntryAsync(Connection connection, Dn name) Asynchronously reads the schema contained in the subschema sub-entry which applies to the named entry.Methods in org.forgerock.opendj.ldap.schema with parameters of type SchemaModifier and TypeMethodDescriptionSchemaValidationPolicy.adaptSchemaForValidation(Schema schema) Returns a strict view of the provided schema if this policy is configured to check attributes and object class, or a non-strict view of the schema if not.Adds all of the schema elements in the provided schema to this schema builder.final Collection<? extends Indexer>AbstractOrderingMatchingRuleImpl.createIndexers(Schema schema, IndexingOptions options) Collection<? extends Indexer>MatchingRuleImpl.createIndexers(Schema schema, IndexingOptions options) Returns the indexers for this matching rule.default ByteStringDecodes the JSON representation of an attribute value with this syntax.final AssertionAbstractOrderingMatchingRuleImpl.getAssertion(Schema schema, ByteString value) MatchingRuleImpl.getAssertion(Schema schema, ByteString assertionValue) Compiles the provided assertion value as anAssertionsuitable for use with equalityMatch, approxMatch and extensibleMatch search filters.AbstractOrderingMatchingRuleImpl.getOrderingAssertion(Schema schema, ByteString lower, ByteString upper, boolean lowerIncluded, boolean upperIncluded) default AssertionMatchingRuleImpl.getOrderingAssertion(Schema schema, ByteString lower, ByteString upper, boolean lowerIncluded, boolean upperIncluded) Compiles the provided ordering assertion value range as anAssertionsuitable for use with ordering search filters, including greaterOrEqual and lessOrEqual.default AssertionMatchingRuleImpl.getSubstringAssertion(Schema schema, ByteString subInitial, List<ByteString> subAnyElements, ByteString subFinal) Compiles the provided substring assertion fragments as anAssertionsuitable for use with substrings search filters.MatchingRuleImpl.normalizeAttributeValue(Schema schema, ByteString value) Retrieves the normalized form of the provided attribute value, which is best suited for efficiently performing matching operations on that value.static voidSchema.setDefaultSchema(Schema schema) Sets the default schema which should be used by this application.default ObjectSyntaxImpl.toJson(Schema schema, ByteString value) Encodes the JSON representation of an attribute value with this syntax.SyntaxImpl.toJsonSchema(Schema schema) Returns the JSON schema describing this syntax.booleanSyntaxImpl.valueIsAcceptable(Schema schema, ByteString value, LocalizableMessageBuilder invalidReason) Indicates whether the provided value is acceptable for use in an attribute with this syntax.Constructors in org.forgerock.opendj.ldap.schema with parameters of type SchemaModifierConstructorDescriptionSchemaBuilder(Schema schema) Creates a new schema builder containing all of the schema elements from the provided schema and its compatibility options. -
Uses of Schema in org.forgerock.opendj.ldif
Methods in org.forgerock.opendj.ldif with parameters of type SchemaModifier and TypeMethodDescriptionstatic EntryReaderLdif.search(EntryReader input, SearchRequest search, Schema schema) Returns a filtered view ofinputcontaining only those entries which match the search base DN, scope, and filtered defined insearch.Sets the schema which should be when generating entries.Sets the schema which should be used for decoding change records that are read from LDIF.Sets the schema which should be used for decoding entries that are read from LDIF.