Uses of Class
org.forgerock.opendj.ldap.schema.Schema
Package
Description
LDAP configuration transport implementation.
This package contains LDAP schema syntaxes for attributes that can handle either
a commons-config expression using the pattern "&{some.token}" or an actual value corresponding to
the underlying syntax.
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.
APIs for implementing REST to LDAP gateways.
This package contains
Filter
to authenticate and authorize LDAP connections.This package contains LDAP schema syntaxes and matching rules for JSON based attributes.
Contains a number of API declarations for use throughout the Directory Server.
Contains the Directory Server Sun Java System Directory Server Enterprise Edition (dseecompat) compatability access
control handler implementation.
Contains code used to interact with the Directory Server configuration.
Contains various classes that comprise the core of the Directory Server codebase.
This package contains the part of the Multi-master replication code that works on the Directory Server side.
Contains implementations of various Directory Server schema elements.
Contains implementations for various Directory Server tasks.
Contains implementations for various Directory Server utility classes and methods which may be used throughout the
server but do not necessarily fit in elsewhere.
-
Uses of Schema in org.forgerock.opendj.config.client.ldap
Modifier and TypeMethodDescriptionstatic ManagementContext
LdapManagementContext.newLdifManagementContext
(Path ldifPath, Schema schema) Returns a management context for the provided LDIF configuration file and schema. -
Uses of Schema in org.forgerock.opendj.config.schema
Modifier and TypeMethodDescriptionstatic SchemaBuilder
ExpressionSchema.addExpressionSyntaxesToSchema
(SchemaBuilder builder, Schema schema) Adds the configuration expression syntaxes to the provided schema builder. -
Uses of Schema in org.forgerock.opendj.io
Modifier and TypeMethodDescriptionstatic Attribute
Ldap.readAttribute
(Asn1Reader reader, DecodeOptions options, Schema schema) Reads the next ASN.1 element from the providedASN1Reader
as anAttribute
.static Modification
Ldap.readModification
(Asn1Reader reader, DecodeOptions options, Schema schema) Reads the next ASN.1 element from the providedASN1Reader
as 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
Modifier 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.Modifier and TypeMethodDescriptionstatic AttributeDescription
Functions.byteStringToAttributeDescription
(ByteString value, Schema schema) Parses aByteString
as anAttributeDescription
using the provided schema.Functions.byteStringToDn
(Schema schema) Returns a function which parsesDN
s using the provided schema.SortKey.comparator
(Schema schema) Returns aComparator
which can be used to compare entries using this sort key.static Comparator<Entry>
SortKey.comparator
(Schema schema, Collection<SortKey> keys) Returns aComparator
which can be used to compare entries using the provided list of sort keys.static Comparator<Entry>
SortKey.comparator
(Schema schema, SortKey... keys) Returns aComparator
which can be used to compare entries using the provided list of sort keys.static boolean
Entries.conformsToSchema
(Entry entry, SchemaValidationPolicy policy, Collection<LocalizableMessage> errorMessages, Schema schema) Returnstrue
if the provided entry is valid according to the specified schema and schema validation policy.static boolean
Entries.containsObjectClass
(Entry entry, ObjectClass objectClass, Schema schema) Check if the provided entry contains the provided object class.static Dn
Creates 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 ObjectClass
Entries.getStructuralObjectClass
(Entry entry, Schema schema) Returns the structural object class associated with the provided entry, ornull
if 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.boolean
SubtreeSpecification.isWithinScope
(Entry entry, Schema schema) Determine if an entry is within the scope of the subtree specification.Returns aMatcher
which can be used to compare thisFilter
against entries using the providedSchema
.boolean
abstract boolean
Check if the refinement matches the given entry.Sets theSchema
which 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 theSchema
which will be used when parsing schema sensitive values such as DNs and attribute descriptions.static AttributeDescription
Parses the provided LDAP string representation of an attribute description using the provided schema.static Ava
Parses the provided LDAP string representation of an AVA using the provided schema.static Dn
Parses the provided LDAP string representation of a DN using the provided schema.static LdapUrl
Parses the provided LDAP string representation of an LDAP URL using the provided schema.static Rdn
Parses the provided LDAP string representation of a RDN using the provided schema.ModifierConstructorDescriptionAttributeFilter
(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
Modifier and TypeMethodDescriptionMatchedValuesRequestControl.keepMatchedValues
(AttributeFilter filter, Schema schema) Register a mapping function in the providedAttributeFilter
which 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
Modifier 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 Schema
Schema.getCoreSchema()
Returns the core schema.static Schema
Schema.getDefaultSchema()
Returns the default schema which should be used by this application.static Schema
Schema.getEmptySchema()
Returns the empty schema.static Schema
CoreSchema.getInstance()
Returns a reference to the singleton core schema.static Schema
Schema.readSchema
(Connection connection, Dn name) Reads the schema contained in the named subschema sub-entry.static Schema
Schema.readSchemaForEntry
(Connection connection, Dn name) Reads the schema contained in the subschema sub-entry which applies to the named entry.SchemaBuilder.toSchema()
Returns a strictSchema
containing all of the schema elements contained in this schema builder as well as the same set of schema compatibility options.static Schema
Parses the provided entry as a subschema subentry.Modifier and TypeMethodDescriptionSchema.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.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.Modifier 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 ByteString
Decodes the JSON representation of an attribute value with this syntax.final Assertion
AbstractOrderingMatchingRuleImpl.getAssertion
(Schema schema, ByteString value) MatchingRuleImpl.getAssertion
(Schema schema, ByteString assertionValue) Compiles the provided assertion value as anAssertion
suitable for use with equalityMatch, approxMatch and extensibleMatch search filters.AbstractOrderingMatchingRuleImpl.getOrderingAssertion
(Schema schema, ByteString lower, ByteString upper, boolean lowerIncluded, boolean upperIncluded) default Assertion
MatchingRuleImpl.getOrderingAssertion
(Schema schema, ByteString lower, ByteString upper, boolean lowerIncluded, boolean upperIncluded) Compiles the provided ordering assertion value range as anAssertion
suitable for use with ordering search filters, including greaterOrEqual and lessOrEqual.default Assertion
MatchingRuleImpl.getSubstringAssertion
(Schema schema, ByteString subInitial, List<ByteString> subAnyElements, ByteString subFinal) Compiles the provided substring assertion fragments as anAssertion
suitable 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 void
Schema.setDefaultSchema
(Schema schema) Sets the default schema which should be used by this application.default Object
SyntaxImpl.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.boolean
SyntaxImpl.valueIsAcceptable
(Schema schema, ByteString value, LocalizableMessageBuilder invalidReason) Indicates whether the provided value is acceptable for use in an attribute with this syntax.ModifierConstructorDescriptionSchemaBuilder
(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
Modifier and TypeMethodDescriptionstatic EntryReader
Ldif.search
(EntryReader input, SearchRequest search, Schema schema) Returns a filtered view ofinput
containing 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. -
Uses of Schema in org.forgerock.opendj.rest2ldap
Modifier and TypeFieldDescriptionprotected final Schema
Rest2LdapHttpApplication.schema
Schema used to perform DN validations.ModifierConstructorDescriptionRest2LdapHttpApplication
(File configDirectory, Schema schema) Creates a new Rest2LDAP HTTP application using the provided configuration directory. -
Uses of Schema in org.forgerock.opendj.rest2ldap.authz
Modifier and TypeMethodDescriptionJwtFilters.newJwtAuthenticationFilter
(JwtFactories.JwtSecretsProvider secretsProvider, org.forgerock.json.jose.jws.JwsAlgorithm algorithm, Duration validityPeriodInSecs, Schema schema) Returns a filter that will creates aJwtSigningContext
along with aSecurityContext
.JwtFilters.newJwtAuthorizationFilter
(JwtFactories.JwtSecretsProvider secretsProvider, Schema schema) Returns a filter that will validate any incoming requests signed with a JWT.static AuthenticationStrategy
AuthenticationStrategies.newSaslPlainStrategy
(LdapClient ldapClient, Schema schema, String authcIdTemplate) Creates anAuthenticationStrategy
performing authentication against an LDAP server using a plain SASL bind request.static AuthenticationStrategy
AuthenticationStrategies.newSaslScramStrategy
(LdapClient ldapClient, ScramMechanism scramMechanism, Schema schema, String authcIdTemplate) Creates anAuthenticationStrategy
performing authentication against an LDAP server using a SCRAM SASL bind request.static AuthenticationStrategy
AuthenticationStrategies.newSimpleBindStrategy
(LdapClient ldapClient, String bindDNTemplate, Schema schema) Creates anAuthenticationStrategy
performing simple BIND authentication against an LDAP server. -
Uses of Schema in org.forgerock.opendj.rest2ldap.schema
Modifier and TypeMethodDescriptionstatic Schema
JsonSchema.getInstance()
Returns aSchema
containing thecore schema
and JSON syntaxes and matching rules.Modifier and TypeMethodDescriptionJsonSchema.byteStringToNameAndJson
(Schema schema, ByteString value) Decodes the provided value as a Name and JSON value.static Dn
JsonSchema.byteStringToNameWithoutJson
(Schema schema, ByteString value) Decodes the provided value as a Name and JSON value but without decoding the JSON value. -
Uses of Schema in org.opends.server.api
Modifier and TypeMethodDescriptionMonitorProvider.getMonitorEntry
(Schema schema) Generates and returns a monitor entry based on the contents of this monitor provider.ModifierConstructorDescriptionMonitorData
(Schema schema) Builds a MonitorData object by using the provided schema. -
Uses of Schema in org.opends.server.authorization.dseecompat
Modifier and TypeMethodDescriptionstatic void
AciEffectiveRights.addRightsToEntry
(AciHandler handler, Set<String> searchAttributes, org.opends.server.authorization.dseecompat.AciLDAPOperationContainer container, Entry e, boolean skipCheck, Schema schema) Attempts to add the geteffectiverights asked for in the search to the entry being returned.boolean
Determine whether a given DN matches this pattern.boolean
Target.matchesPattern
(Dn dn, Schema schema) This method tries to match a pattern against a DN. -
Uses of Schema in org.opends.server.config
Modifier and TypeMethodDescriptionvoid
ConfigurationHandler.reinitializeWithFullSchema
(Schema schema) Re-initializes the configuration handler with a fully initialized schema. -
Uses of Schema in org.opends.server.core
-
Uses of Schema in org.opends.server.replication.plugin
Modifier and TypeMethodDescriptionCollection<? extends Indexer>
HistoricalCsnOrderingMatchingRuleImpl.createIndexers
(Schema schema, IndexingOptions options) Collection<? extends Indexer>
HistoricalCsnRangeMatchingRuleImpl.createIndexers
(Schema schema, IndexingOptions options) HistoricalCsnOrderingMatchingRuleImpl.getAssertion
(Schema schema, ByteString value) HistoricalCsnRangeMatchingRuleImpl.getAssertion
(Schema schema, ByteString assertionValue) Represents a filter for a CSN range on a replica id.HistoricalCsnOrderingMatchingRuleImpl.getOrderingAssertion
(Schema schema, ByteString lower, ByteString upper, boolean lowerIncluded, boolean upperIncluded) HistoricalCsnOrderingMatchingRuleImpl.normalizeAttributeValue
(Schema schema, ByteString value) HistoricalCsnRangeMatchingRuleImpl.normalizeAttributeValue
(Schema schema, ByteString value) -
Uses of Schema in org.opends.server.schema
Modifier and TypeMethodDescriptionvoid
SchemaHandler.loadSchemaFileIntoSchemaBuilder
(Path schemaFile, SchemaBuilder schemaBuilder, Schema readSchema) Loads the contents of the provided schema file into the provided schema builder.SchemaHandler.loadSchemaFileIntoSchemaBuilderAndReturnModifications
(Path schemaFile, SchemaBuilder schemaBuilder, Schema readSchema) Loads the contents of the provided schema file into the provided schema builder and returns the list of modifications.void
SchemaHandler.updateSchemaAndConcatenatedSchemaFile
(Schema newSchema) Replaces the schema with the provided schema and update the concatenated schema file.void
SchemaHandler.updateSchemaAndSchemaFiles
(Schema newSchema, Map<String, Attribute> newExtraAttributes, SortedSet<String> modifiedSchemaFileNames, AlertGenerator alertGenerator) Replaces the schema with the provided schema and updates the provided set of schema files. -
Uses of Schema in org.opends.server.tasks
ModifierConstructorDescriptionImportExportParams
(Collection<String> includeBranchStrings, Collection<String> excludeBranchStrings, Collection<String> includeAttributeStrings, Collection<String> excludeAttributeStrings, Collection<String> includeFilterStrings, Collection<String> excludeFilterStrings, Schema schema) Constructor. -
Uses of Schema in org.opends.server.util
Modifier and TypeMethodDescriptionstatic Entry
StaticUtils.createEntry
(Dn dn, Schema schema) Creates a new, blank entry with the given DN.