Class AgendaCalendarServiceImpl

  • All Implemented Interfaces:
    org.exoplatform.agenda.service.AgendaCalendarService

    public class AgendaCalendarServiceImpl
    extends Object
    implements org.exoplatform.agenda.service.AgendaCalendarService
    • Constructor Detail

      • AgendaCalendarServiceImpl

        public AgendaCalendarServiceImpl​(AgendaCalendarStorage agendaCalendarStorage,
                                         org.exoplatform.social.core.manager.IdentityManager identityManager,
                                         org.exoplatform.social.core.space.spi.SpaceService spaceService,
                                         org.exoplatform.container.xml.InitParams initParams)
    • Method Detail

      • getCalendars

        public List<org.exoplatform.agenda.model.Calendar> getCalendars​(int offset,
                                                                        int limit,
                                                                        String username)
                                                                 throws Exception
        Specified by:
        getCalendars in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        Exception
      • countCalendars

        public int countCalendars​(String username)
                           throws Exception
        Specified by:
        countCalendars in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        Exception
      • getCalendarById

        public org.exoplatform.agenda.model.Calendar getCalendarById​(long calendarId,
                                                                     String username)
                                                              throws IllegalAccessException
        Specified by:
        getCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        IllegalAccessException
      • getCalendarById

        public org.exoplatform.agenda.model.Calendar getCalendarById​(long calendarId)
        Specified by:
        getCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarService
      • getOrCreateCalendarByOwnerId

        public org.exoplatform.agenda.model.Calendar getOrCreateCalendarByOwnerId​(long ownerId)
        Specified by:
        getOrCreateCalendarByOwnerId in interface org.exoplatform.agenda.service.AgendaCalendarService
      • createCalendarInstance

        public org.exoplatform.agenda.model.Calendar createCalendarInstance​(long ownerId)
        Specified by:
        createCalendarInstance in interface org.exoplatform.agenda.service.AgendaCalendarService
      • createCalendarInstance

        public org.exoplatform.agenda.model.Calendar createCalendarInstance​(long ownerId,
                                                                            long userIdentityId)
                                                                     throws IllegalAccessException
        Specified by:
        createCalendarInstance in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        IllegalAccessException
      • createCalendar

        public org.exoplatform.agenda.model.Calendar createCalendar​(org.exoplatform.agenda.model.Calendar calendar,
                                                                    String username)
                                                             throws IllegalAccessException
        Specified by:
        createCalendar in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        IllegalAccessException
      • createCalendar

        public org.exoplatform.agenda.model.Calendar createCalendar​(org.exoplatform.agenda.model.Calendar calendar)
        Specified by:
        createCalendar in interface org.exoplatform.agenda.service.AgendaCalendarService
      • updateCalendar

        public void updateCalendar​(org.exoplatform.agenda.model.Calendar calendar,
                                   String username)
                            throws IllegalAccessException,
                                   org.exoplatform.commons.exception.ObjectNotFoundException
        Specified by:
        updateCalendar in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        IllegalAccessException
        org.exoplatform.commons.exception.ObjectNotFoundException
      • updateCalendar

        public void updateCalendar​(org.exoplatform.agenda.model.Calendar calendar)
                            throws org.exoplatform.commons.exception.ObjectNotFoundException
        Specified by:
        updateCalendar in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        org.exoplatform.commons.exception.ObjectNotFoundException
      • deleteCalendarById

        public void deleteCalendarById​(long calendarId,
                                       String username)
                                throws IllegalAccessException,
                                       org.exoplatform.commons.exception.ObjectNotFoundException
        Specified by:
        deleteCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        IllegalAccessException
        org.exoplatform.commons.exception.ObjectNotFoundException
      • deleteCalendarById

        public void deleteCalendarById​(long calendarId)
                                throws org.exoplatform.commons.exception.ObjectNotFoundException
        Specified by:
        deleteCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarService
        Throws:
        org.exoplatform.commons.exception.ObjectNotFoundException