lumis.search
Class CriteriaUtil

Package class diagram package CriteriaUtil
java.lang.Object
  extended by lumis.search.CriteriaUtil

public abstract class CriteriaUtil
extends Object

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.

Since:
4.0.4

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

CriteriaUtil

public CriteriaUtil()
Method Detail

match

public static boolean match(String criteriaId,
                            IAttributeSetReader attributeSetReader)
                     throws PortalException
Tests if the an IAttributeSetReader object matches the criteria identified by criteriaId.

Parameters:
criteriaId - id of the criteria being tested.
attributeSetReader - element being indexed/searched being tested.
Returns:
true if attributeSetReader matches the criteria identified by criteriaId.
Throws:
PortalException
Since:
4.0.4

match

public static boolean match(Node criteriaNode,
                            IAttributeSetReader attributeSetReader)
                     throws PortalException
Tests if the an IAttributeSetReader object matches the criteria defined in the criteriaNode.

Parameters:
criteriaNode - xml node of the criteria element being tested.
attributeSetReader - element being indexed/searched being tested.
Returns:
true if attributeSetReader matches the criteria defined in criteriaNode.
Throws:
PortalException
Since:
4.0.4


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.