Interface CategoryChangeAssetOrderAction

All Superinterfaces:
CategoryUpdateAction, ResourceUpdateAction<CategoryUpdateAction>

public interface CategoryChangeAssetOrderAction extends CategoryUpdateAction

This update action changes the order of the assets array. The new order is defined by listing the ids of the Assets.


Example to create an instance using the builder pattern

     CategoryChangeAssetOrderAction categoryChangeAssetOrderAction = CategoryChangeAssetOrderAction.builder()
             .plusAssetOrder(assetOrderBuilder -> assetOrderBuilder)
             .build()
 
  • Field Details

    • CHANGE_ASSET_ORDER

      static final String CHANGE_ASSET_ORDER
      discriminator value for CategoryChangeAssetOrderAction
      See Also:
  • Method Details

    • getAssetOrder

      @NotNull @NotNull List<String> getAssetOrder()

      New value to set. Must contain all Asset ids.

      Returns:
      assetOrder
    • setAssetOrder

      void setAssetOrder(String... assetOrder)

      New value to set. Must contain all Asset ids.

      Parameters:
      assetOrder - values to be set
    • setAssetOrder

      void setAssetOrder(List<String> assetOrder)

      New value to set. Must contain all Asset ids.

      Parameters:
      assetOrder - values to be set
    • of

      factory method
      Returns:
      instance of CategoryChangeAssetOrderAction
    • of

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

      factory method to create a deep copy of CategoryChangeAssetOrderAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for CategoryChangeAssetOrderAction
      Returns:
      builder
    • builder

      create builder for CategoryChangeAssetOrderAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCategoryChangeAssetOrderAction

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

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