Interface StoreSetLanguagesAction

All Superinterfaces:
ResourceUpdateAction<StoreUpdateAction>, StoreUpdateAction

public interface StoreSetLanguagesAction extends StoreUpdateAction

This update action produces the StoreLanguagesChanged Message. Adding a language other than the ones defined in the Project returns a ProjectNotConfiguredForLanguages error.


Example to create an instance using the builder pattern

     StoreSetLanguagesAction storeSetLanguagesAction = StoreSetLanguagesAction.builder()
             .build()
 
  • Field Details

  • Method Details

    • getLanguages

      List<String> getLanguages()

      Value to set.

      Returns:
      languages
    • setLanguages

      void setLanguages(String... languages)

      Value to set.

      Parameters:
      languages - values to be set
    • setLanguages

      void setLanguages(List<String> languages)

      Value to set.

      Parameters:
      languages - values to be set
    • of

      factory method
      Returns:
      instance of StoreSetLanguagesAction
    • of

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

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

      builder factory method for StoreSetLanguagesAction
      Returns:
      builder
    • builder

      create builder for StoreSetLanguagesAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStoreSetLanguagesAction

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