java.lang.Object
org.exoplatform.commons.api.notification.model.MessageInfo

public class MessageInfo extends Object
  • Constructor Details

    • MessageInfo

      public MessageInfo()
  • Method Details

    • 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
    • from

      public MessageInfo from(String from)
      Parameters:
      from - the from to set
    • getTo

      public String getTo()
      Returns:
      the to
    • to

      public MessageInfo to(String to)
      Parameters:
      to - the to to set
    • getBody

      public String getBody()
      Returns:
      the body
    • body

      public MessageInfo body(String body)
      Parameters:
      body - the body to set
    • 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 -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object