Package com.hybris.backoffice.model
Class ThemeModel
java.lang.Object
de.hybris.platform.servicelayer.model.AbstractItemModel
de.hybris.platform.core.model.ItemModel
com.hybris.backoffice.model.ThemeModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CustomThemeModel
Generated model class for type Theme first defined at extension backoffice.
- 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
FieldsModifier and TypeFieldDescriptionstatic final StringGenerated model type code constant.static final StringGenerated constant - Attribute key ofTheme.codeattribute defined at extensionbackoffice.static final StringGenerated constant - Attribute key ofTheme.nameattribute defined at extensionbackoffice.static final StringGenerated constant - Attribute key ofTheme.sequenceattribute defined at extensionbackoffice.static final StringGenerated constant - Attribute key ofTheme.styleattribute defined at extensionbackoffice.static final StringGenerated constant - Attribute key ofTheme.thumbnailattribute defined at extensionbackoffice.Fields 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.ThemeModel(de.hybris.platform.servicelayer.model.ItemModelContext ctx) Generated constructor - Default constructor for creation with existing contextThemeModel(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 parametersThemeModel(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 -
Method Summary
Modifier and TypeMethodDescriptiongetCode()Generated method - Getter of theTheme.codeattribute defined at extensionbackoffice.getName()Generated method - Getter of theTheme.nameattribute defined at extensionbackoffice.Generated method - Getter of theTheme.nameattribute defined at extensionbackoffice.Generated method - Getter of theTheme.sequenceattribute defined at extensionbackoffice.getStyle()Generated method - Getter of theTheme.styleattribute defined at extensionbackoffice.Generated method - Getter of theTheme.thumbnailattribute defined at extensionbackoffice.voidGenerated method - Setter ofTheme.codeattribute defined at extensionbackoffice.voidGenerated method - Setter ofTheme.nameattribute defined at extensionbackoffice.voidGenerated method - Setter ofTheme.nameattribute defined at extensionbackoffice.voidsetSequence(Integer value) Generated method - Setter ofTheme.sequenceattribute defined at extensionbackoffice.voidsetStyle(MediaModel value) Generated method - Setter ofTheme.styleattribute defined at extensionbackoffice.voidsetThumbnail(MediaModel value) Generated method - Setter ofTheme.thumbnailattribute defined at extensionbackoffice.Methods 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:
-
CODE
Generated constant - Attribute key ofTheme.codeattribute defined at extensionbackoffice.- See Also:
-
NAME
Generated constant - Attribute key ofTheme.nameattribute defined at extensionbackoffice.- See Also:
-
THUMBNAIL
Generated constant - Attribute key ofTheme.thumbnailattribute defined at extensionbackoffice.- See Also:
-
STYLE
Generated constant - Attribute key ofTheme.styleattribute defined at extensionbackoffice.- See Also:
-
SEQUENCE
Generated constant - Attribute key ofTheme.sequenceattribute defined at extensionbackoffice.- See Also:
-
-
Constructor Details
-
ThemeModel
public ThemeModel()Generated constructor - Default constructor for generic creation. -
ThemeModel
public ThemeModel(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
-
ThemeModel
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 typeThemeat extensionbackoffice
-
ThemeModel
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 typeThemeat extensionbackoffice_owner- initial attribute declared by typeItemat extensioncore
-
-
Method Details
-
getCode
Generated method - Getter of theTheme.codeattribute defined at extensionbackoffice.- Returns:
- the code
-
getName
Generated method - Getter of theTheme.nameattribute defined at extensionbackoffice.- Returns:
- the name
-
getName
Generated method - Getter of theTheme.nameattribute defined at extensionbackoffice.- Parameters:
loc- the value localization key- Returns:
- the name
- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
getSequence
Generated method - Getter of theTheme.sequenceattribute defined at extensionbackoffice.- 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
Generated method - Getter of theTheme.styleattribute defined at extensionbackoffice.- Returns:
- the style
-
getThumbnail
Generated method - Getter of theTheme.thumbnailattribute defined at extensionbackoffice.- Returns:
- the thumbnail
-
setCode
Generated method - Setter ofTheme.codeattribute defined at extensionbackoffice.- Parameters:
value- the code
-
setName
Generated method - Setter ofTheme.nameattribute defined at extensionbackoffice.- Parameters:
value- the name
-
setName
Generated method - Setter ofTheme.nameattribute defined at extensionbackoffice.- Parameters:
value- the nameloc- the value localization key- Throws:
IllegalArgumentException- if localization key cannot be mapped to data language
-
setSequence
Generated method - Setter ofTheme.sequenceattribute defined at extensionbackoffice.- 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
Generated method - Setter ofTheme.styleattribute defined at extensionbackoffice.- Parameters:
value- the style
-
setThumbnail
Generated method - Setter ofTheme.thumbnailattribute defined at extensionbackoffice.- Parameters:
value- the thumbnail
-