Class InboxUserNotificationEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.notification.user.InboxUserNotificationEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class InboxUserNotificationEntity extends Object implements WebEntity
It represents the state of a calendar in a calendar as transmitted within the body of an HTTP response or an HTTP request.- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InboxUserNotificationEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected InboxUserNotificationEntity
decorate(SILVERMAILMessage notification)
static InboxUserNotificationEntity
from(SILVERMAILMessage notification)
String
getContent()
String
getDate()
long
getId()
URI
getMarkAsReadURI()
URI
getResourceViewUrl()
String
getSenderName()
String
getSource()
String
getSubject()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.boolean
isRead()
String
toString()
InboxUserNotificationEntity
withMarkAsReadURI(URI uri)
Sets a URI to this entity.InboxUserNotificationEntity
withURI(URI uri)
Sets a URI to this entity.
-
-
-
Method Detail
-
from
public static InboxUserNotificationEntity from(SILVERMAILMessage notification)
-
withURI
public InboxUserNotificationEntity withURI(URI uri)
Sets a URI to this entity. With this URI, it can then be accessed through the Web.- Parameters:
uri
- the web entity URI.- Returns:
- itself.
-
withMarkAsReadURI
public InboxUserNotificationEntity withMarkAsReadURI(URI uri)
Sets a URI to this entity. With this URI, it can then be accessed through the Web.- Parameters:
uri
- the web entity URI.- Returns:
- itself.
-
getURI
public URI getURI()
Description copied from interface:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
getMarkAsReadURI
public URI getMarkAsReadURI()
-
getId
public long getId()
-
getSource
public String getSource()
-
getSubject
public String getSubject()
-
getSenderName
public String getSenderName()
-
getDate
public String getDate()
-
getResourceViewUrl
public URI getResourceViewUrl()
-
getContent
public String getContent()
-
isRead
public boolean isRead()
-
decorate
protected InboxUserNotificationEntity decorate(SILVERMAILMessage notification)
-
-