Interface Condition
-
- All Known Implementing Classes:
EqualCondition
,NamedParameterCondition
public interface Condition
A
Condition
is used to specify how a specific query parameter is defined in order to filter query results.- Author:
- Pedro Igor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
applyCondition(StringBuilder filter)
String
getParameterName()
boolean
isBinary()
void
setBinary(boolean binary)
void
setParameterName(String parameterName)
void
updateParameterName(String modelParamName, String ldapParamName)
Will change the parameter name if it is "modelParamName" to "ldapParamName" .
-
-
-
Method Detail
-
getParameterName
String getParameterName()
-
setParameterName
void setParameterName(String parameterName)
-
updateParameterName
void updateParameterName(String modelParamName, String ldapParamName)
Will change the parameter name if it is "modelParamName" to "ldapParamName" . Implementation can apply this to subconditions as well. It is used to update LDAP queries, which were created with model parameter name ( for example "firstName" ) and rewrite them to use real LDAP mapped attribute (for example "givenName" )
-
applyCondition
void applyCondition(StringBuilder filter)
-
setBinary
void setBinary(boolean binary)
-
isBinary
boolean isBinary()
-
-