Class MessageInfo


  • public class MessageInfo
    extends Object
    • Constructor Detail

      • MessageInfo

        public MessageInfo()
    • Method Detail

      • setId

        public MessageInfo setId​(String id)
        Sets the uuid of messageInfo node
        Parameters:
        id - the pluginId to set
      • getId

        public String getId()
        Gets the uuid of messageInfo node
        Returns:
        the id
      • getPluginId

        public String getPluginId()
        Returns:
        the pluginId
      • pluginId

        public MessageInfo pluginId​(String pluginId)
        Parameters:
        pluginId - the pluginId to set
      • getFrom

        public String getFrom()
        Returns:
        the from
      • getTo

        public String getTo()
        Returns:
        the to
      • getBody

        public String getBody()
        Returns:
        the body
      • getSubject

        public String getSubject()
        Returns:
        the header
      • subject

        public MessageInfo subject​(String subject)
        Parameters:
        subject - the subject to set
      • getFooter

        public String getFooter()
        Returns:
        the footer
      • footer

        public MessageInfo footer​(String footer)
        Parameters:
        footer - the foodter to set
      • addAttachment

        public void addAttachment​(org.exoplatform.services.mail.Attachment attachment)
        Parameters:
        attachment - to add
      • getAttachment

        public List<org.exoplatform.services.mail.Attachment> getAttachment()
        Returns:
        attachments
      • end

        public MessageInfo end()
        Finishes to assign states to current MessageInfo instance
        Returns:
      • makeEmailNotification

        public org.exoplatform.services.mail.Message makeEmailNotification()
      • makeNotification

        public String makeNotification()
      • toJSON

        public String toJSON()
      • getCreatedTime

        public long getCreatedTime()
        Gets time to create MessageInfo and use it as node name
        Returns:
      • setCreatedTime

        public void setCreatedTime​(long createdTime)
      • getNumberOnBadge

        public int getNumberOnBadge()
        Gets the badge number of the user
        Returns:
      • isMoveTop

        public boolean isMoveTop()
        Gets the the move top value
        Returns:
        TRUE/FALSE
      • setMoveTop

        public void setMoveTop​(boolean moveTop)
        Sets the the move top value
        Parameters:
        moveTop - TRUE/FALSE
      • setNumberOnBadge

        public MessageInfo setNumberOnBadge​(int numberOnBadge)
        Sets the badge number of the user
        Parameters:
        numberOnBadge -
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object