| org.apache.cocoon.components.naming.LDAPEntryManager
LDAPEntryManager | public class LDAPEntryManager extends AbstractLogEnabled implements EntryManager,Parameterizable,Disposable,Recyclable(Code) | | The LDAPEntryManager is an Avalon Component for managing Entries in a Javax Naming Directory.
This is the LDAP implementation of the
org.apache.cocoon.components.naming.EntryManager EntryManager interface.
This is designed to be used from FlowScript, it uses Maps instead of NamingEnumerations and Attributes.
author: Jeremy Quinn http://apache.org/~jeremy. author: Example configuration (goes in cocoon.xconf) author: author: <component role="org.apache.cocoon.component.EntryManager" class="org.apache.cocoon.components.naming.LDAPEntryManager" logger="flow.ldap"> author: <parameter name="ldap-host" value="ldap://hostname:port"/> author: <parameter name="ldap-base" value="dc=example,dc=com"/> author: <parameter name="ldap-user" value="username"/> author: <parameter name="ldap-pass" value="password"/> author: </component> author:
|
LDAP_BASE_PARAM | final protected static String LDAP_BASE_PARAM(Code) | | |
LDAP_HOST_PARAM | final protected static String LDAP_HOST_PARAM(Code) | | |
LDAP_PASS_PARAM | final protected static String LDAP_PASS_PARAM(Code) | | |
LDAP_USER_PARAM | final protected static String LDAP_USER_PARAM(Code) | | |
LDAPEntryManager | public LDAPEntryManager()(Code) | | |
create | public void create(String name, Map attributes) throws ProcessingException(Code) | | Creates a new Entry
Parameters: name - The name of the Entry to create Parameters: attributes - The Map of Attributes to create it with |
dispose | final public void dispose()(Code) | | |
find | public Map find(Map attributes) throws ProcessingException(Code) | | Finds Entries based on matching their Attributes
Parameters: attributes - The Attributes to match a Map of the results, each with a Map of their Attributes |
find | public Map find(String cntx, Map attributes) throws ProcessingException(Code) | | Finds Entries based on their Attributes
Parameters: cntx - The sub-context to search Parameters: attributes - The Attributes to match a Map of the results, each with a Map of their Attributes |
get | public Map get(String name) throws ProcessingException(Code) | | Retrieves a named Entry's Attributes
Parameters: name - The name of the Entry to modify a Map of the Attributes |
modify | public void modify(String name, int mod_op, Map attributes) throws ProcessingException(Code) | | Modifies an existing Entry
Parameters: name - The name of the Entry to modify Parameters: mod_op - The modification mode to use Parameters: attributes - The Map of modifications |
parameterize | public void parameterize(Parameters params) throws ParameterException(Code) | | Avalon, Parameterize this Class
|
recycle | final public void recycle()(Code) | | |
|
|