Interface VariantPublishAction

All Superinterfaces:
VariantUpdateAction

public interface VariantPublishAction extends VariantUpdateAction

Publishes the Variant by copying the staged data to the current data and setting the published flag to true. Staged will be empty. The parent Product must be published before a Variant can be published. Generates the VariantPublished Message.


Example to create an instance using the builder pattern

     VariantPublishAction variantPublishAction = VariantPublishAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • of

      static VariantPublishAction of()
      factory method
      Returns:
      instance of VariantPublishAction
    • of

      factory method to create a shallow copy VariantPublishAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • copyDeep

      Specified by:
      copyDeep in interface VariantUpdateAction
    • deepCopy

      @Nullable static VariantPublishAction deepCopy(@Nullable VariantPublishAction template)
      factory method to create a deep copy of VariantPublishAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static VariantPublishActionBuilder builder()
      builder factory method for VariantPublishAction
      Returns:
      builder
    • builder

      create builder for VariantPublishAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withVariantPublishAction

      default <T> T withVariantPublishAction(Function<VariantPublishAction,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static tools.jackson.core.type.TypeReference<VariantPublishAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference