Class ContextChangeContainer

java.lang.Object
com.broadleafcommerce.data.tracking.core.context.ContextChangeContainer
All Implemented Interfaces:
ChangeContainer

public class ContextChangeContainer extends Object implements ChangeContainer
Context implementation version of ChangeContainer to be used with ContextRequest.
Author:
Chad Harchar (charchar)
  • Constructor Details

    • ContextChangeContainer

      public ContextChangeContainer()
  • Method Details

    • getId

      public String getId()
      Description copied from interface: ChangeContainer
      Generally, the context id of the top-level entity that changed
      Specified by:
      getId in interface ChangeContainer
      Returns:
      Generally, the context id of the top-level entity that changed
      See Also:
    • getName

      public String getName()
      Description copied from interface: ChangeContainer
      The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT".
      Specified by:
      getName in interface ChangeContainer
      Returns:
      The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT"
    • getRouteKey

      public String getRouteKey()
      Specified by:
      getRouteKey in interface ChangeContainer
    • getSubContainerName

      public String getSubContainerName()
      Description copied from interface: ChangeContainer
      The name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".
      Specified by:
      getSubContainerName in interface ChangeContainer
      Returns:
      The name of the sub-container (second-level entity), which is typically snake-cased and capitalized, i.e., "PRICE_DATA"
    • setId

      public void setId(String id)
      Description copied from interface: ChangeContainer
      Generally, the context id of the top-level entity that changed
      Specified by:
      setId in interface ChangeContainer
      Parameters:
      id - Generally, the context id of the top-level entity that changed
      See Also:
    • setName

      public void setName(String name)
      Description copied from interface: ChangeContainer
      The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT".
      Specified by:
      setName in interface ChangeContainer
      Parameters:
      name - The name of the top-level entity that changed, which is typically snake-cased and capitalized, i.e., "PRODUCT"
    • setRouteKey

      public void setRouteKey(String routeKey)
      Specified by:
      setRouteKey in interface ChangeContainer
    • setSubContainerName

      public void setSubContainerName(String subContainerName)
      Description copied from interface: ChangeContainer
      The name of the sub-container (second-level entity), which is typically snake-cased and capitalized i.e., "PRICE_DATA".
      Specified by:
      setSubContainerName in interface ChangeContainer
      Parameters:
      subContainerName - The name of the sub-container (second-level entity), which is typically snake-cased and capitalized, i.e., "PRICE_DATA"
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object