Class 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
    • 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 of SiteMessage.body attribute defined at extension notificationservices.
      static java.lang.String CONTENT
      Generated constant - Attribute key of SiteMessage.content attribute defined at extension notificationservices.
      static java.lang.String EXTERNALITEM
      Generated constant - Attribute key of SiteMessage.externalItem attribute defined at extension notificationservices.
      static java.lang.String NOTIFICATIONTYPE
      Generated constant - Attribute key of SiteMessage.notificationType attribute defined at extension notificationservices.
      static java.lang.String SUBJECT
      Generated constant - Attribute key of SiteMessage.subject attribute defined at extension notificationservices.
      static java.lang.String TITLE
      Generated constant - Attribute key of SiteMessage.title attribute defined at extension notificationservices.
      static java.lang.String TYPE
      Generated constant - Attribute key of SiteMessage.type attribute defined at extension notificationservices.
      static java.lang.String UID
      Generated constant - Attribute key of SiteMessage.uid attribute defined at extension notificationservices.
    • 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 parameters
      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 parameters
      SiteMessageModel​(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
    • 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 of SiteMessage.uid attribute defined at extension notificationservices.
        See Also:
        Constant Field Values
      • TITLE

        public static final java.lang.String TITLE
        Generated constant - Attribute key of SiteMessage.title attribute defined at extension notificationservices.
        See Also:
        Constant Field Values
      • SUBJECT

        public static final java.lang.String SUBJECT
        Generated constant - Attribute key of SiteMessage.subject attribute defined at extension notificationservices.
        See Also:
        Constant Field Values
      • CONTENT

        public static final java.lang.String CONTENT
        Generated constant - Attribute key of SiteMessage.content attribute defined at extension notificationservices.
        See Also:
        Constant Field Values
      • BODY

        public static final java.lang.String BODY
        Generated constant - Attribute key of SiteMessage.body attribute defined at extension notificationservices.
        See Also:
        Constant Field Values
      • EXTERNALITEM

        public static final java.lang.String EXTERNALITEM
        Generated constant - Attribute key of SiteMessage.externalItem attribute defined at extension notificationservices.
        See Also:
        Constant Field Values
      • TYPE

        public static final java.lang.String TYPE
        Generated constant - Attribute key of SiteMessage.type attribute defined at extension notificationservices.
        See Also:
        Constant Field Values
      • NOTIFICATIONTYPE

        public static final java.lang.String NOTIFICATIONTYPE
        Generated constant - Attribute key of SiteMessage.notificationType attribute defined at extension notificationservices.
        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 parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _type - initial attribute declared by type SiteMessage at extension notificationservices
        _uid - initial attribute declared by type SiteMessage at extension notificationservices
      • 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 parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _owner - initial attribute declared by type Item at extension core
        _type - initial attribute declared by type SiteMessage at extension notificationservices
        _uid - initial attribute declared by type SiteMessage at extension notificationservices
    • Method Detail

      • getBody

        @Accessor(qualifier="body",
                  type=GETTER)
        public java.lang.String getBody()
        Generated method - Getter of the SiteMessage.body attribute defined at extension notificationservices.
        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 1905
        Generated method - Getter of the SiteMessage.content attribute defined at extension notificationservices.
        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 the SiteMessage.content attribute defined at extension notificationservices.
        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 the SiteMessage.externalItem attribute defined at extension notificationservices.
        Returns:
        the externalItem
      • getNotificationType

        @Accessor(qualifier="notificationType",
                  type=GETTER)
        public NotificationType getNotificationType()
        Generated method - Getter of the SiteMessage.notificationType attribute defined at extension notificationservices.
        Returns:
        the notificationType
      • getSubject

        @Accessor(qualifier="subject",
                  type=GETTER)
        public java.lang.String getSubject()
        Generated method - Getter of the SiteMessage.subject attribute defined at extension notificationservices.
        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 1905
        Generated method - Getter of the SiteMessage.title attribute defined at extension notificationservices.
        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 the SiteMessage.title attribute defined at extension notificationservices.
        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
      • getUid

        @Accessor(qualifier="uid",
                  type=GETTER)
        public java.lang.String getUid()
        Generated method - Getter of the SiteMessage.uid attribute defined at extension notificationservices.
        Returns:
        the uid
      • setBody

        @Accessor(qualifier="body",
                  type=SETTER)
        public void setBody​(java.lang.String value)
        Generated method - Setter of SiteMessage.body attribute defined at extension notificationservices.
        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 1905
        Generated method - Setter of SiteMessage.content attribute defined at extension notificationservices.
        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 of SiteMessage.content attribute defined at extension notificationservices.
        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 of SiteMessage.externalItem attribute defined at extension notificationservices.
        Parameters:
        value - the externalItem
      • setNotificationType

        @Accessor(qualifier="notificationType",
                  type=SETTER)
        public void setNotificationType​(NotificationType value)
        Generated method - Setter of SiteMessage.notificationType attribute defined at extension notificationservices.
        Parameters:
        value - the notificationType
      • setSubject

        @Accessor(qualifier="subject",
                  type=SETTER)
        public void setSubject​(java.lang.String value)
        Generated method - Setter of SiteMessage.subject attribute defined at extension notificationservices.
        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 1905
        Generated method - Setter of SiteMessage.title attribute defined at extension notificationservices.
        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 of SiteMessage.title attribute defined at extension notificationservices.
        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 of SiteMessage.type attribute defined at extension notificationservices.
        Parameters:
        value - the type
      • setUid

        @Accessor(qualifier="uid",
                  type=SETTER)
        public void setUid​(java.lang.String value)
        Generated method - Setter of SiteMessage.uid attribute defined at extension notificationservices.
        Parameters:
        value - the uid