Contains operator is used to build restriction containing "(element like
*value1 or element like value1*) and (element like *value2 or element like
value2*)" where element could be a String, a multimedia, a text or an xhtml
For example, use:
RestrictionHelper.contains( myElement , "value1" )
RestrictionHelper.contains( myElement , "value1", "value2", ... )
RestrictionHelper.contains( myElement ,
a_list_containing_at_least_one_string )
Contains() -
Constructor for class org.sharengo.wikitty.search.Contains
Equals operator is used to build restriction containing "element == value"
where element could be an Id, a String, a multimedia, a closed list, an
Integer, a Float or a Date.
Equals() -
Constructor for class org.sharengo.wikitty.search.Equals
Field pattern parser group 1: type (string) group 2: name
(string) group 3: lower bound (number) can be null group 4: upper
bound (number) can be null, mutualy exclusif with group 5 group 5:
upper bound (n or *) can be null group 6: unique can be null
group 7: not null can be null group 8: all tag/value (toto=titi
tutu=tata;lala tata="truc bidulle")
return wikitty id and not wikitty objet because this method can be call
on server or client side and it's better to keep conversion between id
and objet to the caller
Contains operator is used to build restriction containing "(element like
*value1 or element like value1*) and (element like *value2 or element like
value2*)" where element could be a String, a multimedia, a text or an xhtml
For example, use:
RestrictionHelper.contains( myElement , "value1" )
RestrictionHelper.contains( myElement , "value1", "value2", ... )
RestrictionHelper.contains( myElement ,
a_list_containing_at_least_one_string )
In() -
Constructor for class org.sharengo.wikitty.search.In
return wikitty id and not wikitty objet because this method can be call
on server or client side and it's better to keep conversion between id
and objet to the caller