org.opends.server.admin
Class LDAPProfile.Wrapper

java.lang.Object
  extended by org.opends.server.admin.LDAPProfile.Wrapper
Enclosing class:
LDAPProfile

public abstract static class LDAPProfile.Wrapper
extends java.lang.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
protected LDAPProfile.Wrapper()
          Default constructor.
 
Method Summary
 java.lang.String getAttributeName(AbstractManagedObjectDefinition<?,?> d, PropertyDefinition<?> pd)
          Get the name of the LDAP attribute associated with the specified property definition.
 java.lang.String getInstantiableRelationChildRDNType(InstantiableRelationDefinition<?,?> r)
          Gets the LDAP RDN attribute type for child entries of an instantiable relation.
 java.lang.String getObjectClass(AbstractManagedObjectDefinition<?,?> d)
          Get the principle object class associated with the specified definition.
 java.lang.String getRelationRDNSequence(RelationDefinition<?,?> r)
          Get an LDAP RDN sequence associatied with a relation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPProfile.Wrapper

protected LDAPProfile.Wrapper()
Default constructor.

Method Detail

getAttributeName

public java.lang.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 null if the property definition is not handled by this LDAP profile wrapper.

getInstantiableRelationChildRDNType

public java.lang.String getInstantiableRelationChildRDNType(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 null if the instantiable relation is not handled by this LDAP profile wrapper.

getObjectClass

public java.lang.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 null if the managed object definition is not handled by this LDAP profile wrapper.

getRelationRDNSequence

public java.lang.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 null if the relation is not handled by this LDAP profile wrapper.