|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ldap.support.LdapNameBuilder
public final class LdapNameBuilder
Helper class for building LdapName
instances.
Note that the first part of a Distinguished Name is the least significant, which means that when adding components,
they will be added to the beginning of the resulting string, e.g.
LdapNameBuilder.newInstance("dc=261consulting,dc=com").add("ou=people").build().toString();will result in
ou=people,dc=261consulting,dc=com
.
Method Summary | |
---|---|
LdapNameBuilder |
add(Name name)
Append the specified name to the currently built LdapName. |
LdapNameBuilder |
add(String name)
Append the LdapName represented by the specified string to the currently built LdapName. |
LdapNameBuilder |
add(String key,
Object value)
Add a Rdn to the built LdapName. |
LdapName |
build()
Build the LdapName instance. |
static LdapNameBuilder |
newInstance()
Construct a new instance, starting with a blank LdapName. |
static LdapNameBuilder |
newInstance(Name name)
Construct a new instance, starting with a copy of the supplied LdapName. |
static LdapNameBuilder |
newInstance(String name)
Construct a new instance, starting with an LdapName constructed from the supplied string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static LdapNameBuilder newInstance()
public static LdapNameBuilder newInstance(Name name)
name
- the starting point of the LdapName to be built.
public static LdapNameBuilder newInstance(String name)
name
- the starting point of the LdapName to be built.
public LdapNameBuilder add(String key, Object value)
key
- the rdn attribute key.value
- the rdn value.
public LdapNameBuilder add(Name name)
name
- the name to add.
public LdapNameBuilder add(String name)
name
- the name to add.
public LdapName build()
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |