com.ibm.commerce.price.changehistory

Class PriceListChangeHistoryServiceImpl

  • All Implemented Interfaces:
    com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryService, com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ExtendChangeHistoryService


    public class PriceListChangeHistoryServiceImpl
    extends ExtendAbstractChangeHistoryServiceImpl
    This class implements the change history service to get requested information for the price list noun. Currently change history is not recorded on Price Lists but only when price entries on a catalog entry is changed. Changes made to the price entry are recorded against the catalog entry noun.
    • Constructor Detail

      • PriceListChangeHistoryServiceImpl

        public PriceListChangeHistoryServiceImpl()
    • Method Detail

      • setChangedDataObject

        public void setChangedDataObject(java.lang.Object dataObject)
        Set the changed data object. This is the noun which is being passed in the request BOD.
        Specified by:
        setChangedDataObject in interface com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryService
        Overrides:
        setChangedDataObject in class ExtendAbstractChangeHistoryServiceImpl
        Parameters:
        dataObject - The data object to set
        See Also:
        com.ibm.commerce.content.changehistory.helper.ChangeHistoryService#setChangedDataObject(java.lang.Object)
      • getChangedDataObject

        public void getChangedDataObject(java.lang.Object dataObject)
        Set the changed data object. This is the noun which is being passed in the request BOD.
        Parameters:
        dataObject - The data object to set
        See Also:
        com.ibm.commerce.content.changehistory.helper.ChangeHistoryService#setChangedDataObject(java.lang.Object)
      • getNounConfiguration

        public com.ibm.commerce.foundation.internal.server.services.changehistory.utility.NounConfiguration getNounConfiguration()
        Return the nounConfiguration resolved to the noun for the change history.
        Specified by:
        getNounConfiguration in interface com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryService
        Overrides:
        getNounConfiguration in class ExtendAbstractChangeHistoryServiceImpl
        Returns:
        NounConfiguration
      • getUniqueID

        public java.lang.Long getUniqueID()
        Retrieve uniqueID from the noun by using the specified uniqueIDXpath
        Specified by:
        getUniqueID in interface com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryService
        Specified by:
        getUniqueID in class ExtendAbstractChangeHistoryServiceImpl
        Returns:
        The the unique ID of this noun.
      • getResolvedCMCObject

        public java.lang.String getResolvedCMCObject()
                                              throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
        This method will return the ui-object-name for a changed noun
        Specified by:
        getResolvedCMCObject in interface com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryService
        Overrides:
        getResolvedCMCObject in class ExtendAbstractChangeHistoryServiceImpl
        Returns:
        uiObjectName which will be displayed in the change history UI
        Throws:
        com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException - If there is some error when retrieve ui object name
      • getObjectStoreID

        public java.lang.Long getObjectStoreID()
                                        throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
        This method will return the store ID of current object to use in change history given the context of the current noun request.
        Returns:
        storeId which will be displayed in the change history UI
        Throws:
        com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException - If there is some error when retrieve store id