Class ScriptModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.core.model.AbstractDynamicContentModel
-
- de.hybris.platform.scripting.model.ScriptModel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CxMapperScriptModel
public class ScriptModel extends AbstractDynamicContentModel
Generated model class for type Script first defined at extension scripting.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
AbstractItemModel.NewModelContextFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_TYPECODEGenerated model type code constant.static java.lang.StringAUTODISABLINGGenerated constant - Attribute key ofScript.autodisablingattribute defined at extensionscripting.static java.lang.StringDESCRIPTIONGenerated constant - Attribute key ofScript.descriptionattribute defined at extensionscripting.static java.lang.StringDISABLEDGenerated constant - Attribute key ofScript.disabledattribute defined at extensionscripting.static java.lang.StringSCRIPTTYPEGenerated constant - Attribute key ofScript.scriptTypeattribute defined at extensionscripting.-
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 ScriptModel()Generated constructor - Default constructor for generic creation.ScriptModel(ItemModelContext ctx)Generated constructor - Default constructor for creation with existing contextScriptModel(java.lang.String _code, java.lang.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 parametersScriptModel(java.lang.String _code, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDescription()Generated method - Getter of theScript.descriptionattribute defined at extensionscripting.java.lang.StringgetDescription(java.util.Locale loc)Generated method - Getter of theScript.descriptionattribute defined at extensionscripting.ScriptTypegetScriptType()Generated method - Getter of theScript.scriptTypeattribute defined at extensionscripting.booleanisAutodisabling()Generated method - Getter of theScript.autodisablingattribute defined at extensionscripting.booleanisDisabled()Generated method - Getter of theScript.disabledattribute defined at extensionscripting.voidsetAutodisabling(boolean value)Generated method - Setter ofScript.autodisablingattribute defined at extensionscripting.voidsetDescription(java.lang.String value)Generated method - Setter ofScript.descriptionattribute defined at extensionscripting.voidsetDescription(java.lang.String value, java.util.Locale loc)Generated method - Setter ofScript.descriptionattribute defined at extensionscripting.voidsetDisabled(boolean value)Generated method - Setter ofScript.disabledattribute defined at extensionscripting.voidsetScriptType(ScriptType value)Generated method - Setter ofScript.scriptTypeattribute defined at extensionscripting.-
Methods inherited from class de.hybris.platform.core.model.AbstractDynamicContentModel
getActive, getChecksum, getCode, getContent, getVersion, setActive, setChecksum, setCode, setContent, setVersion
-
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
-
-
-
-
Field Detail
-
_TYPECODE
public static final java.lang.String _TYPECODE
Generated model type code constant.- See Also:
- Constant Field Values
-
DESCRIPTION
public static final java.lang.String DESCRIPTION
Generated constant - Attribute key ofScript.descriptionattribute defined at extensionscripting.- See Also:
- Constant Field Values
-
SCRIPTTYPE
public static final java.lang.String SCRIPTTYPE
Generated constant - Attribute key ofScript.scriptTypeattribute defined at extensionscripting.- See Also:
- Constant Field Values
-
AUTODISABLING
public static final java.lang.String AUTODISABLING
Generated constant - Attribute key ofScript.autodisablingattribute defined at extensionscripting.- See Also:
- Constant Field Values
-
DISABLED
public static final java.lang.String DISABLED
Generated constant - Attribute key ofScript.disabledattribute defined at extensionscripting.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ScriptModel
public ScriptModel()
Generated constructor - Default constructor for generic creation.
-
ScriptModel
public ScriptModel(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(java.lang.String _code, java.lang.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 parametersGenerated constructor - Constructor with all mandatory attributes.- Parameters:
_code- initial attribute declared by typeAbstractDynamicContentat extensioncore_content- initial attribute declared by typeAbstractDynamicContentat extensioncore
-
ScriptModel
@Deprecated(since="4.1.1", forRemoval=true) public ScriptModel(java.lang.String _code, java.lang.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 parametersGenerated constructor - for all mandatory and initial attributes.- Parameters:
_code- initial attribute declared by typeAbstractDynamicContentat extensioncore_content- initial attribute declared by typeAbstractDynamicContentat extensioncore_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Detail
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription()
Generated method - Getter of theScript.descriptionattribute defined at extensionscripting.- Returns:
- the description
-
getDescription
@Accessor(qualifier="description", type=GETTER) public java.lang.String getDescription(java.util.Locale loc)
Generated method - Getter of theScript.descriptionattribute defined at extensionscripting.- Parameters:
loc- the value localization key- Returns:
- the description
- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
getScriptType
@Accessor(qualifier="scriptType", type=GETTER) public ScriptType getScriptType()
Generated method - Getter of theScript.scriptTypeattribute defined at extensionscripting.- Returns:
- the scriptType
-
isAutodisabling
@Accessor(qualifier="autodisabling", type=GETTER) public boolean isAutodisabling()
Generated method - Getter of theScript.autodisablingattribute defined at extensionscripting.- Returns:
- the autodisabling
-
isDisabled
@Accessor(qualifier="disabled", type=GETTER) public boolean isDisabled()
Generated method - Getter of theScript.disabledattribute defined at extensionscripting.- Returns:
- the disabled
-
setAutodisabling
@Accessor(qualifier="autodisabling", type=SETTER) public void setAutodisabling(boolean value)
Generated method - Setter ofScript.autodisablingattribute defined at extensionscripting.- Parameters:
value- the autodisabling
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value)
Generated method - Setter ofScript.descriptionattribute defined at extensionscripting.- Parameters:
value- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(java.lang.String value, java.util.Locale loc)
Generated method - Setter ofScript.descriptionattribute defined at extensionscripting.- Parameters:
value- the descriptionloc- the value localization key- Throws:
java.lang.IllegalArgumentException- if localization key cannot be mapped to data language
-
setDisabled
@Accessor(qualifier="disabled", type=SETTER) public void setDisabled(boolean value)
Generated method - Setter ofScript.disabledattribute defined at extensionscripting.- Parameters:
value- the disabled
-
setScriptType
@Accessor(qualifier="scriptType", type=SETTER) public void setScriptType(ScriptType value)
Generated method - Setter ofScript.scriptTypeattribute defined at extensionscripting.- Parameters:
value- the scriptType
-
-