Package org.exoplatform.agenda.dao
Class EventDAO
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
- org.exoplatform.agenda.dao.EventDAO
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long>
public class EventDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
-
Constructor Summary
Constructors Constructor Description EventDAO(EventConferenceDAO eventConferenceDAO, EventAttendeeDAO eventAttendeeDAO, GuestUserDAO guestUserDAO, EventReminderDAO eventReminderDAO, EventRecurrenceDAO eventRecurrenceDAO, RemoteEventDAO remoteEventDAO, EventDateOptionDAO dateOptionDAO, EventDatePollDAO datePollDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongcountEventDatePolls(List<Long> attendeeIds, Date fromDate)LongcountEventDatePollsByOwnerIds(List<Long> ownerIds, List<Long> attendeeIds, Date fromDate)LongcountPendingEvents(Long userIdentityId, List<Long> attendeeIds, Date fromDate)longcountPendingEventsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate)EventEntitycreate(EventEntity entity)voiddelete(EventEntity entity)voiddeleteAll()voiddeleteCalendarEvents(long calendarId)EventEntitydeleteEvent(long eventId)voiddeleteExceptionalOccurences(long parentRecurrentEventId)voidexecuteDeleteCalendarEventsQuery(long calendarId)List<Long>getEventDatePollIds(Long userIdentityId, List<Long> attendeeIds, Date fromDate, int offset, int limit)List<Long>getEventDatePollIds(Long userIdentityId, List<Long> attendeeIds, Date start, Date end)List<Long>getEventDatePollIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate, int offset, int limit)List<Long>getEventDatePollIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date start, Date end)List<Long>getEventIds(Date startDate, Date endDate, List<Long> ownerIds, List<Long> attendeeIds, List<org.exoplatform.agenda.constant.EventAttendeeResponse> responseTypes, int limit)List<Long>getExceptionalOccurenceIds(long parentRecurrentEventId)List<Long>getExceptionalOccurenceIdsByPeriod(long parentRecurrentEventId, Date startDate, Date endDate)List<Long>getExceptionalOccurenceIdsByStart(long parentRecurrentEventId, Date startDate)List<EventEntity>getParentRecurrentEventIds(Date startDate, Date endDate)List<Long>getPendingEventIds(Long userIdentityId, List<Long> attendeeIds, Date fromDate, int offset, int limit)List<Long>getPendingEventIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate, int offset, int limit)EventEntityupdate(EventEntity entity)voidupdateAll(List<EventEntity> entities)
-
-
-
Constructor Detail
-
EventDAO
public EventDAO(EventConferenceDAO eventConferenceDAO, EventAttendeeDAO eventAttendeeDAO, GuestUserDAO guestUserDAO, EventReminderDAO eventReminderDAO, EventRecurrenceDAO eventRecurrenceDAO, RemoteEventDAO remoteEventDAO, EventDateOptionDAO dateOptionDAO, EventDatePollDAO datePollDAO)
-
-
Method Detail
-
delete
public void delete(EventEntity entity)
- Specified by:
deletein interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long>- Overrides:
deletein classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
deleteCalendarEvents
public void deleteCalendarEvents(long calendarId)
-
deleteEvent
public EventEntity deleteEvent(long eventId)
-
create
public EventEntity create(EventEntity entity)
- Specified by:
createin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long>- Overrides:
createin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
update
public EventEntity update(EventEntity entity)
- Specified by:
updatein interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long>- Overrides:
updatein classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
deleteAll
public void deleteAll()
- Specified by:
deleteAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long>- Overrides:
deleteAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
updateAll
public void updateAll(List<EventEntity> entities)
- Specified by:
updateAllin interfaceorg.exoplatform.commons.api.persistence.GenericDAO<EventEntity,Long>- Overrides:
updateAllin classorg.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,Long>
-
executeDeleteCalendarEventsQuery
public void executeDeleteCalendarEventsQuery(long calendarId)
-
getEventIds
public List<Long> getEventIds(Date startDate, Date endDate, List<Long> ownerIds, List<Long> attendeeIds, List<org.exoplatform.agenda.constant.EventAttendeeResponse> responseTypes, int limit)
-
getPendingEventIds
public List<Long> getPendingEventIds(Long userIdentityId, List<Long> attendeeIds, Date fromDate, int offset, int limit)
-
countPendingEvents
public Long countPendingEvents(Long userIdentityId, List<Long> attendeeIds, Date fromDate)
-
getPendingEventIdsByOwnerIds
public List<Long> getPendingEventIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate, int offset, int limit)
-
countPendingEventsByOwnerIds
public long countPendingEventsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate)
-
getEventDatePollIds
public List<Long> getEventDatePollIds(Long userIdentityId, List<Long> attendeeIds, Date fromDate, int offset, int limit)
-
getEventDatePollIds
public List<Long> getEventDatePollIds(Long userIdentityId, List<Long> attendeeIds, Date start, Date end)
-
getEventDatePollIdsByOwnerIds
public List<Long> getEventDatePollIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date fromDate, int offset, int limit)
-
getEventDatePollIdsByOwnerIds
public List<Long> getEventDatePollIdsByOwnerIds(Long userIdentityId, List<Long> ownerIds, List<Long> attendeeIds, Date start, Date end)
-
countEventDatePollsByOwnerIds
public Long countEventDatePollsByOwnerIds(List<Long> ownerIds, List<Long> attendeeIds, Date fromDate)
-
getParentRecurrentEventIds
public List<EventEntity> getParentRecurrentEventIds(Date startDate, Date endDate)
-
getExceptionalOccurenceIdsByPeriod
public List<Long> getExceptionalOccurenceIdsByPeriod(long parentRecurrentEventId, Date startDate, Date endDate)
-
getExceptionalOccurenceIdsByStart
public List<Long> getExceptionalOccurenceIdsByStart(long parentRecurrentEventId, Date startDate)
-
getExceptionalOccurenceIds
public List<Long> getExceptionalOccurenceIds(long parentRecurrentEventId)
-
deleteExceptionalOccurences
public void deleteExceptionalOccurences(long parentRecurrentEventId)
-
-