Class SiteMessageModel
- java.lang.Object
-
- de.hybris.platform.servicelayer.model.AbstractItemModel
-
- de.hybris.platform.core.model.ItemModel
-
- de.hybris.platform.notificationservices.model.SiteMessageModel
-
- All Implemented Interfaces:
java.io.Serializable
public class SiteMessageModel extends ItemModel
Generated model class for type SiteMessage first defined at extension notificationservices.- 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
_TYPECODE
Generated model type code constant.static java.lang.String
BODY
Generated constant - Attribute key ofSiteMessage.body
attribute defined at extensionnotificationservices
.static java.lang.String
CONTENT
Generated constant - Attribute key ofSiteMessage.content
attribute defined at extensionnotificationservices
.static java.lang.String
EXTERNALITEM
Generated constant - Attribute key ofSiteMessage.externalItem
attribute defined at extensionnotificationservices
.static java.lang.String
NOTIFICATIONTYPE
Generated constant - Attribute key ofSiteMessage.notificationType
attribute defined at extensionnotificationservices
.static java.lang.String
SUBJECT
Generated constant - Attribute key ofSiteMessage.subject
attribute defined at extensionnotificationservices
.static java.lang.String
TITLE
Generated constant - Attribute key ofSiteMessage.title
attribute defined at extensionnotificationservices
.static java.lang.String
TYPE
Generated constant - Attribute key ofSiteMessage.type
attribute defined at extensionnotificationservices
.static java.lang.String
UID
Generated constant - Attribute key ofSiteMessage.uid
attribute defined at extensionnotificationservices
.-
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 SiteMessageModel()
Generated constructor - Default constructor for generic creation.SiteMessageModel(ItemModel _owner, SiteMessageType _type, java.lang.String _uid)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersSiteMessageModel(SiteMessageType _type, java.lang.String _uid)
Deprecated, for removal: This API element is subject to removal in a future version.since 4.1.1 Please use the default constructor without parametersSiteMessageModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getBody()
Generated method - Getter of theSiteMessage.body
attribute defined at extensionnotificationservices
.java.lang.String
getContent()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905java.lang.String
getContent(java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.ItemModel
getExternalItem()
Generated method - Getter of theSiteMessage.externalItem
attribute defined at extensionnotificationservices
.NotificationType
getNotificationType()
Generated method - Getter of theSiteMessage.notificationType
attribute defined at extensionnotificationservices
.java.lang.String
getSubject()
Generated method - Getter of theSiteMessage.subject
attribute defined at extensionnotificationservices
.java.lang.String
getTitle()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905java.lang.String
getTitle(java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.SiteMessageType
getType()
Generated method - Getter of theSiteMessage.type
attribute defined at extensionnotificationservices
.java.lang.String
getUid()
Generated method - Getter of theSiteMessage.uid
attribute defined at extensionnotificationservices
.void
setBody(java.lang.String value)
Generated method - Setter ofSiteMessage.body
attribute defined at extensionnotificationservices
.void
setContent(java.lang.String value)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905void
setContent(java.lang.String value, java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.void
setExternalItem(ItemModel value)
Generated method - Setter ofSiteMessage.externalItem
attribute defined at extensionnotificationservices
.void
setNotificationType(NotificationType value)
Generated method - Setter ofSiteMessage.notificationType
attribute defined at extensionnotificationservices
.void
setSubject(java.lang.String value)
Generated method - Setter ofSiteMessage.subject
attribute defined at extensionnotificationservices
.void
setTitle(java.lang.String value)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905void
setTitle(java.lang.String value, java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.void
setType(SiteMessageType value)
Generated method - Setter ofSiteMessage.type
attribute defined at extensionnotificationservices
.void
setUid(java.lang.String value)
Generated method - Setter ofSiteMessage.uid
attribute defined at extensionnotificationservices
.-
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
-
UID
public static final java.lang.String UID
Generated constant - Attribute key ofSiteMessage.uid
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
TITLE
public static final java.lang.String TITLE
Generated constant - Attribute key ofSiteMessage.title
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
SUBJECT
public static final java.lang.String SUBJECT
Generated constant - Attribute key ofSiteMessage.subject
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
CONTENT
public static final java.lang.String CONTENT
Generated constant - Attribute key ofSiteMessage.content
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
BODY
public static final java.lang.String BODY
Generated constant - Attribute key ofSiteMessage.body
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
EXTERNALITEM
public static final java.lang.String EXTERNALITEM
Generated constant - Attribute key ofSiteMessage.externalItem
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Generated constant - Attribute key ofSiteMessage.type
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
NOTIFICATIONTYPE
public static final java.lang.String NOTIFICATIONTYPE
Generated constant - Attribute key ofSiteMessage.notificationType
attribute defined at extensionnotificationservices
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SiteMessageModel
public SiteMessageModel()
Generated constructor - Default constructor for generic creation.
-
SiteMessageModel
public SiteMessageModel(ItemModelContext ctx)
Generated constructor - Default constructor for creation with existing context- Parameters:
ctx
- the model context to be injected, must not be null
-
SiteMessageModel
@Deprecated(since="4.1.1", forRemoval=true) public SiteMessageModel(SiteMessageType _type, java.lang.String _uid)
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:
_type
- initial attribute declared by typeSiteMessage
at extensionnotificationservices
_uid
- initial attribute declared by typeSiteMessage
at extensionnotificationservices
-
SiteMessageModel
@Deprecated(since="4.1.1", forRemoval=true) public SiteMessageModel(ItemModel _owner, SiteMessageType _type, java.lang.String _uid)
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:
_owner
- initial attribute declared by typeItem
at extensioncore
_type
- initial attribute declared by typeSiteMessage
at extensionnotificationservices
_uid
- initial attribute declared by typeSiteMessage
at extensionnotificationservices
-
-
Method Detail
-
getBody
@Accessor(qualifier="body", type=GETTER) public java.lang.String getBody()
Generated method - Getter of theSiteMessage.body
attribute defined at extensionnotificationservices
.- Returns:
- the body
-
getContent
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="content", type=GETTER) public java.lang.String getContent()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Generated method - Getter of theSiteMessage.content
attribute defined at extensionnotificationservices
.- Returns:
- the content - Deprecated since 1905, will be replace by body.
-
getContent
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="content", type=GETTER) public java.lang.String getContent(java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.Generated method - Getter of theSiteMessage.content
attribute defined at extensionnotificationservices
.- Parameters:
loc
- the value localization key- Returns:
- the content - Deprecated since 1905, will be replace by body.
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getExternalItem
@Accessor(qualifier="externalItem", type=GETTER) public ItemModel getExternalItem()
Generated method - Getter of theSiteMessage.externalItem
attribute defined at extensionnotificationservices
.- Returns:
- the externalItem
-
getNotificationType
@Accessor(qualifier="notificationType", type=GETTER) public NotificationType getNotificationType()
Generated method - Getter of theSiteMessage.notificationType
attribute defined at extensionnotificationservices
.- Returns:
- the notificationType
-
getSubject
@Accessor(qualifier="subject", type=GETTER) public java.lang.String getSubject()
Generated method - Getter of theSiteMessage.subject
attribute defined at extensionnotificationservices
.- Returns:
- the subject
-
getTitle
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle()
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Generated method - Getter of theSiteMessage.title
attribute defined at extensionnotificationservices
.- Returns:
- the title - Deprecated since 1905, will be replace by subject.
-
getTitle
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="title", type=GETTER) public java.lang.String getTitle(java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.Generated method - Getter of theSiteMessage.title
attribute defined at extensionnotificationservices
.- Parameters:
loc
- the value localization key- Returns:
- the title - Deprecated since 1905, will be replace by subject.
- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
getType
@Accessor(qualifier="type", type=GETTER) public SiteMessageType getType()
Generated method - Getter of theSiteMessage.type
attribute defined at extensionnotificationservices
.- Returns:
- the type
-
getUid
@Accessor(qualifier="uid", type=GETTER) public java.lang.String getUid()
Generated method - Getter of theSiteMessage.uid
attribute defined at extensionnotificationservices
.- Returns:
- the uid
-
setBody
@Accessor(qualifier="body", type=SETTER) public void setBody(java.lang.String value)
Generated method - Setter ofSiteMessage.body
attribute defined at extensionnotificationservices
.- Parameters:
value
- the body
-
setContent
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="content", type=SETTER) public void setContent(java.lang.String value)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Generated method - Setter ofSiteMessage.content
attribute defined at extensionnotificationservices
.- Parameters:
value
- the content - Deprecated since 1905, will be replace by body.
-
setContent
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="content", type=SETTER) public void setContent(java.lang.String value, java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.Generated method - Setter ofSiteMessage.content
attribute defined at extensionnotificationservices
.- Parameters:
value
- the content - Deprecated since 1905, will be replace by body.loc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
setExternalItem
@Accessor(qualifier="externalItem", type=SETTER) public void setExternalItem(ItemModel value)
Generated method - Setter ofSiteMessage.externalItem
attribute defined at extensionnotificationservices
.- Parameters:
value
- the externalItem
-
setNotificationType
@Accessor(qualifier="notificationType", type=SETTER) public void setNotificationType(NotificationType value)
Generated method - Setter ofSiteMessage.notificationType
attribute defined at extensionnotificationservices
.- Parameters:
value
- the notificationType
-
setSubject
@Accessor(qualifier="subject", type=SETTER) public void setSubject(java.lang.String value)
Generated method - Setter ofSiteMessage.subject
attribute defined at extensionnotificationservices
.- Parameters:
value
- the subject
-
setTitle
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value)
Deprecated, for removal: This API element is subject to removal in a future version.since 1905Generated method - Setter ofSiteMessage.title
attribute defined at extensionnotificationservices
.- Parameters:
value
- the title - Deprecated since 1905, will be replace by subject.
-
setTitle
@Deprecated(since="1905", forRemoval=true) @Accessor(qualifier="title", type=SETTER) public void setTitle(java.lang.String value, java.util.Locale loc)
Deprecated, for removal: This API element is subject to removal in a future version.Generated method - Setter ofSiteMessage.title
attribute defined at extensionnotificationservices
.- Parameters:
value
- the title - Deprecated since 1905, will be replace by subject.loc
- the value localization key- Throws:
java.lang.IllegalArgumentException
- if localization key cannot be mapped to data language
-
setType
@Accessor(qualifier="type", type=SETTER) public void setType(SiteMessageType value)
Generated method - Setter ofSiteMessage.type
attribute defined at extensionnotificationservices
.- Parameters:
value
- the type
-
-