Class MessageInfo
- java.lang.Object
-
- org.exoplatform.commons.api.notification.model.MessageInfo
-
public class MessageInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description MessageInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttachment(org.exoplatform.services.mail.Attachment attachment)MessageInfobody(String body)MessageInfoend()Finishes to assign states to current MessageInfo instancebooleanequals(Object obj)MessageInfofooter(String footer)MessageInfofrom(String from)List<org.exoplatform.services.mail.Attachment>getAttachment()StringgetBody()longgetCreatedTime()Gets time to create MessageInfo and use it as node nameStringgetFooter()StringgetFrom()StringgetId()Gets the uuid of messageInfo nodeintgetNumberOnBadge()Gets the badge number of the userStringgetPluginId()StringgetSubject()StringgetTo()inthashCode()booleanisMoveTop()Gets the the move top valueorg.exoplatform.services.mail.MessagemakeEmailNotification()StringmakeNotification()MessageInfopluginId(String pluginId)voidsetCreatedTime(long createdTime)MessageInfosetId(String id)Sets the uuid of messageInfo nodevoidsetMoveTop(boolean moveTop)Sets the the move top valueMessageInfosetNumberOnBadge(int numberOnBadge)Sets the badge number of the userMessageInfosubject(String subject)MessageInfoto(String to)StringtoJSON()StringtoString()
-
-
-
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
-
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-
-
-