|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgldapo.GldapoDirectory
public class GldapoDirectory
| Constructor Summary | |
|---|---|
GldapoDirectory(String name,
Map config)
Creates a new instance via a config map. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GldapoDirectory(String name,
Map config)
The config map contains the attributes for the underlying LdapContextSource
(see CONTEXT_SOURCE_PROPS). The only mandatory attribute is url
(or urls). The rest are optional.
The config map can also contain a map under the key env which will be used as the environment
properties for the connection (e.g java.naming.ldap.attributes.binary)
It can also contain a map under the key denoted by CONFIG_SEARCH_CONTROLS_KEY
that is used to construct an instance of SearchControls using the
SearchControls.SearchControls(Map) constructor. If it is omitted, a search controls
object with default values is used.
| Method Detail |
|---|
public static final Object getCONFIG_SEARCH_CONTROLS_KEY()
public static final Object getCONTEXT_SOURCE_PROPS()
public SearchControlProvider getSearchControls()
getSearchControls in interface SearchProviderpublic void setSearchControls(SearchControlProvider value)
public String getName()
public void setName(String value)
public Object getTemplate()
public void setTemplate(Object value)
public DistinguishedName getBase()
getBase in interface SearchProvider
public List search(Object schemaRegistration,
DistinguishedName base,
String filter,
SearchControlProvider controls)
throws NamingException
If the search control provider contains a pageSize that is greater than 1
pagedSearch() is used,
otherwise nonPagedSearch() is used.
An instance of SearchControls is made out of the gldapo search controls (controls) to be used by
the LdapTemplate instance which does the actual searching.
search in interface SearchProviderschemaRegistration - Provides the metadata about the target class in order to make objects (must be instance of GldapoSchemaRegistration)base - The base of the search operation, relative to the base of the directoryfilter - The LDAP filter string to use to restrict the searchcontrols - Provides several settings that augment the search
NamingException - If any LDAP related error occurs
public void createEntry(DistinguishedName dn,
Attributes attributes)
public void updateEntry(DistinguishedName dn,
List modificationItems)
public void moveEntry(DistinguishedName olddn,
DistinguishedName newdn)
public void replaceEntry(DistinguishedName dn,
Attributes attributes)
public void deleteEntry(DistinguishedName dn)
public void deleteEntryRecursively(DistinguishedName dn)
public Object getSubContextSource(DistinguishedName brdn)
public MetaClass getMetaClass()
public void setMetaClass(MetaClass metaClass)
public Object invokeMethod(String name,
Object args)
public Object getProperty(String name)
public void setProperty(String name,
Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||