com.memberwebs.ldapxml.helpers
Class LXDefaultHook

java.lang.Object
  extended bycom.memberwebs.ldapxml.helpers.LXDefaultHook
All Implemented Interfaces:
LXHook

public class LXDefaultHook
extends java.lang.Object
implements LXHook

Default implementation of LX processing hook.

Version:
0.5
Author:
stef@memberwebs.com

Constructor Summary
LXDefaultHook()
           
 
Method Summary
 java.lang.String convert(java.lang.String attrName, java.lang.String syntax, java.lang.String value)
          No conversion done for attributes.
 void initialize(java.lang.Object obj)
          No initialization necessary.
 boolean postfix(com.novell.ldap.LDAPEntry entry, org.w3c.dom.Element el)
          Does no post processing on element.
 boolean prefix(com.novell.ldap.LDAPEntry entry)
          Allows pre processing of an entry retrieved from LDAP
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LXDefaultHook

public LXDefaultHook()
Method Detail

initialize

public void initialize(java.lang.Object obj)
                throws LXException
No initialization necessary.

Specified by:
initialize in interface LXHook
Parameters:
obj - Initialization parameter.
Throws:
LXException

prefix

public boolean prefix(com.novell.ldap.LDAPEntry entry)
               throws LXException
Allows pre processing of an entry retrieved from LDAP

Specified by:
prefix in interface LXHook
Parameters:
entry - The LDAP entry retrieved
Returns:
If false then this element will not be included in tree.
Throws:
LXException

postfix

public boolean postfix(com.novell.ldap.LDAPEntry entry,
                       org.w3c.dom.Element el)
                throws LXException
Does no post processing on element.

Specified by:
postfix in interface LXHook
Parameters:
entry - The LDAP entry read.
el - The DOM element constructed.
Returns:
Always returns true.
Throws:
LXException

convert

public java.lang.String convert(java.lang.String attrName,
                                java.lang.String syntax,
                                java.lang.String value)
                         throws LXException
No conversion done for attributes.

Parameters:
attrName - The attribute name.
value - The attribute value.
Returns:
The converted value.
Throws:
LXException