Liferay 6.0.5

com.liferay.portlet.calendar.service.impl
Class CalEventLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl
      extended by com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl
All Implemented Interfaces:
CalEventLocalService

public class CalEventLocalServiceImpl
extends CalEventLocalServiceBaseImpl


Field Summary
 
Fields inherited from class com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, calEventFinder, calEventLocalService, calEventPersistence, calEventService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, mailService, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
CalEventLocalServiceImpl()
           
 
Method Summary
 CalEvent addEvent(long userId, String title, 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, String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext)
           
 void addEventResources(CalEvent event, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEventResources(CalEvent event, String[] communityPermissions, String[] guestPermissions)
           
 void addEventResources(long eventId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addEventResources(long eventId, String[] communityPermissions, String[] guestPermissions)
           
 void checkEvents()
           
 void deleteEvent(CalEvent event)
           
 void deleteEvent(long eventId)
           
 void deleteEvents(long groupId)
           
 File exportEvent(long userId, long eventId)
           
 File exportGroupEvents(long userId, long groupId, String fileName)
           
protected  File exportICal4j(net.fortuna.ical4j.model.Calendar cal, String fileName)
           
 List<CalEvent> getCompanyEvents(long companyId, int start, int end)
           
 int getCompanyEventsCount(long companyId)
           
 CalEvent getEvent(long eventId)
           
 List<CalEvent> getEvents(long groupId, Calendar cal)
           
 List<CalEvent> getEvents(long groupId, Calendar cal, String type)
           
 List<CalEvent> getEvents(long groupId, String type, int start, int end)
           
 int getEventsCount(long groupId, String type)
           
 List<CalEvent> getNoAssetEvents()
           
protected  Calendar getRecurrenceCal(Calendar cal, Calendar tzICal, CalEvent event)
           
 List<CalEvent> getRepeatingEvents(long groupId)
           
 boolean hasEvents(long groupId, Calendar cal)
           
 boolean hasEvents(long groupId, Calendar cal, String type)
           
 void importICal4j(long userId, long groupId, File file)
           
protected  void importICal4j(long userId, long groupId, net.fortuna.ical4j.model.component.VEvent event)
           
protected  boolean isICal4jDateOnly(net.fortuna.ical4j.model.property.DateProperty dateProperty)
           
protected  void remindUser(CalEvent event, User user, Calendar startDate)
           
protected  void remindUser(CalEvent event, User user, Calendar startDate, Calendar now)
           
protected  Calendar toCalendar(net.fortuna.ical4j.model.property.DateProperty date, TimeZone timeZone, boolean timeZoneSensitive)
           
protected  int toCalendarWeekDay(net.fortuna.ical4j.model.WeekDay weekDay)
           
protected  net.fortuna.ical4j.model.Calendar toICalCalendar(long userId, List<CalEvent> events)
           
protected  net.fortuna.ical4j.model.Recur toICalRecurrence(TZSRecurrence recurrence)
           
protected  net.fortuna.ical4j.model.component.VEvent toICalVEvent(CalEvent event, TimeZone timeZone)
           
protected  net.fortuna.ical4j.model.WeekDay toICalWeekDay(int dayOfWeek)
           
protected  TZSRecurrence toRecurrence(net.fortuna.ical4j.model.property.RRule rRule, TimeZone timeZone, Calendar startDate)
           
 void updateAsset(long userId, CalEvent event, long[] assetCategoryIds, String[] assetTagNames)
           
 CalEvent updateEvent(long userId, long eventId, String title, 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, String type, boolean repeating, TZSRecurrence recurrence, int remindBy, int firstReminder, int secondReminder, ServiceContext serviceContext)
           
protected  void validate(String title, int startDateMonth, int startDateDay, int startDateYear, int endDateMonth, int endDateDay, int endDateYear, int durationHour, int durationMinute, boolean allDay, boolean repeating, TZSRecurrence recurrence)
           
 
Methods inherited from class com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl
addCalEvent, createCalEvent, deleteCalEvent, deleteCalEvent, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getCalEvent, getCalEventByUuidAndGroupId, getCalEventFinder, getCalEventLocalService, getCalEventPersistence, getCalEvents, getCalEventsCount, getCalEventService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMailService, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setCalEventFinder, setCalEventLocalService, setCalEventPersistence, setCalEventService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMailService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateCalEvent, updateCalEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalEventLocalServiceImpl

public CalEventLocalServiceImpl()
Method Detail

addEvent

public CalEvent addEvent(long userId,
                         String title,
                         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,
                         String type,
                         boolean repeating,
                         TZSRecurrence recurrence,
                         int remindBy,
                         int firstReminder,
                         int secondReminder,
                         ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(CalEvent event,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(CalEvent event,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(long eventId,
                              boolean addCommunityPermissions,
                              boolean addGuestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

addEventResources

public void addEventResources(long eventId,
                              String[] communityPermissions,
                              String[] guestPermissions)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

checkEvents

public void checkEvents()
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteEvent

public void deleteEvent(CalEvent event)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteEvent

public void deleteEvent(long eventId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

deleteEvents

public void deleteEvents(long groupId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

exportEvent

public File exportEvent(long userId,
                        long eventId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

exportGroupEvents

public File exportGroupEvents(long userId,
                              long groupId,
                              String fileName)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

getCompanyEvents

public List<CalEvent> getCompanyEvents(long companyId,
                                       int start,
                                       int end)
                                throws SystemException
Throws:
SystemException

getCompanyEventsCount

public int getCompanyEventsCount(long companyId)
                          throws SystemException
Throws:
SystemException

getEvent

public CalEvent getEvent(long eventId)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

getEvents

public List<CalEvent> getEvents(long groupId,
                                Calendar cal)
                         throws SystemException
Throws:
SystemException

getEvents

public List<CalEvent> getEvents(long groupId,
                                Calendar cal,
                                String type)
                         throws SystemException
Throws:
SystemException

getEvents

public List<CalEvent> getEvents(long groupId,
                                String type,
                                int start,
                                int end)
                         throws SystemException
Throws:
SystemException

getEventsCount

public int getEventsCount(long groupId,
                          String type)
                   throws SystemException
Throws:
SystemException

getNoAssetEvents

public List<CalEvent> getNoAssetEvents()
                                throws SystemException
Throws:
SystemException

getRepeatingEvents

public List<CalEvent> getRepeatingEvents(long groupId)
                                  throws SystemException
Throws:
SystemException

hasEvents

public boolean hasEvents(long groupId,
                         Calendar cal)
                  throws SystemException
Throws:
SystemException

hasEvents

public boolean hasEvents(long groupId,
                         Calendar cal,
                         String type)
                  throws SystemException
Throws:
SystemException

importICal4j

public void importICal4j(long userId,
                         long groupId,
                         File file)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateAsset

public void updateAsset(long userId,
                        CalEvent event,
                        long[] assetCategoryIds,
                        String[] assetTagNames)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateEvent

public CalEvent updateEvent(long userId,
                            long eventId,
                            String title,
                            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,
                            String type,
                            boolean repeating,
                            TZSRecurrence recurrence,
                            int remindBy,
                            int firstReminder,
                            int secondReminder,
                            ServiceContext serviceContext)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

exportICal4j

protected File exportICal4j(net.fortuna.ical4j.model.Calendar cal,
                            String fileName)
                     throws SystemException
Throws:
SystemException

getRecurrenceCal

protected Calendar getRecurrenceCal(Calendar cal,
                                    Calendar tzICal,
                                    CalEvent event)

importICal4j

protected void importICal4j(long userId,
                            long groupId,
                            net.fortuna.ical4j.model.component.VEvent event)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

isICal4jDateOnly

protected boolean isICal4jDateOnly(net.fortuna.ical4j.model.property.DateProperty dateProperty)

remindUser

protected void remindUser(CalEvent event,
                          User user,
                          Calendar startDate)

remindUser

protected void remindUser(CalEvent event,
                          User user,
                          Calendar startDate,
                          Calendar now)

toCalendar

protected Calendar toCalendar(net.fortuna.ical4j.model.property.DateProperty date,
                              TimeZone timeZone,
                              boolean timeZoneSensitive)

toCalendarWeekDay

protected int toCalendarWeekDay(net.fortuna.ical4j.model.WeekDay weekDay)

toICalCalendar

protected net.fortuna.ical4j.model.Calendar toICalCalendar(long userId,
                                                           List<CalEvent> events)
                                                    throws PortalException,
                                                           SystemException
Throws:
PortalException
SystemException

toICalRecurrence

protected net.fortuna.ical4j.model.Recur toICalRecurrence(TZSRecurrence recurrence)

toICalVEvent

protected net.fortuna.ical4j.model.component.VEvent toICalVEvent(CalEvent event,
                                                                 TimeZone timeZone)

toICalWeekDay

protected net.fortuna.ical4j.model.WeekDay toICalWeekDay(int dayOfWeek)

toRecurrence

protected TZSRecurrence toRecurrence(net.fortuna.ical4j.model.property.RRule rRule,
                                     TimeZone timeZone,
                                     Calendar startDate)

validate

protected void validate(String title,
                        int startDateMonth,
                        int startDateDay,
                        int startDateYear,
                        int endDateMonth,
                        int endDateDay,
                        int endDateYear,
                        int durationHour,
                        int durationMinute,
                        boolean allDay,
                        boolean repeating,
                        TZSRecurrence recurrence)
                 throws PortalException
Throws:
PortalException

Liferay 6.0.5