Package org.exoplatform.agenda.service
Class AgendaEventDatePollServiceImpl
java.lang.Object
org.exoplatform.agenda.service.AgendaEventDatePollServiceImpl
- All Implemented Interfaces:
org.exoplatform.agenda.service.AgendaEventDatePollService
public class AgendaEventDatePollServiceImpl
extends Object
implements org.exoplatform.agenda.service.AgendaEventDatePollService
-
Constructor Summary
ConstructorsConstructorDescriptionAgendaEventDatePollServiceImpl(AgendaEventDatePollStorage datePollStorage, AgendaEventStorage eventStorage, org.exoplatform.agenda.service.AgendaEventAttendeeService eventAttendeeService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionList<org.exoplatform.agenda.model.EventDateOption>createEventPoll(long eventId, List<org.exoplatform.agenda.model.EventDateOption> dateOptions, long userIdentityId) voiddismissDateOption(long dateOptionId, long identityId) org.exoplatform.agenda.model.EventDateOptiongetEventDateOption(long dateOptionId, ZoneId userTimeZone) List<org.exoplatform.agenda.model.EventDateOption>getEventDateOptions(long eventId, ZoneId userTimeZone) voidresetEventVotes(long eventId) voidsaveEventVotes(long eventId, List<Long> acceptedDatePollIds, long identityId) voidselectEventDateOption(long dateOptionId) Set<org.exoplatform.agenda.constant.AgendaEventModificationType>updateEventDateOptions(long eventId, List<org.exoplatform.agenda.model.EventDateOption> dateOptions) voidvoteDateOption(long dateOptionId, long identityId)
-
Constructor Details
-
AgendaEventDatePollServiceImpl
public AgendaEventDatePollServiceImpl(AgendaEventDatePollStorage datePollStorage, AgendaEventStorage eventStorage, org.exoplatform.agenda.service.AgendaEventAttendeeService eventAttendeeService, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
createEventPoll
public List<org.exoplatform.agenda.model.EventDateOption> createEventPoll(long eventId, List<org.exoplatform.agenda.model.EventDateOption> dateOptions, long userIdentityId) - Specified by:
createEventPollin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService
-
updateEventDateOptions
public Set<org.exoplatform.agenda.constant.AgendaEventModificationType> updateEventDateOptions(long eventId, List<org.exoplatform.agenda.model.EventDateOption> dateOptions) - Specified by:
updateEventDateOptionsin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService
-
getEventDateOptions
public List<org.exoplatform.agenda.model.EventDateOption> getEventDateOptions(long eventId, ZoneId userTimeZone) - Specified by:
getEventDateOptionsin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService
-
getEventDateOption
public org.exoplatform.agenda.model.EventDateOption getEventDateOption(long dateOptionId, ZoneId userTimeZone) - Specified by:
getEventDateOptionin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService
-
saveEventVotes
public void saveEventVotes(long eventId, List<Long> acceptedDatePollIds, long identityId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
saveEventVotesin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
voteDateOption
public void voteDateOption(long dateOptionId, long identityId) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
voteDateOptionin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
dismissDateOption
public void dismissDateOption(long dateOptionId, long identityId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
dismissDateOptionin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
selectEventDateOption
public void selectEventDateOption(long dateOptionId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
selectEventDateOptionin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
resetEventVotes
public void resetEventVotes(long eventId) - Specified by:
resetEventVotesin interfaceorg.exoplatform.agenda.service.AgendaEventDatePollService
-