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:
Serializable
- Direct Known Subclasses:
CxMapperScriptModel
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
AbstractItemModel.NewModelContextFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofScript.autodisablingattribute defined at extensionscripting.static final StringGenerated constant - Attribute key ofScript.descriptionattribute defined at extensionscripting.static final StringGenerated constant - Attribute key ofScript.disabledattribute defined at extensionscripting.static final StringGenerated constant - Attribute key ofScript.scriptTypeattribute defined at extensionscripting.Fields inherited from class de.hybris.platform.core.model.AbstractDynamicContentModel
ACTIVE, CHECKSUM, CODE, CONTENT, VERSIONFields inherited from class de.hybris.platform.core.model.ItemModel
_COMMENTITEMRELATION, COMMENTS, CREATIONTIME, ITEMTYPE, MODIFIEDTIME, OWNER, PK, SEALEDFields inherited from class de.hybris.platform.servicelayer.model.AbstractItemModel
LANGUAGE_FALLBACK_ENABLED_SERVICE_LAYER, MODEL_CONTEXT_FACTORY -
Constructor Summary
ConstructorsConstructorDescriptionGenerated constructor - Default constructor for generic creation.Generated constructor - Default constructor for creation with existing contextScriptModel(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 parametersScriptModel(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 TypeMethodDescriptionGenerated method - Getter of theScript.descriptionattribute defined at extensionscripting.getDescription(Locale loc) Generated method - Getter of theScript.descriptionattribute defined at extensionscripting.Generated method - Getter of theScript.scriptTypeattribute defined at extensionscripting.booleanGenerated method - Getter of theScript.autodisablingattribute defined at extensionscripting.booleanGenerated method - Getter of theScript.disabledattribute defined at extensionscripting.voidsetAutodisabling(boolean value) Generated method - Setter ofScript.autodisablingattribute defined at extensionscripting.voidsetDescription(String value) Generated method - Setter ofScript.descriptionattribute defined at extensionscripting.voidsetDescription(String value, 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, setVersionMethods inherited from class de.hybris.platform.core.model.ItemModel
getComments, getCreationtime, getModifiedtime, getOwner, isSealed, setComments, setCreationtime, setModifiedtime, setOwnerMethods 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 Details
-
_TYPECODE
Generated model type code constant.- See Also:
-
DESCRIPTION
Generated constant - Attribute key ofScript.descriptionattribute defined at extensionscripting.- See Also:
-
SCRIPTTYPE
Generated constant - Attribute key ofScript.scriptTypeattribute defined at extensionscripting.- See Also:
-
AUTODISABLING
Generated constant - Attribute key ofScript.autodisablingattribute defined at extensionscripting.- See Also:
-
DISABLED
Generated constant - Attribute key ofScript.disabledattribute defined at extensionscripting.- See Also:
-
-
Constructor Details
-
ScriptModel
public ScriptModel()Generated constructor - Default constructor for generic creation. -
ScriptModel
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx- the model context to be injected, must not be null
-
ScriptModel
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(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 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 Details
-
getDescription
Generated method - Getter of theScript.descriptionattribute defined at extensionscripting.- Returns:
- the description
-
getDescription
Generated method - Getter of theScript.descriptionattribute defined at extensionscripting.- Parameters:
loc- the value localization key- Returns:
- the description
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getScriptType
Generated method - Getter of theScript.scriptTypeattribute defined at extensionscripting.- Returns:
- the scriptType
-
isAutodisabling
Generated method - Getter of theScript.autodisablingattribute defined at extensionscripting.- Returns:
- the autodisabling
-
isDisabled
Generated method - Getter of theScript.disabledattribute defined at extensionscripting.- Returns:
- the disabled
-
setAutodisabling
Generated method - Setter ofScript.autodisablingattribute defined at extensionscripting.- Parameters:
value- the autodisabling
-
setDescription
Generated method - Setter ofScript.descriptionattribute defined at extensionscripting.- Parameters:
value- the description
-
setDescription
@Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc) Generated method - Setter ofScript.descriptionattribute defined at extensionscripting.- Parameters:
value- the descriptionloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setDisabled
Generated method - Setter ofScript.disabledattribute defined at extensionscripting.- Parameters:
value- the disabled
-
setScriptType
Generated method - Setter ofScript.scriptTypeattribute defined at extensionscripting.- Parameters:
value- the scriptType
-