com.liferay.portlet.calendar.service.impl
Class CalEventLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl
com.liferay.portlet.calendar.service.impl.CalEventLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseLocalService, PersistedModelLocalService, CalEventLocalService
public class CalEventLocalServiceImpl
- extends CalEventLocalServiceBaseImpl
Fields inherited from class com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl |
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, calEventFinder, calEventLocalService, calEventPersistence, calEventService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, mailService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, subscriptionLocalService, subscriptionPersistence, userFinder, userLocalService, userPersistence, userService |
Method Summary |
CalEvent |
addEvent(long userId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
CalEvent |
addEvent(long userId,
String title,
String description,
String location,
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)
Deprecated. addEvent(long, String, String, String, int, int, int,
int, int, int, int, boolean, boolean, String, boolean,
TZSRecurrence, int, int, int, ServiceContext) |
void |
addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addEventResources(CalEvent event,
String[] groupPermissions,
String[] guestPermissions)
|
void |
addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addEventResources(long eventId,
String[] groupPermissions,
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)
|
protected Date |
getEndDate(Recurrence recurrence)
|
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,
Calendar cal,
String[] types)
|
List<CalEvent> |
getEvents(long groupId,
String[] types,
int start,
int end)
|
List<CalEvent> |
getEvents(long groupId,
String type,
int start,
int end)
|
int |
getEventsCount(long groupId,
String type)
|
int |
getEventsCount(long groupId,
String[] types)
|
List<CalEvent> |
getNoAssetEvents()
|
protected Calendar |
getRecurrenceCal(Calendar cal,
Calendar tzICal,
CalEvent event)
|
List<CalEvent> |
getRepeatingEvents(long groupId)
|
List<CalEvent> |
getRepeatingEvents(long groupId,
Calendar cal,
String[] types)
|
boolean |
hasEvents(long groupId,
Calendar cal)
|
boolean |
hasEvents(long groupId,
Calendar cal,
String type)
|
boolean |
hasEvents(long groupId,
Calendar cal,
String[] types)
|
void |
importICal4j(long userId,
long groupId,
InputStream inputStream)
|
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 startCalendar,
Calendar nowCalendar)
|
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,
Calendar startDate)
|
void |
updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
|
CalEvent |
updateEvent(long userId,
long eventId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
int durationHour,
int durationMinute,
boolean allDay,
boolean timeZoneSensitive,
String type,
boolean repeating,
TZSRecurrence recurrence,
int remindBy,
int firstReminder,
int secondReminder,
ServiceContext serviceContext)
|
CalEvent |
updateEvent(long userId,
long eventId,
String title,
String description,
String location,
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)
Deprecated. updateEvent(long, long, String, String, String, int,
int, int, int, int, int, int, boolean, boolean, String,
boolean, TZSRecurrence, int, int, int, ServiceContext) |
protected void |
validate(String title,
int startDateMonth,
int startDateDay,
int startDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean repeating,
TZSRecurrence recurrence)
|
Methods inherited from class com.liferay.portlet.calendar.service.base.CalEventLocalServiceBaseImpl |
addCalEvent, afterPropertiesSet, createCalEvent, deleteCalEvent, deleteCalEvent, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchCalEvent, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCalEvent, getCalEventByUuidAndGroupId, getCalEventFinder, getCalEventLocalService, getCalEventPersistence, getCalEvents, getCalEventsCount, getCalEventService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMailService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCalEventFinder, setCalEventLocalService, setCalEventPersistence, setCalEventService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMailService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateCalEvent, updateCalEvent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalEventLocalServiceImpl
public CalEventLocalServiceImpl()
addEvent
public CalEvent addEvent(long userId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
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
addEvent
public CalEvent addEvent(long userId,
String title,
String description,
String location,
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
- Deprecated.
addEvent(long, String, String, String, int, int, int,
int, int, int, int, boolean, boolean, String, boolean,
TZSRecurrence, int, int, int, ServiceContext)
- Throws:
PortalException
SystemException
addEventResources
public void addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addEventResources
public void addEventResources(CalEvent event,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addEventResources
public void addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addEventResources
public void addEventResources(long eventId,
String[] groupPermissions,
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,
Calendar cal,
String[] types)
throws SystemException
- Throws:
SystemException
getEvents
public List<CalEvent> getEvents(long groupId,
String type,
int start,
int end)
throws SystemException
- Throws:
SystemException
getEvents
public List<CalEvent> getEvents(long groupId,
String[] types,
int start,
int end)
throws SystemException
- Throws:
SystemException
getEventsCount
public int getEventsCount(long groupId,
String type)
throws SystemException
- Throws:
SystemException
getEventsCount
public int getEventsCount(long groupId,
String[] types)
throws SystemException
- Throws:
SystemException
getNoAssetEvents
public List<CalEvent> getNoAssetEvents()
throws SystemException
- Throws:
SystemException
getRepeatingEvents
public List<CalEvent> getRepeatingEvents(long groupId)
throws SystemException
- Throws:
SystemException
getRepeatingEvents
public List<CalEvent> getRepeatingEvents(long groupId,
Calendar cal,
String[] types)
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
hasEvents
public boolean hasEvents(long groupId,
Calendar cal,
String[] types)
throws SystemException
- Throws:
SystemException
importICal4j
public void importICal4j(long userId,
long groupId,
InputStream inputStream)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateAsset
public void updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateEvent
public CalEvent updateEvent(long userId,
long eventId,
String title,
String description,
String location,
int startDateMonth,
int startDateDay,
int startDateYear,
int startDateHour,
int startDateMinute,
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
updateEvent
public CalEvent updateEvent(long userId,
long eventId,
String title,
String description,
String location,
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
- Deprecated.
updateEvent(long, long, String, String, String, int,
int, int, int, int, int, int, boolean, boolean, String,
boolean, TZSRecurrence, int, int, int, ServiceContext)
- Throws:
PortalException
SystemException
exportICal4j
protected File exportICal4j(net.fortuna.ical4j.model.Calendar cal,
String fileName)
throws SystemException
- Throws:
SystemException
getEndDate
protected Date getEndDate(Recurrence recurrence)
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 startCalendar,
Calendar nowCalendar)
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,
Calendar startDate)
validate
protected void validate(String title,
int startDateMonth,
int startDateDay,
int startDateYear,
int durationHour,
int durationMinute,
boolean allDay,
boolean repeating,
TZSRecurrence recurrence)
throws PortalException
- Throws:
PortalException