com.liferay.portlet.calendar.service.impl
Class CalEventLocalServiceImpl
java.lang.Object
com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl
com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.calendar.service.CalEventLocalService
- public class CalEventLocalServiceImpl
- extends CalEventLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan, Bruno Farache
Method Summary |
com.liferay.portlet.calendar.model.CalEvent |
addEvent(long userId,
long plid,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
com.liferay.portlet.calendar.model.CalEvent |
addEvent(long userId,
long plid,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
com.liferay.portlet.calendar.model.CalEvent |
addEvent(long userId,
long plid,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addEventResources(com.liferay.portlet.calendar.model.CalEvent event,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addEventResources(com.liferay.portlet.calendar.model.CalEvent event,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addEventResources(long eventId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addEventResources(long eventId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
checkEvents()
|
void |
deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
|
void |
deleteEvent(long eventId)
|
void |
deleteEvents(long groupId)
|
java.io.File |
exportEvent(long userId,
long eventId)
|
java.io.File |
exportGroupEvents(long userId,
long plid,
java.lang.String fileName)
|
protected java.io.File |
exportICal4j(net.fortuna.ical4j.model.Calendar cal,
java.lang.String fileName)
|
com.liferay.portlet.calendar.model.CalEvent |
getEvent(long eventId)
|
java.util.List |
getEvents(long groupId,
java.util.Calendar cal)
|
java.util.List |
getEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
|
java.util.List |
getEvents(long groupId,
java.lang.String type,
int begin,
int end)
|
int |
getEventsCount(long groupId,
java.lang.String type)
|
protected java.util.Calendar |
getRecurrenceCal(java.util.Calendar cal,
java.util.Calendar tzICal,
com.liferay.portlet.calendar.model.CalEvent event)
|
java.util.List |
getRepeatingEvents(long groupId)
|
boolean |
hasEvents(long groupId,
java.util.Calendar cal)
|
boolean |
hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
|
void |
importICal4j(long userId,
long plid,
java.io.File file)
|
protected void |
importICal4j(long userId,
long plid,
net.fortuna.ical4j.model.component.VEvent event,
java.util.TimeZone timeZone)
|
protected void |
remindUser(com.liferay.portlet.calendar.model.CalEvent event,
com.liferay.portal.model.User user)
|
protected int |
toCalendarWeekDay(net.fortuna.ical4j.model.WeekDay weekDay)
|
protected net.fortuna.ical4j.model.Calendar |
toICalCalendar(long userId,
java.util.List events)
|
protected net.fortuna.ical4j.model.Recur |
toICalRecurrence(com.liferay.portal.kernel.cal.Recurrence recurrence)
|
protected net.fortuna.ical4j.model.component.VEvent |
toICalVEvent(com.liferay.portlet.calendar.model.CalEvent event,
java.util.TimeZone timeZone)
|
protected net.fortuna.ical4j.model.WeekDay |
toICalWeekDay(int dayOfWeek)
|
protected com.liferay.portal.kernel.cal.Recurrence |
toRecurrence(net.fortuna.ical4j.model.Recur recur,
java.util.TimeZone timeZone,
java.util.Calendar startDate)
|
protected java.util.TimeZone |
toTimeZone(long userId,
net.fortuna.ical4j.model.component.VTimeZone vTimeZone)
|
com.liferay.portlet.calendar.model.CalEvent |
updateEvent(long userId,
long eventId,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder)
|
protected void |
validate(java.lang.String title,
int startDateMonth,
int startDateDay,
int startDateYear,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalEventLocalServiceImpl
public CalEventLocalServiceImpl()
addEvent
public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
long plid,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addEvent
public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
long plid,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addEvent
public com.liferay.portlet.calendar.model.CalEvent addEvent(long userId,
long plid,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder,
java.lang.Boolean addCommunityPermissions,
java.lang.Boolean addGuestPermissions,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addEventResources
public void addEventResources(long eventId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addEventResources
public void addEventResources(com.liferay.portlet.calendar.model.CalEvent event,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addEventResources
public void addEventResources(long eventId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addEventResources
public void addEventResources(com.liferay.portlet.calendar.model.CalEvent event,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkEvents
public void checkEvents()
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteEvent
public void deleteEvent(long eventId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteEvent
public void deleteEvent(com.liferay.portlet.calendar.model.CalEvent event)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteEvents
public void deleteEvents(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportEvent
public java.io.File exportEvent(long userId,
long eventId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportGroupEvents
public java.io.File exportGroupEvents(long userId,
long plid,
java.lang.String fileName)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getEvent
public com.liferay.portlet.calendar.model.CalEvent getEvent(long eventId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getEvents
public java.util.List getEvents(long groupId,
java.lang.String type,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getEvents
public java.util.List getEvents(long groupId,
java.util.Calendar cal)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getEvents
public java.util.List getEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getEventsCount
public int getEventsCount(long groupId,
java.lang.String type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRepeatingEvents
public java.util.List getRepeatingEvents(long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasEvents
public boolean hasEvents(long groupId,
java.util.Calendar cal)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasEvents
public boolean hasEvents(long groupId,
java.util.Calendar cal,
java.lang.String type)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
importICal4j
public void importICal4j(long userId,
long plid,
java.io.File file)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateEvent
public com.liferay.portlet.calendar.model.CalEvent updateEvent(long userId,
long eventId,
java.lang.String title,
java.lang.String description,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
java.lang.String type,
boolean repeating,
com.liferay.portal.kernel.cal.Recurrence recurrence,
java.lang.String remindBy,
int firstReminder,
int secondReminder)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportICal4j
protected java.io.File exportICal4j(net.fortuna.ical4j.model.Calendar cal,
java.lang.String fileName)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getRecurrenceCal
protected java.util.Calendar getRecurrenceCal(java.util.Calendar cal,
java.util.Calendar tzICal,
com.liferay.portlet.calendar.model.CalEvent event)
importICal4j
protected void importICal4j(long userId,
long plid,
net.fortuna.ical4j.model.component.VEvent event,
java.util.TimeZone timeZone)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
remindUser
protected void remindUser(com.liferay.portlet.calendar.model.CalEvent event,
com.liferay.portal.model.User user)
toCalendarWeekDay
protected int toCalendarWeekDay(net.fortuna.ical4j.model.WeekDay weekDay)
toICalCalendar
protected net.fortuna.ical4j.model.Calendar toICalCalendar(long userId,
java.util.List events)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
toICalRecurrence
protected net.fortuna.ical4j.model.Recur toICalRecurrence(com.liferay.portal.kernel.cal.Recurrence recurrence)
toICalVEvent
protected net.fortuna.ical4j.model.component.VEvent toICalVEvent(com.liferay.portlet.calendar.model.CalEvent event,
java.util.TimeZone timeZone)
toICalWeekDay
protected net.fortuna.ical4j.model.WeekDay toICalWeekDay(int dayOfWeek)
toTimeZone
protected java.util.TimeZone toTimeZone(long userId,
net.fortuna.ical4j.model.component.VTimeZone vTimeZone)
throws com.liferay.portal.SystemException,
com.liferay.portal.NoSuchUserException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.NoSuchUserException
toRecurrence
protected com.liferay.portal.kernel.cal.Recurrence toRecurrence(net.fortuna.ical4j.model.Recur recur,
java.util.TimeZone timeZone,
java.util.Calendar startDate)
validate
protected void validate(java.lang.String title,
int startDateMonth,
int startDateDay,
int startDateYear,
int endDateMonth,
int endDateDay,
int endDateYear,
int durationHour,
int durationMinute,
boolean allDay)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException