|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.fw.util.jndi.EboLdapSearchHelper
No information available
Field Summary | |
static int |
LDAP_APPROX
Ldap operator that corresponds to the '~=' search comparison condition. |
static int |
LDAP_BETWEEN
Ldap operator that corresponds to a SQL 'BETWEEN' operator. |
static int |
LDAP_ENDS_WITH
Ldap operator that corresponds to the '=' search comparison condition where the pattern specifies items that end with a certain sequence of characters. |
static int |
LDAP_EQUAL
Ldap operator that corresponds to the '=' search comparison condition. |
static int |
LDAP_GEQ
Ldap operator that corresponds to the '>=' search comparison condition. |
static int |
LDAP_GREATER
Ldap operator that corresponds to the '!<=' search comparison condition. |
static int |
LDAP_IN
Ldap operator that corresponds to a SQL 'IN' operator. |
static int |
LDAP_LEQ
Ldap operator that corresponds to the '<=' search comparison condition. |
static int |
LDAP_LESS
Ldap operator that corresponds to the '!>=' search comparison condition. |
static int |
LDAP_MATCH
Ldap operator that corresponds to the '=' search comparison condition where the pattern specifies items that contain wildcard characters. |
static int |
LDAP_PRESENCE
Ldap operator that corresponds to the '=*' search comparison condition. |
static int |
LDAP_STARTS_WITH
Ldap operator that corresponds to the '=' search comparison condition where the pattern specifies items that start with a certain sequence of characters. |
Constructor Summary | |
EboLdapSearchHelper()
|
Method Summary | |
static Timestamp |
convertTimestamp(String tmStr)
Convert an LDAP modifyTimestamp attribute with the format of yyyymmddhhmm(ss)Z to a java.sql.Timestamp with the format of yyyy-mm-dd hh:mm:ss.fffffffff |
static String |
genBetween(String attrName,
Object first,
Object last,
boolean not)
Generate an LDAP search filter expression corresponding to SQL BETWEEN query |
static String |
genBetweenWithArgs(String attrName,
Object first,
Object last,
boolean not,
boolean useAttrArgs)
Generate an LDAP search filter expression corresponding to SQL BETWEEN query for use with filter arguments All values will be replaced by arguments. |
static String |
genExpression(String attrName,
Object value,
int op,
boolean not)
Generate an LDAP search filter expression |
static String |
genExpressionWithArgs(String attrName,
int op,
boolean not,
boolean useAttrArg)
Generate an LDAP search filter expression for use with filter arguments All values will be replaced by arguments. |
static String |
genIn(String attrName,
Object[] ins,
boolean not)
Generate an LDAP search filter expression corresponding to SQL IN query |
static String |
genInWithArgs(String attrName,
Object[] ins,
boolean not,
boolean useAttrArg)
Generate an LDAP search filter expression corresponding to SQL IN query for use with filter arguments All values will be replaced by arguments. |
static String |
getOpAsString(int op)
Return the string value of an LDAP Search operator |
static boolean |
isCompareOp(int op)
Indicate whether the specified operator is comparison-based i.e., operator that uses comparison such as MyAttr >= foo |
static boolean |
isRangeOp(int op)
Indicate whether the specified operator is range-based i.e., operator that uses range test such as IN or BETWEEN |
static boolean |
isSubstringOp(int op)
Indicate whether the specified operator is substring-based i.e., operator that uses substring matching such as MyAttr=foo* |
static boolean |
isUnaryOp(int op)
Indicate whether the specified operator is unary i.e., operator that works on one operand such as MyAttr=* |
static boolean |
isValidOp(int op)
Indicate whether the specified operator is valid for use in LDAP search methods |
static boolean |
isValidQueryExprObj(Object obj)
Indicate whether the specified object is valid for LDAP search expressions |
static String |
negate(String str)
Return a negated string The string will be parenthesized and negated with the LDAP negation symbol |
static String |
parenthesize(String str)
Return a parenthesized string |
static String |
wrapString(String wrappee,
String wrapper)
Return a wrapped string |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int LDAP_EQUAL
public static final int LDAP_LESS
public static final int LDAP_LEQ
public static final int LDAP_GREATER
public static final int LDAP_GEQ
public static final int LDAP_APPROX
public static final int LDAP_MATCH
public static final int LDAP_STARTS_WITH
public static final int LDAP_ENDS_WITH
public static final int LDAP_IN
public static final int LDAP_BETWEEN
public static final int LDAP_PRESENCE
Constructor Detail |
public EboLdapSearchHelper()
Method Detail |
public static boolean isValidOp(int op)
op
- the operator identifierpublic static boolean isCompareOp(int op)
op
- the operator identifierpublic static boolean isSubstringOp(int op)
op
- the operator identifierpublic static boolean isUnaryOp(int op)
op
- the operator identifierpublic static boolean isRangeOp(int op)
op
- the operator identifierpublic static boolean isValidQueryExprObj(Object obj)
obj
- the expression valuepublic static String genExpression(String attrName, Object value, int op, boolean not)
attrName
- the attribute namevalue
- the attribute valueop
- the search expression operator (must satisfy isValidOp(op))not
- specifies whether the entire expression should be negatedpublic static String genExpressionWithArgs(String attrName, int op, boolean not, boolean useAttrArg)
attrName
- the attribute nameop
- the search expression operator (must satisfy isValidOp(op))not
- specifies whether the entire expression should be negateduseAttrArg
- specifies whether the attribute name should also be
replaced by an argumentpublic static String genIn(String attrName, Object[] ins, boolean not)
attrName
- the attribute nameins
- the set of values to be matchednot
- specifies whether the entire expression should be negatedpublic static String genInWithArgs(String attrName, Object[] ins, boolean not, boolean useAttrArg)
attrName
- the attribute nameins
- the set of values to be matchednot
- specifies whether the entire expression should be negateduseAttrArgs
- specifies whether the attribute name should also be
replaced by an argumentpublic static String genBetween(String attrName, Object first, Object last, boolean not)
attrName
- the attribute namefirst
- the lowest value to be includedlast
- the highest value to be includednot
- specifies whether the entire expression should be negatedpublic static String genBetweenWithArgs(String attrName, Object first, Object last, boolean not, boolean useAttrArgs)
attrName
- the attribute namefirst
- the lowest value to be includedlast
- the highest value to be includednot
- specifies whether the entire expression should be negateduseAttrArgs
- specifies whether the attribute name should also be
replaced by an argumentpublic static Timestamp convertTimestamp(String tmStr)
tmStr
- a timestamp String in eDirectory formatpublic static String getOpAsString(int op)
int
- an operator value (e.g., EboLdapSearchHelper.LDAP_EQUAL)public static String wrapString(String wrappee, String wrapper)
wrappee
- a string to be wrapped (e.g., "value")wrapper
- the wrapping value (e.g., "'");public static String parenthesize(String str)
str
- a string to be parenthesized (e.g., "attr=value")public static String negate(String str)
str
- a string to be negated (e.g., "attr=value")
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |