|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.search.CriteriaUtil
public abstract class CriteriaUtil
Evaluates if an attribute set matches an specified criteria. The search engine framework provided by the package lumis.search has a configuration file named searchconfig.xml. This file specifies configuration for Indexers, Searchers, SearchEngines and the framework itself.
Indexers and Searchers have their configuration defined in one or more elements named <config>. At run time, based on the content being indexed or searched, one of these <config> elements must be selected, in order to define the behavior of the indexing or searching. This selection is done based on a criteria also defined in the configuration file.
This class has methods to evaluate if one criteria matches the element being indexed/searched, which implements the IAttributeSetReader interface.
Constructor Summary | |
---|---|
CriteriaUtil()
|
Method Summary | |
---|---|
static boolean |
match(Node criteriaNode,
IAttributeSetReader attributeSetReader)
Tests if the an IAttributeSetReader object matches the criteria defined in the criteriaNode. |
static boolean |
match(String criteriaId,
IAttributeSetReader attributeSetReader)
Tests if the an IAttributeSetReader object matches the criteria identified by criteriaId. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CriteriaUtil()
Method Detail |
---|
public static boolean match(String criteriaId, IAttributeSetReader attributeSetReader) throws PortalException
criteriaId
- id of the criteria being tested.attributeSetReader
- element being indexed/searched being tested.
PortalException
public static boolean match(Node criteriaNode, IAttributeSetReader attributeSetReader) throws PortalException
criteriaNode
- xml node of the criteria element being tested.attributeSetReader
- element being indexed/searched being tested.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |