public abstract class CriteriaUtil extends Object
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 and Description |
---|
CriteriaUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
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
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.