Class ScriptModel

java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
All Implemented Interfaces:
Serializable

public class ScriptModel extends AbstractDynamicContentModel
Generated model class for type Script first defined at extension scripting.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    de.hybris.platform.servicelayer.model.AbstractItemModel.NewModelContextFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Generated model type code constant.
    static final String
    Generated constant - Attribute key of Script.autodisabling attribute defined at extension scripting.
    static final String
    Generated constant - Attribute key of Script.description attribute defined at extension scripting.
    static final String
    Generated constant - Attribute key of Script.disabled attribute defined at extension scripting.
    static final String
    Generated constant - Attribute key of Script.scriptType attribute defined at extension scripting.

    Fields inherited from class de.hybris.platform.core.model.AbstractDynamicContentModel

    ACTIVE, CHECKSUM, CODE, CONTENT, VERSION

    Fields inherited from class de.hybris.platform.core.model.ItemModel

    _COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALED

    Fields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Generated constructor - Default constructor for generic creation.
    ScriptModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
    Generated constructor - Default constructor for creation with existing context
    ScriptModel(String _code, String _content)
    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
    ScriptModel(String _code, String _content, 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
  • Method Summary

    Modifier and Type
    Method
    Description
    Generated method - Getter of the Script.description attribute defined at extension scripting.
    Generated method - Getter of the Script.description attribute defined at extension scripting.
    Generated method - Getter of the Script.scriptType attribute defined at extension scripting.
    boolean
    Generated method - Getter of the Script.autodisabling attribute defined at extension scripting.
    boolean
    Generated method - Getter of the Script.disabled attribute defined at extension scripting.
    void
    setAutodisabling(boolean value)
    Generated method - Setter of Script.autodisabling attribute defined at extension scripting.
    void
    Generated method - Setter of Script.description attribute defined at extension scripting.
    void
    Generated method - Setter of Script.description attribute defined at extension scripting.
    void
    setDisabled(boolean value)
    Generated method - Setter of Script.disabled attribute defined at extension scripting.
    void
    Generated method - Setter of Script.scriptType attribute defined at extension scripting.

    Methods inherited from class de.hybris.platform.core.model.ItemModel

    getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwner

    Methods inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel

    equals, getItemModelContext, getItemtype, getPersistenceContext, getPk, getProperty, getProperty, getTenantId, hashCode, readResolve, setProperty, setProperty, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toObject, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toPrimitive, toString, writeReplace

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • _TYPECODE

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

      public static final String DESCRIPTION
      Generated constant - Attribute key of Script.description attribute defined at extension scripting.
      See Also:
    • SCRIPTTYPE

      public static final String SCRIPTTYPE
      Generated constant - Attribute key of Script.scriptType attribute defined at extension scripting.
      See Also:
    • AUTODISABLING

      public static final String AUTODISABLING
      Generated constant - Attribute key of Script.autodisabling attribute defined at extension scripting.
      See Also:
    • DISABLED

      public static final String DISABLED
      Generated constant - Attribute key of Script.disabled attribute defined at extension scripting.
      See Also:
  • Constructor Details

    • ScriptModel

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

      public ScriptModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • ScriptModel

      @Deprecated(since="4.1.1", forRemoval=true) public ScriptModel(String _code, String _content)
      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 AbstractDynamicContent at extension core
      _content - initial attribute declared by type AbstractDynamicContent at extension core
    • ScriptModel

      @Deprecated(since="4.1.1", forRemoval=true) public ScriptModel(String _code, String _content, 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 AbstractDynamicContent at extension core
      _content - initial attribute declared by type AbstractDynamicContent at extension core
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the Script.description attribute defined at extension scripting.
      Returns:
      the description
    • getDescription

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

      @Accessor(qualifier="scriptType", type=GETTER) public ScriptType getScriptType()
      Generated method - Getter of the Script.scriptType attribute defined at extension scripting.
      Returns:
      the scriptType
    • isAutodisabling

      @Accessor(qualifier="autodisabling", type=GETTER) public boolean isAutodisabling()
      Generated method - Getter of the Script.autodisabling attribute defined at extension scripting.
      Returns:
      the autodisabling
    • isDisabled

      @Accessor(qualifier="disabled", type=GETTER) public boolean isDisabled()
      Generated method - Getter of the Script.disabled attribute defined at extension scripting.
      Returns:
      the disabled
    • setAutodisabling

      @Accessor(qualifier="autodisabling", type=SETTER) public void setAutodisabling(boolean value)
      Generated method - Setter of Script.autodisabling attribute defined at extension scripting.
      Parameters:
      value - the autodisabling
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of Script.description attribute defined at extension scripting.
      Parameters:
      value - the description
    • setDescription

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

      @Accessor(qualifier="disabled", type=SETTER) public void setDisabled(boolean value)
      Generated method - Setter of Script.disabled attribute defined at extension scripting.
      Parameters:
      value - the disabled
    • setScriptType

      @Accessor(qualifier="scriptType", type=SETTER) public void setScriptType(ScriptType value)
      Generated method - Setter of Script.scriptType attribute defined at extension scripting.
      Parameters:
      value - the scriptType