|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.admin.LDAPProfile
public final class LDAPProfile
This class is used to map configuration elements to their LDAP schema names.
It is possible to augment the core LDAP profile with additional
profile mappings at run-time using instances of LDAPProfile.Wrapper
.
This is useful for unit tests which need to add and remove mock
components.
Nested Class Summary | |
---|---|
static class |
LDAPProfile.Wrapper
LDAP profile wrappers can be used to provide temporary LDAP profile information for components which do not have LDAP profile property files. |
Method Summary | |
---|---|
java.lang.String |
getAttributeName(AbstractManagedObjectDefinition<?,?> d,
PropertyDefinition<?> pd)
Get the name of the LDAP attribute associated with the specified property definition. |
static LDAPProfile |
getInstance()
Get the global LDAP profile instance. |
java.lang.String |
getInstantiableRelationChildRDNType(InstantiableRelationDefinition<?,?> r)
Gets the LDAP RDN attribute type for child entries of an instantiable relation. |
java.util.List<java.lang.String> |
getInstantiableRelationObjectClasses(InstantiableRelationDefinition<?,?> r)
Gets the LDAP object classes associated with an instantiable relation branch. |
java.lang.String |
getObjectClass(AbstractManagedObjectDefinition<?,?> d)
Get the principle object class associated with the specified definition. |
java.util.List<java.lang.String> |
getObjectClasses(AbstractManagedObjectDefinition<?,?> d)
Get all the object classes associated with the specified definition. |
java.lang.String |
getRelationRDNSequence(RelationDefinition<?,?> r)
Get an LDAP RDN sequence associatied with a relation. |
void |
popWrapper()
Removes the last LDAP profile wrapper added using pushWrapper(org.opends.server.admin.LDAPProfile.Wrapper) . |
void |
pushWrapper(LDAPProfile.Wrapper wrapper)
Decorates the core LDAP profile with the provided LDAP profile wrapper. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LDAPProfile getInstance()
public java.lang.String getAttributeName(AbstractManagedObjectDefinition<?,?> d, PropertyDefinition<?> pd) throws java.util.MissingResourceException
d
- The managed object definition.pd
- The property definition.
java.util.MissingResourceException
- If the LDAP profile properties file associated with the
provided managed object definition could not be loaded.public java.lang.String getInstantiableRelationChildRDNType(InstantiableRelationDefinition<?,?> r) throws java.util.MissingResourceException
r
- The instantiable relation.
java.util.MissingResourceException
- If the LDAP profile properties file associated with the
provided managed object definition could not be loaded.public java.util.List<java.lang.String> getInstantiableRelationObjectClasses(InstantiableRelationDefinition<?,?> r)
r
- The instantiable relation.
public java.lang.String getObjectClass(AbstractManagedObjectDefinition<?,?> d) throws java.util.MissingResourceException
d
- The managed object definition.
java.util.MissingResourceException
- If the LDAP profile properties file associated with the
provided managed object definition could not be loaded.public java.util.List<java.lang.String> getObjectClasses(AbstractManagedObjectDefinition<?,?> d) throws java.util.MissingResourceException
The returned list is ordered such that the uppermost object classes appear first (e.g. top).
d
- The managed object definition.
java.util.MissingResourceException
- If the LDAP profile properties file associated with the
provided managed object definition could not be loaded.public java.lang.String getRelationRDNSequence(RelationDefinition<?,?> r) throws java.util.MissingResourceException
r
- The relation.
java.util.MissingResourceException
- If the LDAP profile properties file associated with the
provided managed object definition could not be loaded.public void popWrapper() throws java.util.NoSuchElementException
pushWrapper(org.opends.server.admin.LDAPProfile.Wrapper)
.
java.util.NoSuchElementException
- If there are no LDAP profile wrappers.public void pushWrapper(LDAPProfile.Wrapper wrapper)
wrapper
- The LDAP profile wrapper.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |