|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.dateReminder.persistent.service.DefaultDateReminderService
@Service(value="persistentDateReminderService") public class DefaultDateReminderService
The default implementation of the PersistentDateReminderService
interface.
Constructor Summary | |
---|---|
DefaultDateReminderService()
|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDateReminderService()
Method Detail |
---|
public PersistentResourceDateReminder get(EntityReference resource)
PersistentDateReminderService
EntityReference
.
If no date reminder exists for the resource, then
PersistentResourceDateReminder#NoneDateReminder
is returned.
get
in interface PersistentDateReminderService
resource
- a reference to the resource for which a date reminder will be initialized.
PersistentDateReminderService.get(org.silverpeas.EntityReference)
@Transactional(propagation=REQUIRED) public PersistentResourceDateReminder create(EntityReference resource, DateReminderDetail dateReminderDetail) throws DateReminderException
PersistentDateReminderService
EntityReference
.
create
in interface PersistentDateReminderService
resource
- a reference to the resource for which a dateReminder will be set.
DateReminderException
- if an error occurs while creating a date reminder.PersistentDateReminderService.create(org.silverpeas.EntityReference, DateReminderDetail)
@Transactional(propagation=REQUIRED) public PersistentResourceDateReminder set(EntityReference resource, DateReminderDetail dateReminderDetail) throws DateReminderException
PersistentDateReminderService
EntityReference
.
set
in interface PersistentDateReminderService
resource
- a reference to the resource for which a dateReminder will be set.
DateReminderException
- if an error occurs while setting a date reminder.PersistentDateReminderService.set(org.silverpeas.EntityReference, DateReminderDetail)
@Transactional(propagation=REQUIRED) public void remove(EntityReference resource)
PersistentDateReminderService
remove
in interface PersistentDateReminderService
resource
- the resource for which the dateReminder has to be removed.PersistentDateReminderService.remove(org.silverpeas.EntityReference)
public Collection<PersistentResourceDateReminder> listAllDateReminderMaturing(Date deadLine)
PersistentDateReminderService
listAllDateReminderMaturing
in interface PersistentDateReminderService
deadLine
- the date which must trigger the date reminder.
PersistentDateReminderService.listAllDateReminderMaturing(Date)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |