Class ReminderEntity
- java.lang.Object
-
- org.silverpeas.core.webapi.reminder.ReminderEntity
-
- All Implemented Interfaces:
Serializable
,WebEntity
public class ReminderEntity extends Object implements WebEntity
It represents a reminder as transmitted within the body of an HTTP response or an HTTP request.- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ReminderEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canBeDeleted()
boolean
canBeModified()
protected <T extends ReminderEntity>
Tdecorate(Reminder reminder)
static ReminderEntity
fromReminder(Reminder reminder)
String
getcId()
String
getcProperty()
String
getDateTime()
Integer
getDuration()
String
getId()
String
getProcessName()
String
getText()
TimeUnit
getTimeUnit()
URI
getURI()
Gets the URI at which this web entity is published and can be accessed.String
getUserId()
Reminder
mergeInto(Reminder reminder)
Merges into given reminder instance the data from the entity.
System data are not merged (id, creation date, update date, ...)void
setcId(String cId)
void
setcProperty(String cProperty)
void
setDateTime(String dateTime)
void
setDuration(Integer duration)
void
setId(String id)
void
setProcessName(String processName)
void
setText(String text)
void
setTimeUnit(TimeUnit timeUnit)
protected void
setUri(URI uri)
void
setUserId(String userId)
String
toString()
ReminderEntity
withURI(URI uri)
Sets a URI to this entity.
-
-
-
Method Detail
-
fromReminder
public static ReminderEntity fromReminder(Reminder reminder)
-
withURI
public ReminderEntity 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.
-
getURI
public URI getURI()
Description copied from interface:WebEntity
Gets the URI at which this web entity is published and can be accessed.
-
setUri
protected void setUri(URI uri)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getcId
public String getcId()
-
setcId
public void setcId(String cId)
-
getcProperty
public String getcProperty()
-
setcProperty
public void setcProperty(String cProperty)
-
getUserId
public String getUserId()
-
setUserId
public void setUserId(String userId)
-
getProcessName
public String getProcessName()
-
setProcessName
public void setProcessName(String processName)
-
getDateTime
public String getDateTime()
-
setDateTime
public void setDateTime(String dateTime)
-
getDuration
public Integer getDuration()
-
setDuration
public void setDuration(Integer duration)
-
getTimeUnit
public TimeUnit getTimeUnit()
-
setTimeUnit
public void setTimeUnit(TimeUnit timeUnit)
-
getText
public String getText()
-
setText
public void setText(String text)
-
canBeModified
public boolean canBeModified()
-
canBeDeleted
public boolean canBeDeleted()
-
decorate
protected <T extends ReminderEntity> T decorate(Reminder reminder)
-
mergeInto
public Reminder mergeInto(Reminder reminder)
Merges into given reminder instance the data from the entity.
System data are not merged (id, creation date, update date, ...)- Parameters:
reminder
- the reminder which will get the new data.- Returns:
- the given reminder instance with merged data.
-
-