wt.org
Class DirectoryQueryTranslator

java.lang.Object
  extended bywt.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  boolean baseSearch
           
private static String CLASSNAME
           
private  String dn
           
private  String expression
           
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  int whereCursor
           
private  ArrayList whereTokens
           
 
Constructor Summary
DirectoryQueryTranslator()
          

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

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

Supported API: false
 String getExpression()
          Gets the value of the attribute: expression.
 String getService()
          

Supported API: false
 boolean isBaseSearch()
          

Supported API: false
 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 setExpression(String a_Expression)
          Sets the value of the attribute: expression.
 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

expression

private String expression

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

baseSearch

private boolean baseSearch

dn

private String dn

service

private String service

whereCursor

private int whereCursor

whereTokens

private ArrayList whereTokens

VERBOSE

private static boolean VERBOSE
Constructor Detail

DirectoryQueryTranslator

public DirectoryQueryTranslator()


Supported API: false


DirectoryQueryTranslator

public DirectoryQueryTranslator(String expression,
                                HashMap attributeMap)
                         throws WTException


Supported API: false

Parameters:
expression -
attributeMap -
Throws:
WTException
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

getExpression

public String getExpression()
Gets the value of the attribute: expression.

Supported API: false

Returns:
String

setExpression

public void setExpression(String a_Expression)
Sets the value of the attribute: expression.

Supported API: false

Parameters:
a_Expression -

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

isBaseSearch

public boolean isBaseSearch()


Supported API: false

Returns:
boolean

getService

public String getService()


Supported API: false

Returns:
String

getDn

public String getDn()


Supported API: false

Returns:
String

translateWhereClause

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

Returns:
The LDAP search expression
Throws:
WTException

translateTerm

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

Returns:
LDAP search expression
Throws:
WTException

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