Class EventDAO

  • All Implemented Interfaces:
    org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,​Long>

    public class EventDAO
    extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,​Long>
    • Method Detail

      • delete

        public void delete​(EventEntity entity)
        Specified by:
        delete in interface org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,​Long>
        Overrides:
        delete in class org.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:
        create in interface org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,​Long>
        Overrides:
        create in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,​Long>
      • update

        public EventEntity update​(EventEntity entity)
        Specified by:
        update in interface org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,​Long>
        Overrides:
        update in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,​Long>
      • deleteAll

        public void deleteAll()
        Specified by:
        deleteAll in interface org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,​Long>
        Overrides:
        deleteAll in class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<EventEntity,​Long>
      • updateAll

        public void updateAll​(List<EventEntity> entities)
        Specified by:
        updateAll in interface org.exoplatform.commons.api.persistence.GenericDAO<EventEntity,​Long>
        Overrides:
        updateAll in class org.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)
      • countEventDatePolls

        public Long countEventDatePolls​(List<Long> attendeeIds,
                                        Date fromDate)
      • getEventDatePollIdsByOwnerIds

        public List<Long> getEventDatePollIdsByOwnerIds​(Long userIdentityId,
                                                        List<Long> ownerIds,
                                                        List<Long> attendeeIds,
                                                        Date fromDate,
                                                        int offset,
                                                        int limit)
      • 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)