public class AttributesFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.util.TimeProvider |
timeProvider |
| Constructor and Description |
|---|
AttributesFactory() |
| Modifier and Type | Method and Description |
|---|---|
Entry |
convert(AttributeType attributeType,
Schema schema,
SchemaManager schemaManager)
objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.3
NAME 'metaAttributeType'
DESC 'meta definition of the AttributeType object'
SUP metaTop
STRUCTURAL
MUST ( m-name $ m-syntax )
MAY ( m-supAttributeType $ m-obsolete $ m-equality $ m-ordering $
m-substr $ m-singleValue $ m-collective $ m-noUserModification $
m-usage $ m-extensionAttributeType )
)
|
Entry |
convert(DitContentRule dITContentRule,
Schema schema,
SchemaManager schemaManager)
Converts a DitContentRule into an Entry
|
Entry |
convert(DitStructureRule ditStructureRule,
Schema schema,
SchemaManager schemaManager)
Converts a DitStructureRule into an Entry
|
Entry |
convert(LdapSyntax syntax,
Schema schema,
SchemaManager schemaManager)
Convert a Syntax instance into an Entry
|
Entry |
convert(MatchingRule matchingRule,
Schema schema,
SchemaManager schemaManager)
Converts a MatchingRule into an Entry
|
Entry |
convert(MatchingRuleUse matchingRuleUse,
Schema schema,
SchemaManager schemaManager)
Converts a MatchingRuleUse into an Entry
|
Entry |
convert(NameForm nameForm,
Schema schema,
SchemaManager schemaManager)
Converts a NameForm into an Entry
|
Entry |
convert(ObjectClass objectClass,
Schema schema,
SchemaManager schemaManager)
Creates the attributes of an entry representing an objectClass.
|
Entry |
convert(Schema schema,
SchemaManager schemaManager)
Converts a Schema to an Entry
|
Entry |
convert(String oid,
LdapComparator<? super Object> comparator,
Schema schema,
SchemaManager schemaManager)
Convert a LdapComparator instance into an Entry
|
Entry |
convert(String oid,
Normalizer normalizer,
Schema schema,
SchemaManager schemaManager)
Convert a Normalizer instance into an Entry
|
Entry |
convert(SyntaxChecker syntaxChecker,
Schema schema,
SchemaManager schemaManager)
Convert a SyntaxChecker instance into an Entry
|
Entry |
getAttributes(SchemaObject obj,
Schema schema,
SchemaManager schemaManager)
Get a SchemaObject as an Entry
|
private String |
getBoolean(boolean value) |
private void |
injectCommon(SchemaObject object,
Entry entry,
SchemaManager schemaManager) |
private void |
injectNames(List<String> names,
Entry entry,
SchemaManager schemaManager) |
public Entry getAttributes(SchemaObject obj, Schema schema, SchemaManager schemaManager) throws LdapException
obj - The schema oobject to convertschema - The schema which this object belongs toschemaManager - The SchemaManagerLdapException - If we can't convert teh schema objectpublic Entry convert(Schema schema, SchemaManager schemaManager) throws LdapException
schema - The Schema to convertschemaManager - The SchemaManagerLdapException - If the conversion failedpublic Entry convert(SyntaxChecker syntaxChecker, Schema schema, SchemaManager schemaManager)
syntaxChecker - The SyntaxChecker to convertschema - The schema containing this SyntaxCheckerschemaManager - The SchemaManagerpublic Entry convert(LdapSyntax syntax, Schema schema, SchemaManager schemaManager) throws LdapException
syntax - The LdapSytax to convertschema - The schema containing this SyntaxschemaManager - The SchemaManagerLdapException - If the conversion failedpublic Entry convert(String oid, Normalizer normalizer, Schema schema, SchemaManager schemaManager)
oid - The Normalizer's OIDnormalizer - The Normalizer to convertschema - The schema containing this NormalizerschemaManager - The SchemaManagerpublic Entry convert(String oid, LdapComparator<? super Object> comparator, Schema schema, SchemaManager schemaManager)
oid - The LdapComparator's OIDcomparator - The LdapComparator to convertschema - The schema containing this ComparatorschemaManager - The SchemaManagerpublic Entry convert(MatchingRule matchingRule, Schema schema, SchemaManager schemaManager) throws LdapException
matchingRule - The MatchingRule to convertschema - The schema containing this ObjectClassschemaManager - The SchemaManagerLdapException - If the conversion failedpublic Entry convert(MatchingRuleUse matchingRuleUse, Schema schema, SchemaManager schemaManager)
matchingRuleUse - The MatchingRuleUse to convertschema - The schema containing this MatchingRuleUseschemaManager - The SchemaManagerpublic Entry convert(DitStructureRule ditStructureRule, Schema schema, SchemaManager schemaManager)
ditStructureRule - The DitStructureRule to convertschema - The schema containing this DitStructureRuleschemaManager - The SchemaManagerpublic Entry convert(DitContentRule dITContentRule, Schema schema, SchemaManager schemaManager)
dITContentRule - The DitContentRule to convertschema - The schema containing this DitContentRuleschemaManager - The SchemaManagerpublic Entry convert(NameForm nameForm, Schema schema, SchemaManager schemaManager)
nameForm - The NameForm to convertschema - The schema containing this NameFormschemaManager - The SchemaManagerpublic Entry convert(AttributeType attributeType, Schema schema, SchemaManager schemaManager) throws LdapException
objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.3
NAME 'metaAttributeType'
DESC 'meta definition of the AttributeType object'
SUP metaTop
STRUCTURAL
MUST ( m-name $ m-syntax )
MAY ( m-supAttributeType $ m-obsolete $ m-equality $ m-ordering $
m-substr $ m-singleValue $ m-collective $ m-noUserModification $
m-usage $ m-extensionAttributeType )
)
attributeType - The AttributeType to convertschema - The schema containing this AttributeTypeschemaManager - The SchemaManagerLdapException - If the conversion failedpublic Entry convert(ObjectClass objectClass, Schema schema, SchemaManager schemaManager) throws LdapException
objectclass ( 1.3.6.1.4.1.18060.0.4.0.3.2
NAME 'metaObjectClass'
DESC 'meta definition of the objectclass object'
SUP metaTop
STRUCTURAL
MUST m-oid
MAY ( m-name $ m-obsolete $ m-supObjectClass $ m-typeObjectClass $ m-must $
m-may $ m-extensionObjectClass )
)
objectClass - the objectClass to produce a meta schema entry forschema - The schema containing this ObjectClassschemaManager - The SchemaManagerLdapException - If the conversion failedprivate void injectCommon(SchemaObject object, Entry entry, SchemaManager schemaManager) throws LdapException
LdapExceptionprivate void injectNames(List<String> names, Entry entry, SchemaManager schemaManager) throws LdapException
LdapExceptionprivate String getBoolean(boolean value)
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.