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 specifiedset relation,StringgetRelationChildRdnType(InstantiableRelationDefinition<?,?> r)Gets the LDAP RDN attribute type for child entries of an instantiable relation.StringgetRelationRdnSequence(RelationDefinition<?,?> r)Get an LDAP RDN sequence associated 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.
-
getObjectClass
public String getObjectClass(AbstractManagedObjectDefinition<?,?> d)
Get the principle object class associated with the specifiedset relation,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 associated with a relation.The default implementation of this method is to return
null.- Parameters:
r- The relation.- Returns:
- Returns the LDAP RDN sequence associated with a relation,
or
nullif the relation is not handled by this LDAP profile wrapper.
-
-