public class EventMapper
extends java.lang.Object
EventMapper
defines operations for transforming the internal CBE XML format to an
external format required by the analytics service provider.
For example, internal formats mostly contain ID values of things like products and orders.
Specific details can be found by a simple database query within WebSphere Commerce.
The problem with external systems, is that they don’t have access to the database,
so, this transformation process does the data lookup for the external format required by the analytics service provider.
The transformation rules are defined in the mapping xml files located at <WC_installdir>\xml\config directory.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The full class name for this file.
|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
Constructor and Description |
---|
EventMapper()
Default constructor
|
EventMapper(org.w3c.dom.Document mappingDoc)
Constructor which takes a mapping document
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
getCommonMappingDoc()
The getter for the common mapping configuration XML document.
|
java.util.HashMap |
getEvents()
The getter for the internal CBE XML’s to be transformed
The eventList will contain KEY as event ID and value as
a string representing the CBE XML to be transformed
|
java.util.HashMap |
getMappingDocs()
The getter for the list of mapping configuration XML documents based on event type
KEY as event extension name and value as mapping document.
|
java.util.HashMap |
getTransformedEvents() |
void |
setCommonMappingDoc(org.w3c.dom.Document mappingDoc)
The setter for the common mapping configuration XML document.
|
void |
setEvents(java.util.HashMap eventList)
The setter for the internal CBE XML’s to be transformed
The eventList will contain an Long KEY as event ID and value as
a Document representing the CBE XML to be transformed
|
void |
setMappingDocs(java.util.HashMap mappingList)
The setter for the list of mapping configuration XML documents based on event type
KEY as event extension name and value as mapping document.
|
void |
transformEvents()
Transforms the events from the BUSEVENT table into an external format required by the analytics service provider.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public EventMapper()
public EventMapper(org.w3c.dom.Document mappingDoc)
mappingDoc
- XML Document for mappingpublic void transformEvents()
public java.util.HashMap getTransformedEvents()
Document
objectspublic void setCommonMappingDoc(org.w3c.dom.Document mappingDoc)
mappingDoc
- event mapping XML documentpublic org.w3c.dom.Document getCommonMappingDoc()
public void setMappingDocs(java.util.HashMap mappingList)
mappingList
- HashMap of event mapping XML documentspublic java.util.HashMap getMappingDocs()
public void setEvents(java.util.HashMap eventList)
eventList
- HashMap of internal CBE XML'spublic java.util.HashMap getEvents()