public class EchoBusinessObjectChangeHistoryDelegateMediatorImpl extends AbstractBusinessObjectMediatorImpl implements com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.EchoBusinessObjectChangeHistoryMediator
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
ACTION_ADD_STRING, ACTION_CHANGE_STRING, ACTION_CREATE_STRING, ACTION_DELETE, ACTION_DELETE_STRING, ACTION_NEW, ACTION_RESTORE_STRING, ACTION_UPDATE, BASE_TASKGRP, BASE_WORKSPACE
Constructor and Description |
---|
EchoBusinessObjectChangeHistoryDelegateMediatorImpl()
Creates an instance of a change history mediator that uses
CMPRMYOBJ
to store the change history information. |
Modifier and Type | Method and Description |
---|---|
void |
createChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryData)
To insert change history data
|
void |
createChangeHistoryExtendedData(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.ChangeHistoryExtendedData extendedData)
To insert change history extended data
|
void |
deleteChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryDataToRemove)
If the action in the existing data is "N" which is the data is new to the workspace, , and new action is to update then just to keep the N action.
|
void |
echoChangeHistory(java.lang.String actionString)
This method will populate change history into CMPRMYOBJ table, for the component specific information, will be saved into CMEXTDATA.
|
void |
echoChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryData)
This method will populate change history into CMPRMYOBJ table, for the component specific information, will be saved into CMEXTDATA.
|
com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet |
getChangeHistoryData()
This method return the change history data to be caught by this mediator
|
static com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryService |
getClassForAddtionalService(java.lang.String className)
Gets the defined service implementation class for the noun, this class is specified in the history configuration file
|
void |
initialize(commonj.sdo.DataObject noun,
short source)
Initialize the change mediator with the nouns submitted for the change request
|
void |
initializeConfig(BusinessObjectMediatorConfig aConfig,
java.util.Map properties)
This method initializes the change history mediator by extract the configuration properties that
controls how the noun's change will be saved.
|
void |
populateContextData(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryData)
This method set the workspace data to ChangeHistory
|
void |
updateChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet newChangeHistoryData,
com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet oldChangeHistoryData)
For the unique index(workspace+taskgrp+objectId+objectType+storeent_id), if there was any change history, then need to update the record to record the last change on the last track by the
last conductor, with last action
|
void |
updateChangeHistoryExtendedData(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.ChangeHistoryExtendedData extendedData)
To update change history extended data
|
public static final java.lang.String COPYRIGHT
public EchoBusinessObjectChangeHistoryDelegateMediatorImpl()
CMPRMYOBJ
to store the change history information.public void populateContextData(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryData) throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
populateContextData
in interface com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.EchoBusinessObjectChangeHistoryMediator
changeHistoryData
- The activity token of the request.com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
- When there is any error during set context informationpublic static com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryService getClassForAddtionalService(java.lang.String className) throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
className
- The name for the nouncom.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
- This exception is thrown if the change history service implementation class cannot be found or initiated.public void echoChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryData)
This method will populate change history into CMPRMYOBJ table, for the component specific information, will be saved into CMEXTDATA.
echoChangeHistory
in interface com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.EchoBusinessObjectChangeHistoryMediator
changeHistoryData
- the change history datapublic com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet getChangeHistoryData()
getChangeHistoryData
in interface com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.EchoBusinessObjectChangeHistoryMediator
public void echoChangeHistory(java.lang.String actionString)
This method will populate change history into CMPRMYOBJ table, for the component specific information, will be saved into CMEXTDATA.
echoChangeHistory
in interface com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.EchoBusinessObjectChangeHistoryMediator
actionString
- the action which has been done on the nounpublic void initializeConfig(BusinessObjectMediatorConfig aConfig, java.util.Map properties)
CMPRMYOBJ
table to maintain change history information pertaining to business objects. The configuration
of this change control mediator correlates the how the history information could be retrieved from the changed noun.initializeConfig
in interface BusinessObjectMediator
initializeConfig
in class AbstractBusinessObjectMediatorImpl
aConfig
- The business object mediator configuration for the business object.properties
- The properties of the change control mediator.BusinessObjectMediator.initializeConfig(com.ibm.commerce.foundation.server.services.dataaccess.bom.config.BusinessObjectMediatorConfig, java.util.Map)
public void initialize(commonj.sdo.DataObject noun, short source)
initialize
in interface com.ibm.commerce.foundation.server.services.dataaccess.bom.mediator.EchoBusinessObjectChangeHistoryMediator
noun
- Containing the noun parts that have changes.source
- Contain where the change history came frompublic void updateChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet newChangeHistoryData, com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet oldChangeHistoryData) throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
newChangeHistoryData
- Contain the history data to be updatedoldChangeHistoryData
- Contains the old change hisotry datacom.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
- When there is error when update the existing recordpublic void deleteChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryDataToRemove) throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
changeHistoryDataToRemove
- Contains the old change history datacom.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
- When there is error when delete the existing recordpublic void createChangeHistory(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet changeHistoryData) throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
changeHistoryData
- Contain the history data to be updatedcom.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
- When there is error to create the history datapublic void createChangeHistoryExtendedData(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.ChangeHistoryExtendedData extendedData) throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
extendedData
- Contain the history data to be updatedcom.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
- When there is error to create the history datapublic void updateChangeHistoryExtendedData(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.ChangeHistoryExtendedData extendedData) throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
extendedData
- Contain the history data to be updatedcom.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
- When there is error to create the history data