public class AuditSearchTerm
extends java.lang.Object
AuditSearchTerm
objects representing search terms. Class allows building more complex terms by using createAND, createOR,
createNOT factory methods.Modifier and Type | Method and Description |
---|---|
static AuditSearchTerm |
and(AuditSearchTerm[] terms)
Creates AND term from given terms.
|
static AuditSearchTerm |
contains(java.lang.String key,
java.lang.String value,
boolean ignoreCase)
Creates a simple search term which requires that given key should contain a value which has the specified string.
|
static AuditSearchTerm |
endsWith(java.lang.String key,
java.lang.String value,
boolean ignoreCase)
Creates a simple search term which requires that given key should contain a value that ends with specified string.
|
static AuditSearchTerm |
isEqual(java.lang.String key,
java.lang.String value,
boolean ignoreCase)
Creates a simple search term which requires that given key should equal specified value.
|
static AuditSearchTerm |
not(AuditSearchTerm term)
Creates negation from given term.
|
static AuditSearchTerm |
or(AuditSearchTerm[] terms)
Creates OR term from given terms.
|
static AuditSearchTerm |
startsWith(java.lang.String key,
java.lang.String value,
boolean ignoreCase)
Creates a simple search term which requires that given key should contain a value that starts with specified string.
|
public static AuditSearchTerm contains(java.lang.String key, java.lang.String value, boolean ignoreCase)
ignoreCase
is true
in
which case letter-case of the value is ignored during search.key
- key which should have specified value associatedvalue
- value that should be associated with given keypublic static AuditSearchTerm startsWith(java.lang.String key, java.lang.String value, boolean ignoreCase)
ignoreCase
is
true
in which case letter-case of the value is ignored during search.key
- key which should have specified value associatedvalue
- value that should be associated with given keypublic static AuditSearchTerm endsWith(java.lang.String key, java.lang.String value, boolean ignoreCase)
ignoreCase
is
true
in which case letter-case of the value is ignored during search.key
- key which should have specified value associatedvalue
- value that should be associated with given keypublic static AuditSearchTerm isEqual(java.lang.String key, java.lang.String value, boolean ignoreCase)
ignoreCase
is true
in which case letter-case of
the value is ignored during search.key
- key which should have specified value associatedvalue
- value that should be associated with given keyignoreCase
- matching should ignore letter case of the valuepublic static AuditSearchTerm and(AuditSearchTerm[] terms)
AuditEntry
to be returned. Order of given terms does not matter.terms
- array of terms from which AND term should be buildpublic static AuditSearchTerm or(AuditSearchTerm[] terms)
AuditEntry
to be returned. Order of given terms does not
matter.terms
- array of terms from which OR term should be buildpublic static AuditSearchTerm not(AuditSearchTerm term)
term
- - term that should be negated.