wt.adapter.org
Class DirectoryQueryTranslator

java.lang.Object
  extended bywt.adapter.org.DirectoryQueryTranslator
All Implemented Interfaces:
Externalizable, Serializable

public class DirectoryQueryTranslator
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  HashMap attributeMap
           
private  String baseDN
           
private  boolean baseSearch
           
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  String service
           
private static boolean VERBOSE
           
private  String whereClause
           
private  int whereCursor
           
private  ArrayList whereTokens
           
 
Constructor Summary
DirectoryQueryTranslator()
          

Supported API: false
DirectoryQueryTranslator(String whereClause, HashMap attributeMap)
          

Supported API: false
 
Method Summary
 HashMap getAttributeMap()
          Gets the value of the attribute: attributeMap.
 String getBaseDN()
           
 String getService()
          

Supported API: false
 String getWhereClause()
          Gets the value of the attribute: whereClause.
 boolean isBaseSearch()
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(DirectoryQueryTranslator thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setAttributeMap(HashMap a_AttributeMap)
          Sets the value of the attribute: attributeMap.
 void setWhereClause(String a_WhereClause)
          Sets the value of the attribute: whereClause.
 String translate()
          

Supported API: false
private  String translateIdentifier(String identifier)
          Translate an identifier of an Info*Engine WHERE clause to an LDAP attribute name.
private  String translateTerm()
          Translate a term of an Info*Engine WHERE clause to an LDAP search expression.
private  String translateWhereClause()
          Translate an Info*Engine WHERE clause to an LDAP search expression.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

whereClause

private String whereClause

attributeMap

private HashMap attributeMap

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

baseDN

private String baseDN

baseSearch

private boolean baseSearch

service

private String service

whereCursor

private int whereCursor

whereTokens

private ArrayList whereTokens

VERBOSE

private static boolean VERBOSE
Constructor Detail

DirectoryQueryTranslator

public DirectoryQueryTranslator(String whereClause,
                                HashMap attributeMap)


Supported API: false

Parameters:
whereClause -
attributeMap -

DirectoryQueryTranslator

public DirectoryQueryTranslator()


Supported API: false

Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(DirectoryQueryTranslator thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getWhereClause

public String getWhereClause()
Gets the value of the attribute: whereClause.

Supported API: false

Returns:
String

setWhereClause

public void setWhereClause(String a_WhereClause)
Sets the value of the attribute: whereClause.

Supported API: false

Parameters:
a_WhereClause -

getAttributeMap

public HashMap getAttributeMap()
Gets the value of the attribute: attributeMap.

Supported API: false

Returns:
HashMap

setAttributeMap

public void setAttributeMap(HashMap a_AttributeMap)
Sets the value of the attribute: attributeMap.

Supported API: false

Parameters:
a_AttributeMap -

translate

public String translate()
                 throws WTException


Supported API: false

Returns:
String
Throws:
WTException

getService

public String getService()


Supported API: false

Returns:
String

translateWhereClause

private String translateWhereClause()
Translate an Info*Engine WHERE clause to an LDAP search expression.

Returns:
The LDAP search expression, or null if expression can not be translated.

translateTerm

private String translateTerm()
Translate a term of an Info*Engine WHERE clause to an LDAP search expression.

Returns:
LDAP search expression, or null if expression can not be translated.

translateIdentifier

private String translateIdentifier(String identifier)
Translate an identifier of an Info*Engine WHERE clause to an LDAP attribute name.

Parameters:
identifier - The identifier to translate
Returns:
The LDAP attribute name

isBaseSearch

public boolean isBaseSearch()

getBaseDN

public String getBaseDN()