public class ExperimentLoggingDataBean
extends java.lang.Object
ExperimentLoggingDataBean eldb = new ExperimentLoggingDataBean(experimentId, testElementId, storeId); eldb.setExperimentData(experimentName, experimentTypeId); eldb.setTestElementData(testElementName, frequency, isControl); eldb.setResultData(results, resultType); eldb.setTestElementWasViewed(true); ExperimentEventUtilities.sendExperimentLoggingEvent(eldb);
ExperimentLoggingDataBean eldb = new ExperimentLoggingDataBean(experimentId, testElementId, storeId); eldb.setTestElementWasClicked(true); ExperimentEventUtilities.sendExperimentLoggingEvent(eldb);
ExperimentLoggingDataBean eldb = new ExperimentLoggingDataBean(experimentId, testElementId, storeId); eldb.setTestElementWasCustom1(true); ExperimentEventUtilities.sendExperimentLoggingEvent(eldb);
Constructor and Description |
---|
ExperimentLoggingDataBean()
Creates an
ExperimentLoggingDataBean . |
ExperimentLoggingDataBean(java.lang.Integer experimentId,
java.lang.Integer testElementId,
java.lang.Integer storeId)
Creates an
ExperimentLoggingDataBean . |
ExperimentLoggingDataBean(java.lang.Integer experimentId,
java.lang.Integer testElementId,
java.lang.Integer storeId,
java.lang.String sessionId)
Creates an
ExperimentLoggingDataBean . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayFrequency()
This method gets the display frequency of the test element.
|
java.lang.String |
getExperimentId()
This method gets the experiment ID of the event being logged.
|
java.lang.String |
getExperimentName()
This method gets the name of the experiment of the event being logged.
|
java.lang.String |
getExperimentSessionId()
This method gets the session ID to be used in experiment events.
|
java.lang.String |
getExperimentTypeId()
This method gets the type of the experiment of the event being logged.
|
boolean |
getIsControlTestElement()
This method gets the value that specifies whether or not this test element is the control test element.
|
java.lang.String |
getIsControlTestElementAsString()
This method gets the value that specifies whether or not this test element is the control test element.
|
java.lang.String |
getResults()
This method gets the results that were displayed to the customer.
|
java.lang.String |
getResultType()
This method gets the type of the results that were displayed to the customer.
|
java.lang.String |
getSessionId()
This method gets the session ID of the event being logged.
|
java.lang.String |
getStoreId()
This method gets the store ID of the event being logged.
|
java.lang.String |
getTestElementId()
This method gets the test element ID of the event being logged.
|
java.lang.String |
getTestElementName()
This method gets the test element name of the event being logged.
|
boolean |
getTestElementWasClicked()
This method gets the value that specifies whether or not this test element was clicked by the customer.
|
java.lang.String |
getTestElementWasClickedAsString()
This method gets the value that specifies whether or not this test element was clicked by the customer.
|
boolean |
getTestElementWasCustom1()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
java.lang.String |
getTestElementWasCustom1AsString()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
boolean |
getTestElementWasCustom2()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
java.lang.String |
getTestElementWasCustom2AsString()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
boolean |
getTestElementWasCustom3()
Gets if an action was performed on the test element by the customer.
|
java.lang.String |
getTestElementWasCustom3AsString()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
boolean |
getTestElementWasCustom4()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
java.lang.String |
getTestElementWasCustom4AsString()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
boolean |
getTestElementWasCustom5()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
java.lang.String |
getTestElementWasCustom5AsString()
This method gets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
boolean |
getTestElementWasViewed()
This method gets the value that specifies whether or not this test element was viewed by the customer.
|
java.lang.String |
getTestElementWasViewedAsString()
This method gets the value that specifies whether or not this test element was viewed by the customer.
|
void |
setDisplayFrequency(java.lang.String freq)
This method sets the display frequency of the test element.
|
void |
setExperimentData(java.lang.String experimentName,
java.lang.Integer experimentTypeId)
This method sets the experiment data.
|
void |
setExperimentId(java.lang.Integer expId)
This method sets the experiment ID.
|
void |
setExperimentName(java.lang.String name)
This method sets the name of the experiment.
|
void |
setExperimentTypeId(java.lang.Integer typeId)
This method sets the type of the experiment.
|
void |
setIsControlTestElement(boolean control)
This method sets the field that indicates whether or not the test element is the control test element.
|
void |
setIsControlTestElement(java.lang.String control)
This method sets the field that indicates whether or not the test element is the control test element.
|
void |
setResultData(java.lang.String results,
java.lang.String resultType)
This method sets the test result data.
|
void |
setResults(java.lang.String results)
This method sets the results that were displayed to the customer.
|
void |
setResultType(java.lang.String restype)
This method sets the type of the results that were displayed to the customer.
|
void |
setSessionId(java.lang.String sessionId)
This method sets the session ID.
|
void |
setStoreId(java.lang.Integer storeId)
This element sets the store ID.
|
void |
setTestElementData(java.lang.String testElementName,
java.lang.String frequency,
boolean isControl)
This method sets the test element data.
|
void |
setTestElementData(java.lang.String testElementName,
java.lang.String frequency,
java.lang.String isControl)
This method sets the test element data.
|
void |
setTestElementId(java.lang.Integer testId)
This method sets the test element ID.
|
void |
setTestElementName(java.lang.String name)
This method sets the test element name.
|
void |
setTestElementWasClicked(boolean c)
This method sets the field that specifies whether or not the test element was clicked by the customer.
|
void |
setTestElementWasClicked(java.lang.String c)
This method sets the field that specifies whether or not the test element was clicked by the customer.
|
void |
setTestElementWasCustom1(boolean c)
This method sets the field that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom1(java.lang.String c)
This method sets the field that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom2(boolean c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom2(java.lang.String c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom3(boolean c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom3(java.lang.String c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom4(boolean c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom4(java.lang.String c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom5(boolean c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasCustom5(java.lang.String c)
This method sets the value that specifies whether or not a custom action was performed on the test element by the customer.
|
void |
setTestElementWasViewed(boolean v)
This method sets the field that specifies whether or not the test element was viewed by the customer.
|
void |
setTestElementWasViewed(java.lang.String v)
This method sets the field that specifies whether or not the test element was viewed by the customer.
|
java.lang.String |
toString()
This method gets the string respresentation of this data bean.
|
public ExperimentLoggingDataBean()
ExperimentLoggingDataBean
.
This constructor just calls the superclass constructor.public ExperimentLoggingDataBean(java.lang.Integer experimentId, java.lang.Integer testElementId, java.lang.Integer storeId)
ExperimentLoggingDataBean
. This constructor calls the superclass constructor then
sets values specified by the three parameters.experimentId
- The experiment ID.testElementId
- The test element ID.storeId
- The store ID.public ExperimentLoggingDataBean(java.lang.Integer experimentId, java.lang.Integer testElementId, java.lang.Integer storeId, java.lang.String sessionId)
ExperimentLoggingDataBean
. This constructor calls the superclass constructor then
sets values specified by the four parameters.experimentId
- The experiment ID.testElementId
- The test element ID.storeId
- The store ID.sessionId
- The user's unique session ID.public java.lang.String getDisplayFrequency()
public java.lang.String getExperimentId()
public java.lang.String getExperimentName()
public java.lang.String getExperimentSessionId()
public java.lang.String getExperimentTypeId()
public boolean getIsControlTestElement()
public java.lang.String getIsControlTestElementAsString()
public java.lang.String getResults()
results
is a comma delimited list of CATENTRY_IDs.results
is a CATALOG_ID, followed by a comma delimited list of CATGROUP_IDs.results
is a comma delimited list of CALCODE_IDs.results
is a comma delimited list of COLLATERAL_IDs.public java.lang.String getResultType()
public java.lang.String getSessionId()
public java.lang.String getStoreId()
public java.lang.String getTestElementId()
public java.lang.String getTestElementName()
public boolean getTestElementWasClicked()
public java.lang.String getTestElementWasClickedAsString()
public boolean getTestElementWasCustom1()
public java.lang.String getTestElementWasCustom1AsString()
public boolean getTestElementWasCustom2()
public java.lang.String getTestElementWasCustom2AsString()
public boolean getTestElementWasCustom3()
public java.lang.String getTestElementWasCustom3AsString()
public boolean getTestElementWasCustom4()
public java.lang.String getTestElementWasCustom4AsString()
public boolean getTestElementWasCustom5()
public java.lang.String getTestElementWasCustom5AsString()
public boolean getTestElementWasViewed()
public java.lang.String getTestElementWasViewedAsString()
public void setDisplayFrequency(java.lang.String freq)
freq
- The display frequency of the test element.public void setExperimentData(java.lang.String experimentName, java.lang.Integer experimentTypeId)
experimentName
- The experiment name.experimentTypeId
- The experiment type ID.public void setExperimentId(java.lang.Integer expId)
expId
- The unique ID of the experiment.public void setExperimentName(java.lang.String name)
name
- The name of the experiment.public void setExperimentTypeId(java.lang.Integer typeId)
typeId
- The experiment type ID.public void setIsControlTestElement(boolean control)
control
- True if the test element is the control test element, false otherwise.public void setIsControlTestElement(java.lang.String control)
control
- '1' if the test element is the control test element, '0' otherwise.public void setResultData(java.lang.String results, java.lang.String resultType)
results
is a comma delimited list of CATENTRY_IDsresults
is a CATALOG_ID, followed by a comma delimited list of CATGROUP_IDsresults
is a comma delimited list of CALCODE_IDsresults
is a comma delimited list of COLLATERAL_IDsresults
- The result that was displayed to the customer.resultType
- the type of data displayed to the customer.public void setResults(java.lang.String results)
results
is a comma delimited list of CATENTRY_IDs.results
is a CATALOG_ID, followed by a comma delimited list of CATGROUP_IDs.results
is a comma delimited list of CALCODE_IDs.results
is a comma delimited list of COLLATERAL_IDs.results
- The results that were displayed to the customer.public void setResultType(java.lang.String restype)
restype
- The type of the results that were displayed to the customer.public void setSessionId(java.lang.String sessionId)
sessionId
- The session ID.public void setStoreId(java.lang.Integer storeId)
storeId
- The ID of the store.public void setTestElementData(java.lang.String testElementName, java.lang.String frequency, boolean isControl)
isControl
parameter is of type boolean
.testElementName
- The test element name.frequency
- The display frequency of the test element.isControl
- The test element the control element.public void setTestElementData(java.lang.String testElementName, java.lang.String frequency, java.lang.String isControl)
testElementName
- The test element name.frequency
- The display frequency of the test element.isControl
- '1' if the test element is the control element, '0' otherwise.public void setTestElementId(java.lang.Integer testId)
testId
- The ID of the test element.public void setTestElementName(java.lang.String name)
name
- The name of the test element.public void setTestElementWasClicked(boolean c)
c
- True if the test element was clicked by the customer, false otherwise.public void setTestElementWasClicked(java.lang.String c)
c
- '1' if the test element was clicked by the customer, '0' otherwise.public void setTestElementWasCustom1(boolean c)
c
- True if a custom action was performed on the test element by the customer, false otherwise.public void setTestElementWasCustom1(java.lang.String c)
c
- '1' if a custom action was performed on the test element by the customer, '0' otherwise.public void setTestElementWasCustom2(boolean c)
c
- True if a custom action was performed on the test element by the customer, false otherwise.public void setTestElementWasCustom2(java.lang.String c)
c
- '1'if a custom action was performed on the test element by the customer, '0' otherwise.public void setTestElementWasCustom3(boolean c)
c
- True if a custom action was performed on the test element by the customer, false otherwise.public void setTestElementWasCustom3(java.lang.String c)
c
- '1' if a custom action was performed on the test element by the customer, '0' otherwise.public void setTestElementWasCustom4(boolean c)
c
- True if a custom action was performed on the test element by the customer, false otherwise.public void setTestElementWasCustom4(java.lang.String c)
c
- '1' if a custom action was performed on the test element by the customer, '0' otherwise.public void setTestElementWasCustom5(boolean c)
c
- True if a custom action was performed on the test element by the customer, false otherwise.public void setTestElementWasCustom5(java.lang.String c)
c
- if an action was performed on the test element by the customer, '1' for true, '0' for false.public void setTestElementWasViewed(boolean v)
v
- True if the test element was viewed by the customer, false otherwise.public void setTestElementWasViewed(java.lang.String v)
v
- '1' if the test element was viewed by the customer, '0' otherwise.public java.lang.String toString()
toString
in class java.lang.Object