Interface Condition
- All Known Implementing Classes:
AndCondition
,EqualCondition
,NamedParameterCondition
,PresentCondition
,SubstringCondition
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
Modifier and TypeMethodDescriptionvoid
applyCondition
(StringBuilder filter) boolean
isBinary()
void
setBinary
(boolean binary) void
setParameterName
(String parameterName) default String
toFilter()
void
updateParameterName
(String modelParamName, String ldapParamName) Will change the parameter name if it is "modelParamName" to "ldapParamName" .
-
Method Details
-
getParameterName
String getParameterName() -
setParameterName
-
updateParameterName
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
-
setBinary
void setBinary(boolean binary) -
isBinary
boolean isBinary() -
toFilter
-