|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistentDateReminderService
A service on the persistent date reminder for Silverpeas entities. It wraps the mechanism to compute and to retrieve a date reminder for a given resource handled in Silverpeas.
Method Summary | |
---|---|
PersistentResourceDateReminder |
create(EntityReference resource,
DateReminderDetail dateReminderDetail)
Create the DateReminder of the resource referred by the specified EntityReference . |
PersistentResourceDateReminder |
get(EntityReference resource)
Gets the DateReminder of the resource referred by the specified EntityReference . |
Collection<PersistentResourceDateReminder> |
listAllDateReminderMaturing(Date deadLine)
Gets the DateReminder of the resource that mature. |
void |
remove(EntityReference resource)
Removes quietly the DateReminder of the resource referred by the specified entity reference. |
PersistentResourceDateReminder |
set(EntityReference resource,
DateReminderDetail dateReminderDetail)
Set the DateReminder of the resource referred by the specified EntityReference . |
Method Detail |
---|
PersistentResourceDateReminder get(EntityReference resource)
EntityReference
.
If no date reminder exists for the resource, then
PersistentResourceDateReminder#NoneDateReminder
is returned.
resource
- a reference to the resource for which a date reminder will be initialized.
PersistentResourceDateReminder create(EntityReference resource, DateReminderDetail dateReminderDetail) throws DateReminderException
EntityReference
.
resource
- a reference to the resource for which a dateReminder will be set.dateReminderDetail
-
DateReminderException
- if an unexpected error occurs while initializing a dateReminder.PersistentResourceDateReminder set(EntityReference resource, DateReminderDetail dateReminderDetail) throws DateReminderException
EntityReference
.
resource
- a reference to the resource for which a dateReminder will be set.dateReminderDetail
-
DateReminderException
- if an unexpected error occurs while initializing a dateReminder.void remove(EntityReference resource)
resource
- the resource for which the dateReminder has to be removed.Collection<PersistentResourceDateReminder> listAllDateReminderMaturing(Date deadLine)
deadLine
- the date which must trigger the date reminder.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |