lumis.search
Class Processor

Package class diagram package Processor
java.lang.Object
  extended by lumis.search.Processor
Direct Known Subclasses:
Indexer, Searcher

@StableMinor(version="4.1",
             sinceVersion="4.0")
public abstract class Processor
extends Object

Represents an element that interacts to an index and provides searching services, such as indexing and searching, according to configuration in Search Config File (SearchConfig.xml).

Since:
4.0.4

Field Summary
protected  Node definitionNode
          The processor definition node.
protected  String searchEngineId
          The search engine identifier.
 
Constructor Summary
Processor(Node definitionNode)
          Constructs a processor based on given definition node.
 
Method Summary
 Node getConfigNode(IAttributeSetReader attributeSetReader)
          Returns the Processor's config node which contains criteria that matches the contents of the given attribute set.
 Collection<Node> getConfigNodes(IAttributeSetReader attributeSetReader)
          Returns the Processor's config nodes which contain criteria that matches the contents of the given attribute set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definitionNode

protected final Node definitionNode
The processor definition node.


searchEngineId

protected final String searchEngineId
The search engine identifier.

Constructor Detail

Processor

public Processor(Node definitionNode)
          throws PortalException
Constructs a processor based on given definition node.

Parameters:
definitionNode -
Throws:
PortalException
Since:
4.0.4
Method Detail

getConfigNode

public Node getConfigNode(IAttributeSetReader attributeSetReader)
                   throws PortalException
Returns the Processor's config node which contains criteria that matches the contents of the given attribute set.

Parameters:
attributeSetReader - the attribute set to be used to match the config criteria.
Returns:
the congig node.
Throws:
PortalException
Since:
4.0.4

getConfigNodes

public Collection<Node> getConfigNodes(IAttributeSetReader attributeSetReader)
                                throws PortalException
Returns the Processor's config nodes which contain criteria that matches the contents of the given attribute set.

Parameters:
attributeSetReader - the attribute set to be used to match the config criteria.
Returns:
the config node.
Throws:
PortalException
Since:
4.0.4


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