|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.dieselpoint.collection.DieselpointOutputProcessor
Implementation of Raritan IGatewayOutputProcessor
that indexes IResultSets into a Dieselpoint collection.
<OutputProcessor class="com.raritantechnologies.dieselpoint.collection.DieselpointOutputProcessor"
indexPath="[ file path to Dieselpoint collection ]"
newIndex="true(default)|false"
saveEachSet="true(default)|false" >
<!-- Optional Param tags enable mapping of IResult fields to Dieselpoint fields -->
<!-- Example 1 uses IResult field -->
<Param name="[ field name in result ]"
fieldID="[ dieselpoint field name ]"
dataType="[ dieselpoint dataType ]" />
<!-- Example 2 uses path in IResult XML rendering to get the field value-->
<Param path="[ XML path to data in IResult ]"
fieldID="[ dieselpoint field name ]"
dataType="[ dieselpoint dataType ]" />
<!-- Example 3 uses a filePath to import file data into a field -->
<Param filePath="[ file path to data ]"
fileNameField="[ incoming resultID with fileName ]"
fieldID="[ dieselpoint field name ]"
dataType="[ dieselpoint dataType ]" />
<!-- Taxonomy fields require special treatment -->
<Taxonomy fieldID="[ taxonomy field name ]"
path="[ path within IResult XML to taxonomy path value]"
startsWith="[ starting path for this taxonomy]"
multiple="true|false"
nested="true|false"
startAfter="true|false ( determines if 'startsWith' should be part of path)" />
</OutputProcessor>
| Constructor Summary | |
DieselpointOutputProcessor()
|
|
| Method Summary | |
void |
addNameParameter(java.lang.String name,
java.lang.String fieldID,
java.lang.String dataType)
|
void |
addPathParameter(java.lang.String path,
java.lang.String fieldID,
java.lang.String dataType)
|
void |
addTaxonomyParameter(java.lang.String fieldID,
java.lang.String path,
java.lang.String startsWith,
boolean multiple,
boolean nested,
boolean startAfter)
|
void |
dataComplete()
Data feed is complete. |
java.lang.String |
getConfigurationXML()
|
void |
getConfigurationXML(java.io.Writer writer)
|
java.lang.String |
getIndexPath()
|
void |
initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
Initialize the GatewayOutputProcessor from XML Element. |
void |
initialize(java.util.Map initParams)
Used for dynamic initialization (connection, collection name, file name, etc.) |
java.lang.String |
processData(IResultSet data)
returns name of XML File created/appended. |
void |
setIndexPath(java.lang.String indexPath)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DieselpointOutputProcessor()
| Method Detail |
public java.lang.String processData(IResultSet data)
IGatewayOutputProcessor
processData in interface IGatewayOutputProcessorpublic void dataComplete()
IGatewayOutputProcessor
dataComplete in interface IGatewayOutputProcessorpublic void initialize(java.util.Map initParams)
IGatewayOutputProcessor
initialize in interface IGatewayOutputProcessor
public void initialize(org.w3c.dom.Element outputProcElem,
ISearchFieldMap sfMap)
initialize in interface IGatewayOutputProcessorpublic void setIndexPath(java.lang.String indexPath)
public java.lang.String getIndexPath()
public void addNameParameter(java.lang.String name,
java.lang.String fieldID,
java.lang.String dataType)
public void addPathParameter(java.lang.String path,
java.lang.String fieldID,
java.lang.String dataType)
public void addTaxonomyParameter(java.lang.String fieldID,
java.lang.String path,
java.lang.String startsWith,
boolean multiple,
boolean nested,
boolean startAfter)
public void getConfigurationXML(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getConfigurationXML()
getConfigurationXML in interface IGatewayOutputProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||