Class ScheduleEventServiceImpl
- java.lang.Object
-
- org.silverpeas.components.scheduleevent.service.ScheduleEventServiceImpl
-
- All Implemented Interfaces:
ScheduleEventService
,org.silverpeas.core.ApplicationService
@Service @Named("scheduledEventService") public class ScheduleEventServiceImpl extends Object implements ScheduleEventService
-
-
Constructor Summary
Constructors Constructor Description ScheduleEventServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createScheduleEvent(ScheduleEvent scheduleEvent)
void
deleteScheduleEvent(ScheduleEvent scheduleEvent)
ScheduleEvent
findScheduleEvent(String scheduleEventId)
org.silverpeas.core.util.LocalizationBundle
getComponentMessages(String language)
org.silverpeas.core.util.SettingBundle
getComponentSettings()
Optional<ScheduleEvent>
getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
boolean
isRelatedTo(String instanceId)
Set<ScheduleEvent>
listAllScheduleEventsByUserId(String userId)
ScheduleEvent
purgeOldResponseForUserId(ScheduleEvent scheduleEvent, int userId)
void
setLastVisited(ScheduleEvent event, int userId)
void
updateScheduleEvent(ScheduleEvent scheduleEvent)
void
updateScheduleEventStatus(String scheduleEventId, int newStatus)
-
-
-
Method Detail
-
createScheduleEvent
public void createScheduleEvent(ScheduleEvent scheduleEvent)
- Specified by:
createScheduleEvent
in interfaceScheduleEventService
-
deleteScheduleEvent
public void deleteScheduleEvent(ScheduleEvent scheduleEvent)
- Specified by:
deleteScheduleEvent
in interfaceScheduleEventService
-
findScheduleEvent
public ScheduleEvent findScheduleEvent(String scheduleEventId)
- Specified by:
findScheduleEvent
in interfaceScheduleEventService
-
listAllScheduleEventsByUserId
public Set<ScheduleEvent> listAllScheduleEventsByUserId(String userId)
- Specified by:
listAllScheduleEventsByUserId
in interfaceScheduleEventService
-
updateScheduleEventStatus
public void updateScheduleEventStatus(String scheduleEventId, int newStatus)
- Specified by:
updateScheduleEventStatus
in interfaceScheduleEventService
-
purgeOldResponseForUserId
public ScheduleEvent purgeOldResponseForUserId(ScheduleEvent scheduleEvent, int userId)
- Specified by:
purgeOldResponseForUserId
in interfaceScheduleEventService
-
updateScheduleEvent
public void updateScheduleEvent(ScheduleEvent scheduleEvent)
- Specified by:
updateScheduleEvent
in interfaceScheduleEventService
-
setLastVisited
public void setLastVisited(ScheduleEvent event, int userId)
- Specified by:
setLastVisited
in interfaceScheduleEventService
-
getContributionById
public Optional<ScheduleEvent> getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)
- Specified by:
getContributionById
in interfaceorg.silverpeas.core.ApplicationService
- Specified by:
getContributionById
in interfaceScheduleEventService
-
getComponentSettings
public org.silverpeas.core.util.SettingBundle getComponentSettings()
- Specified by:
getComponentSettings
in interfaceorg.silverpeas.core.ApplicationService
-
getComponentMessages
public org.silverpeas.core.util.LocalizationBundle getComponentMessages(String language)
- Specified by:
getComponentMessages
in interfaceorg.silverpeas.core.ApplicationService
-
isRelatedTo
public boolean isRelatedTo(String instanceId)
- Specified by:
isRelatedTo
in interfaceorg.silverpeas.core.ApplicationService
-
-