Class MessageInfo
java.lang.Object
org.exoplatform.commons.api.notification.model.MessageInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(org.exoplatform.services.mail.Attachment attachment) end()Finishes to assign states to current MessageInfo instancebooleanList<org.exoplatform.services.mail.Attachment> getBody()longGets time to create MessageInfo and use it as node namegetFrom()getId()Gets the uuid of messageInfo nodeintGets the badge number of the usergetTo()inthashCode()booleanGets the the move top valueorg.exoplatform.services.mail.MessagevoidsetCreatedTime(long createdTime) Sets the uuid of messageInfo nodevoidsetMoveTop(boolean moveTop) Sets the the move top valuesetNumberOnBadge(int numberOnBadge) Sets the badge number of the usertoJSON()toString()
-
Constructor Details
-
MessageInfo
public MessageInfo()
-
-
Method Details
-
setId
Sets the uuid of messageInfo node- Parameters:
id- the pluginId to set
-
getId
Gets the uuid of messageInfo node- Returns:
- the id
-
getPluginId
- Returns:
- the pluginId
-
pluginId
- Parameters:
pluginId- the pluginId to set
-
getFrom
- Returns:
- the from
-
from
- Parameters:
from- the from to set
-
getTo
- Returns:
- the to
-
to
- Parameters:
to- the to to set
-
getBody
- Returns:
- the body
-
body
- Parameters:
body- the body to set
-
getSubject
- Returns:
- the header
-
subject
- Parameters:
subject- the subject to set
-
addAttachment
public void addAttachment(org.exoplatform.services.mail.Attachment attachment) - Parameters:
attachment- to add
-
getAttachment
- Returns:
- attachments
-
end
Finishes to assign states to current MessageInfo instance- Returns:
-
makeEmailNotification
public org.exoplatform.services.mail.Message makeEmailNotification() -
makeNotification
-
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
Sets the badge number of the user- Parameters:
numberOnBadge-
-
toString
-
equals
-
hashCode
public int hashCode()
-