Usage | Extend the search dialog by additional conditions, for example, you can add specific search predicates for your own object types. |
Attributes | ![]() ![]() ![]() |
Interface | PredicateEditor ![]() (Get predicate to be added by this editor) ![]() (Get URL of layout to be rendered) ![]() (Get name of adapter class to be used for rendering, must be a subclass of AbstractPredicateAdapter) ![]() (Get name of predicate class to be used for rendering, must be a subclass of AbstractPredicate) |
The interface Predicate (many implementing classes are already available in CentraSiteUtils.jar) with its abstract subclass AbstractPredicate has the following methods: ![]() (Check whether this predicate applies to objects of given object type) ![]() (Get unique internal string representation of type of predicate; not to be localized. You may use a namespace-like notation for your own.) ![]() (Get human readable localized representation of type of predicate; CentraSite Control will display it on the left hand side in the Add Condition dialog) ![]() (Validate parameters set for this predicate. The InvalidPredicateException should contain a localized message text) ![]() (Get human readable localized string representation of predicate including values predicate; CentraSite Control will display it in the condition table in the header section of the Search Registry dialog) ![]() (Check whether this predicate requires an Enterprise license) ![]() (Add contribution of predicate to given BusinessQuery. This is the worker method applying the predicate to the search result.) | |
AbstractPredicate also provides implementations for the following methods: ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | |
Abstract base class | AbstractPredicateEditor |
Processing | ![]() ![]() ![]() |
Provided by | CentraSite Control |
Example | <extension point="com.centrasite.control.searchPredicate" id="ObjectTypePredicateEditor" class="com.centrasite.control...ObjectTypePredicateEditor"> </extension> |