Package org.exoplatform.agenda.service
Class AgendaCalendarServiceImpl
java.lang.Object
org.exoplatform.agenda.service.AgendaCalendarServiceImpl
- All Implemented Interfaces:
org.exoplatform.agenda.service.AgendaCalendarService
public class AgendaCalendarServiceImpl
extends Object
implements org.exoplatform.agenda.service.AgendaCalendarService
-
Constructor Summary
ConstructorsConstructorDescriptionAgendaCalendarServiceImpl(AgendaCalendarStorage agendaCalendarStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionintcountCalendars(String username) org.exoplatform.agenda.model.CalendarcreateCalendar(org.exoplatform.agenda.model.Calendar calendar) org.exoplatform.agenda.model.CalendarcreateCalendar(org.exoplatform.agenda.model.Calendar calendar, String username) org.exoplatform.agenda.model.CalendarcreateCalendarInstance(long ownerId) org.exoplatform.agenda.model.CalendarcreateCalendarInstance(long ownerId, long userIdentityId) voiddeleteCalendarById(long calendarId) voiddeleteCalendarById(long calendarId, String username) org.exoplatform.agenda.model.CalendargetCalendarById(long calendarId) org.exoplatform.agenda.model.CalendargetCalendarById(long calendarId, String username) List<org.exoplatform.agenda.model.Calendar>getCalendars(int offset, int limit, String username) List<org.exoplatform.agenda.model.Calendar>getCalendarsByOwnerIds(List<Long> ownerIds, String username) org.exoplatform.agenda.model.CalendargetOrCreateCalendarByOwnerId(long ownerId) voidupdateCalendar(org.exoplatform.agenda.model.Calendar calendar) voidupdateCalendar(org.exoplatform.agenda.model.Calendar calendar, String username)
-
Constructor Details
-
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 Details
-
getCalendars
public List<org.exoplatform.agenda.model.Calendar> getCalendars(int offset, int limit, String username) throws Exception - Specified by:
getCalendarsin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
Exception
-
getCalendarsByOwnerIds
public List<org.exoplatform.agenda.model.Calendar> getCalendarsByOwnerIds(List<Long> ownerIds, String username) throws IllegalAccessException - Specified by:
getCalendarsByOwnerIdsin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
IllegalAccessException
-
countCalendars
- Specified by:
countCalendarsin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
Exception
-
getCalendarById
public org.exoplatform.agenda.model.Calendar getCalendarById(long calendarId, String username) throws IllegalAccessException - Specified by:
getCalendarByIdin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
IllegalAccessException
-
getCalendarById
public org.exoplatform.agenda.model.Calendar getCalendarById(long calendarId) - Specified by:
getCalendarByIdin interfaceorg.exoplatform.agenda.service.AgendaCalendarService
-
getOrCreateCalendarByOwnerId
public org.exoplatform.agenda.model.Calendar getOrCreateCalendarByOwnerId(long ownerId) - Specified by:
getOrCreateCalendarByOwnerIdin interfaceorg.exoplatform.agenda.service.AgendaCalendarService
-
createCalendarInstance
public org.exoplatform.agenda.model.Calendar createCalendarInstance(long ownerId) - Specified by:
createCalendarInstancein interfaceorg.exoplatform.agenda.service.AgendaCalendarService
-
createCalendarInstance
public org.exoplatform.agenda.model.Calendar createCalendarInstance(long ownerId, long userIdentityId) throws IllegalAccessException - Specified by:
createCalendarInstancein interfaceorg.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:
createCalendarin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
IllegalAccessException
-
createCalendar
public org.exoplatform.agenda.model.Calendar createCalendar(org.exoplatform.agenda.model.Calendar calendar) - Specified by:
createCalendarin interfaceorg.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:
updateCalendarin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
updateCalendar
public void updateCalendar(org.exoplatform.agenda.model.Calendar calendar) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
updateCalendarin interfaceorg.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:
deleteCalendarByIdin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
deleteCalendarById
public void deleteCalendarById(long calendarId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
deleteCalendarByIdin interfaceorg.exoplatform.agenda.service.AgendaCalendarService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-