Class ThemeModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CustomThemeModel

public class ThemeModel extends ItemModel
Generated model class for type Theme first defined at extension backoffice.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of Theme.code attribute defined at extension backoffice.
      See Also:
    • NAME

      public static final String NAME
      Generated constant - Attribute key of Theme.name attribute defined at extension backoffice.
      See Also:
    • THUMBNAIL

      public static final String THUMBNAIL
      Generated constant - Attribute key of Theme.thumbnail attribute defined at extension backoffice.
      See Also:
    • STYLE

      public static final String STYLE
      Generated constant - Attribute key of Theme.style attribute defined at extension backoffice.
      See Also:
    • SEQUENCE

      public static final String SEQUENCE
      Generated constant - Attribute key of Theme.sequence attribute defined at extension backoffice.
      See Also:
  • Constructor Details

    • ThemeModel

      public ThemeModel()
      Generated constructor - Default constructor for generic creation.
    • ThemeModel

      public ThemeModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • ThemeModel

      @Deprecated(since="4.1.1", forRemoval=true) public ThemeModel(String _code)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type Theme at extension backoffice
    • ThemeModel

      @Deprecated(since="4.1.1", forRemoval=true) public ThemeModel(String _code, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type Theme at extension backoffice
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Theme.code attribute defined at extension backoffice.
      Returns:
      the code
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName()
      Generated method - Getter of the Theme.name attribute defined at extension backoffice.
      Returns:
      the name
    • getName

      @Accessor(qualifier="name", type=GETTER) public String getName(Locale loc)
      Generated method - Getter of the Theme.name attribute defined at extension backoffice.
      Parameters:
      loc - the value localization key
      Returns:
      the name
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getSequence

      @Accessor(qualifier="sequence", type=GETTER) public Integer getSequence()
      Generated method - Getter of the Theme.sequence attribute defined at extension backoffice.
      Returns:
      the sequence - Sequence for the theme list, this will affect the position of the list when getting list of theme lists, lower values are displayed first
    • getStyle

      @Accessor(qualifier="style", type=GETTER) public MediaModel getStyle()
      Generated method - Getter of the Theme.style attribute defined at extension backoffice.
      Returns:
      the style
    • getThumbnail

      @Accessor(qualifier="thumbnail", type=GETTER) public MediaModel getThumbnail()
      Generated method - Getter of the Theme.thumbnail attribute defined at extension backoffice.
      Returns:
      the thumbnail
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Setter of Theme.code attribute defined at extension backoffice.
      Parameters:
      value - the code
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value)
      Generated method - Setter of Theme.name attribute defined at extension backoffice.
      Parameters:
      value - the name
    • setName

      @Accessor(qualifier="name", type=SETTER) public void setName(String value, Locale loc)
      Generated method - Setter of Theme.name attribute defined at extension backoffice.
      Parameters:
      value - the name
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • setSequence

      @Accessor(qualifier="sequence", type=SETTER) public void setSequence(Integer value)
      Generated method - Setter of Theme.sequence attribute defined at extension backoffice.
      Parameters:
      value - the sequence - Sequence for the theme list, this will affect the position of the list when getting list of theme lists, lower values are displayed first
    • setStyle

      @Accessor(qualifier="style", type=SETTER) public void setStyle(MediaModel value)
      Generated method - Setter of Theme.style attribute defined at extension backoffice.
      Parameters:
      value - the style
    • setThumbnail

      @Accessor(qualifier="thumbnail", type=SETTER) public void setThumbnail(MediaModel value)
      Generated method - Setter of Theme.thumbnail attribute defined at extension backoffice.
      Parameters:
      value - the thumbnail