Package org.forgerock.opendj.config
Class LDAPProfile.Wrapper
- java.lang.Object
-
- org.forgerock.opendj.config.LDAPProfile.Wrapper
-
- Enclosing class:
- LDAPProfile
public abstract static class LDAPProfile.Wrapper extends Object
LDAP profile wrappers can be used to provide temporary LDAP profile information for components which do not have LDAP profile property files. These components are typically "mock" components used in unit-tests.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWrapper()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttributeName(AbstractManagedObjectDefinition<?,?> d, PropertyDefinition<?> pd)Get the name of the LDAP attribute associated with the specified property definition.StringgetObjectClass(AbstractManagedObjectDefinition<?,?> d)Get the principle object class associated with the specified definition.StringgetRelationChildRDNType(InstantiableRelationDefinition<?,?> r)Gets the LDAP RDN attribute type for child entries of an instantiable relation.StringgetRelationChildRDNType(SetRelationDefinition<?,?> r)Gets the LDAP RDN attribute type for child entries of an set relation.StringgetRelationRDNSequence(RelationDefinition<?,?> r)Get an LDAP RDN sequence associatied with a relation.
-
-
-
Method Detail
-
getAttributeName
public String getAttributeName(AbstractManagedObjectDefinition<?,?> d, PropertyDefinition<?> pd)
Get the name of the LDAP attribute associated with the specified property definition.The default implementation of this method is to return
null.- Parameters:
d- The managed object definition.pd- The property definition.- Returns:
- Returns the name of the LDAP attribute associated with the
specified property definition, or
nullif the property definition is not handled by this LDAP profile wrapper.
-
getRelationChildRDNType
public String getRelationChildRDNType(InstantiableRelationDefinition<?,?> r)
Gets the LDAP RDN attribute type for child entries of an instantiable relation.The default implementation of this method is to return
null.- Parameters:
r- The instantiable relation.- Returns:
- Returns the LDAP RDN attribute type for child entries of an
instantiable relation, or
nullif the instantiable relation is not handled by this LDAP profile wrapper.
-
getRelationChildRDNType
public String getRelationChildRDNType(SetRelationDefinition<?,?> r)
Gets the LDAP RDN attribute type for child entries of an set relation.The default implementation of this method is to return
null.- Parameters:
r- The set relation.- Returns:
- Returns the LDAP RDN attribute type for child entries of an
set relation, or
nullif the set relation is not handled by this LDAP profile wrapper.
-
getObjectClass
public String getObjectClass(AbstractManagedObjectDefinition<?,?> d)
Get the principle object class associated with the specified definition.The default implementation of this method is to return
null.- Parameters:
d- The managed object definition.- Returns:
- Returns the principle object class associated with the
specified definition, or
nullif the managed object definition is not handled by this LDAP profile wrapper.
-
getRelationRDNSequence
public String getRelationRDNSequence(RelationDefinition<?,?> r)
Get an LDAP RDN sequence associatied with a relation.The default implementation of this method is to return
null.- Parameters:
r- The relation.- Returns:
- Returns the LDAP RDN sequence associatied with a relation, or
nullif the relation is not handled by this LDAP profile wrapper.
-
-