public class AgendaCalendarServiceImpl extends Object implements org.exoplatform.agenda.service.AgendaCalendarService
| Constructor and Description |
|---|
AgendaCalendarServiceImpl(AgendaCalendarStorage agendaCalendarStorage,
org.exoplatform.social.core.manager.IdentityManager identityManager,
org.exoplatform.social.core.space.spi.SpaceService spaceService,
org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
int |
countCalendars(String username) |
org.exoplatform.agenda.model.Calendar |
createCalendar(org.exoplatform.agenda.model.Calendar calendar) |
org.exoplatform.agenda.model.Calendar |
createCalendar(org.exoplatform.agenda.model.Calendar calendar,
String username) |
org.exoplatform.agenda.model.Calendar |
createCalendarInstance(long ownerId) |
org.exoplatform.agenda.model.Calendar |
createCalendarInstance(long ownerId,
String username) |
void |
deleteCalendarById(long calendarId) |
void |
deleteCalendarById(long calendarId,
String username) |
org.exoplatform.agenda.model.Calendar |
getCalendarById(long calendarId) |
org.exoplatform.agenda.model.Calendar |
getCalendarById(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.Calendar |
getOrCreateCalendarByOwnerId(long ownerId) |
void |
updateCalendar(org.exoplatform.agenda.model.Calendar calendar) |
void |
updateCalendar(org.exoplatform.agenda.model.Calendar calendar,
String username) |
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)
public List<org.exoplatform.agenda.model.Calendar> getCalendars(int offset, int limit, String username) throws Exception
getCalendars in interface org.exoplatform.agenda.service.AgendaCalendarServiceExceptionpublic List<org.exoplatform.agenda.model.Calendar> getCalendarsByOwnerIds(List<Long> ownerIds, String username) throws IllegalAccessException
getCalendarsByOwnerIds in interface org.exoplatform.agenda.service.AgendaCalendarServiceIllegalAccessExceptionpublic int countCalendars(String username) throws Exception
countCalendars in interface org.exoplatform.agenda.service.AgendaCalendarServiceExceptionpublic org.exoplatform.agenda.model.Calendar getCalendarById(long calendarId,
String username)
throws IllegalAccessException
getCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarServiceIllegalAccessExceptionpublic org.exoplatform.agenda.model.Calendar getCalendarById(long calendarId)
getCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarServicepublic org.exoplatform.agenda.model.Calendar getOrCreateCalendarByOwnerId(long ownerId)
getOrCreateCalendarByOwnerId in interface org.exoplatform.agenda.service.AgendaCalendarServicepublic org.exoplatform.agenda.model.Calendar createCalendarInstance(long ownerId)
createCalendarInstance in interface org.exoplatform.agenda.service.AgendaCalendarServicepublic org.exoplatform.agenda.model.Calendar createCalendarInstance(long ownerId,
String username)
throws IllegalAccessException
createCalendarInstance in interface org.exoplatform.agenda.service.AgendaCalendarServiceIllegalAccessExceptionpublic org.exoplatform.agenda.model.Calendar createCalendar(org.exoplatform.agenda.model.Calendar calendar,
String username)
throws IllegalAccessException
createCalendar in interface org.exoplatform.agenda.service.AgendaCalendarServiceIllegalAccessExceptionpublic org.exoplatform.agenda.model.Calendar createCalendar(org.exoplatform.agenda.model.Calendar calendar)
createCalendar in interface org.exoplatform.agenda.service.AgendaCalendarServicepublic void updateCalendar(org.exoplatform.agenda.model.Calendar calendar,
String username)
throws IllegalAccessException,
org.exoplatform.commons.exception.ObjectNotFoundException
updateCalendar in interface org.exoplatform.agenda.service.AgendaCalendarServiceIllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionpublic void updateCalendar(org.exoplatform.agenda.model.Calendar calendar)
throws org.exoplatform.commons.exception.ObjectNotFoundException
updateCalendar in interface org.exoplatform.agenda.service.AgendaCalendarServiceorg.exoplatform.commons.exception.ObjectNotFoundExceptionpublic void deleteCalendarById(long calendarId,
String username)
throws IllegalAccessException,
org.exoplatform.commons.exception.ObjectNotFoundException
deleteCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarServiceIllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionpublic void deleteCalendarById(long calendarId)
throws org.exoplatform.commons.exception.ObjectNotFoundException
deleteCalendarById in interface org.exoplatform.agenda.service.AgendaCalendarServiceorg.exoplatform.commons.exception.ObjectNotFoundExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.