Interface CategoryChangeSlugAction

All Superinterfaces:
CategoryUpdateAction, ResourceUpdateAction<CategoryUpdateAction>

public interface CategoryChangeSlugAction extends CategoryUpdateAction

Changing the slug produces the CategorySlugChanged Message.


Example to create an instance using the builder pattern

     CategoryChangeSlugAction categoryChangeSlugAction = CategoryChangeSlugAction.builder()
             .slug(slugBuilder -> slugBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getSlug

      @NotNull @Valid @NotNull @Valid LocalizedString getSlug()

      New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern ^[A-Za-z0-9_-]{2,256}+$.

      Returns:
      slug
    • setSlug

      void setSlug(LocalizedString slug)

      New value to set. Must not be empty. A Category can have the same slug for different Locales, but it must be unique across the Project. Valid slugs must match the pattern ^[A-Za-z0-9_-]{2,256}+$.

      Parameters:
      slug - value to be set
    • of

      factory method
      Returns:
      instance of CategoryChangeSlugAction
    • of

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

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

      builder factory method for CategoryChangeSlugAction
      Returns:
      builder
    • builder

      create builder for CategoryChangeSlugAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withCategoryChangeSlugAction

      default <T> T withCategoryChangeSlugAction(Function<CategoryChangeSlugAction,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<CategoryChangeSlugAction> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference