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_TYPECODEGenerated model type code constant.static java.lang.StringBODYGenerated constant - Attribute key ofSiteMessage.bodyattribute defined at extensionnotificationservices.static java.lang.StringCONTENTGenerated constant - Attribute key ofSiteMessage.contentattribute defined at extensionnotificationservices.static java.lang.StringEXTERNALITEMGenerated constant - Attribute key ofSiteMessage.externalItemattribute defined at extensionnotificationservices.static java.lang.StringNOTIFICATIONTYPEGenerated constant - Attribute key ofSiteMessage.notificationTypeattribute defined at extensionnotificationservices.static java.lang.StringSUBJECTGenerated constant - Attribute key ofSiteMessage.subjectattribute defined at extensionnotificationservices.static java.lang.StringTITLEGenerated constant - Attribute key ofSiteMessage.titleattribute defined at extensionnotificationservices.static java.lang.StringTYPEGenerated constant - Attribute key ofSiteMessage.typeattribute defined at extensionnotificationservices.static java.lang.StringUIDGenerated constant - Attribute key ofSiteMessage.uidattribute 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.StringgetBody()Generated method - Getter of theSiteMessage.bodyattribute defined at extensionnotificationservices.java.lang.StringgetContent()Deprecated, for removal: This API element is subject to removal in a future version.since 1905java.lang.StringgetContent(java.util.Locale loc)Deprecated, for removal: This API element is subject to removal in a future version.ItemModelgetExternalItem()Generated method - Getter of theSiteMessage.externalItemattribute defined at extensionnotificationservices.NotificationTypegetNotificationType()Generated method - Getter of theSiteMessage.notificationTypeattribute defined at extensionnotificationservices.java.lang.StringgetSubject()Generated method - Getter of theSiteMessage.subjectattribute defined at extensionnotificationservices.java.lang.StringgetTitle()Deprecated, for removal: This API element is subject to removal in a future version.since 1905java.lang.StringgetTitle(java.util.Locale loc)Deprecated, for removal: This API element is subject to removal in a future version.SiteMessageTypegetType()Generated method - Getter of theSiteMessage.typeattribute defined at extensionnotificationservices.java.lang.StringgetUid()Generated method - Getter of theSiteMessage.uidattribute defined at extensionnotificationservices.voidsetBody(java.lang.String value)Generated method - Setter ofSiteMessage.bodyattribute defined at extensionnotificationservices.voidsetContent(java.lang.String value)Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetContent(java.lang.String value, java.util.Locale loc)Deprecated, for removal: This API element is subject to removal in a future version.voidsetExternalItem(ItemModel value)Generated method - Setter ofSiteMessage.externalItemattribute defined at extensionnotificationservices.voidsetNotificationType(NotificationType value)Generated method - Setter ofSiteMessage.notificationTypeattribute defined at extensionnotificationservices.voidsetSubject(java.lang.String value)Generated method - Setter ofSiteMessage.subjectattribute defined at extensionnotificationservices.voidsetTitle(java.lang.String value)Deprecated, for removal: This API element is subject to removal in a future version.since 1905voidsetTitle(java.lang.String value, java.util.Locale loc)Deprecated, for removal: This API element is subject to removal in a future version.voidsetType(SiteMessageType value)Generated method - Setter ofSiteMessage.typeattribute defined at extensionnotificationservices.voidsetUid(java.lang.String value)Generated method - Setter ofSiteMessage.uidattribute 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.uidattribute defined at extensionnotificationservices.- See Also:
- Constant Field Values
-
TITLE
public static final java.lang.String TITLE
Generated constant - Attribute key ofSiteMessage.titleattribute defined at extensionnotificationservices.- See Also:
- Constant Field Values
-
SUBJECT
public static final java.lang.String SUBJECT
Generated constant - Attribute key ofSiteMessage.subjectattribute defined at extensionnotificationservices.- See Also:
- Constant Field Values
-
CONTENT
public static final java.lang.String CONTENT
Generated constant - Attribute key ofSiteMessage.contentattribute defined at extensionnotificationservices.- See Also:
- Constant Field Values
-
BODY
public static final java.lang.String BODY
Generated constant - Attribute key ofSiteMessage.bodyattribute defined at extensionnotificationservices.- See Also:
- Constant Field Values
-
EXTERNALITEM
public static final java.lang.String EXTERNALITEM
Generated constant - Attribute key ofSiteMessage.externalItemattribute defined at extensionnotificationservices.- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Generated constant - Attribute key ofSiteMessage.typeattribute defined at extensionnotificationservices.- See Also:
- Constant Field Values
-
NOTIFICATIONTYPE
public static final java.lang.String NOTIFICATIONTYPE
Generated constant - Attribute key ofSiteMessage.notificationTypeattribute 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 typeSiteMessageat extensionnotificationservices_uid- initial attribute declared by typeSiteMessageat 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 typeItemat extensioncore_type- initial attribute declared by typeSiteMessageat extensionnotificationservices_uid- initial attribute declared by typeSiteMessageat extensionnotificationservices
-
-
Method Detail
-
getBody
@Accessor(qualifier="body", type=GETTER) public java.lang.String getBody()
Generated method - Getter of theSiteMessage.bodyattribute 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.contentattribute 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.contentattribute 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.externalItemattribute defined at extensionnotificationservices.- Returns:
- the externalItem
-
getNotificationType
@Accessor(qualifier="notificationType", type=GETTER) public NotificationType getNotificationType()
Generated method - Getter of theSiteMessage.notificationTypeattribute defined at extensionnotificationservices.- Returns:
- the notificationType
-
getSubject
@Accessor(qualifier="subject", type=GETTER) public java.lang.String getSubject()
Generated method - Getter of theSiteMessage.subjectattribute 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.titleattribute 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.titleattribute 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.typeattribute defined at extensionnotificationservices.- Returns:
- the type
-
getUid
@Accessor(qualifier="uid", type=GETTER) public java.lang.String getUid()
Generated method - Getter of theSiteMessage.uidattribute defined at extensionnotificationservices.- Returns:
- the uid
-
setBody
@Accessor(qualifier="body", type=SETTER) public void setBody(java.lang.String value)
Generated method - Setter ofSiteMessage.bodyattribute 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.contentattribute 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.contentattribute 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.externalItemattribute defined at extensionnotificationservices.- Parameters:
value- the externalItem
-
setNotificationType
@Accessor(qualifier="notificationType", type=SETTER) public void setNotificationType(NotificationType value)
Generated method - Setter ofSiteMessage.notificationTypeattribute defined at extensionnotificationservices.- Parameters:
value- the notificationType
-
setSubject
@Accessor(qualifier="subject", type=SETTER) public void setSubject(java.lang.String value)
Generated method - Setter ofSiteMessage.subjectattribute 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.titleattribute 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.titleattribute 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.typeattribute defined at extensionnotificationservices.- Parameters:
value- the type
-
-