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, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, counterLocalService, expandoValueLocalService, expandoValuePersistence, expandoValueService, groupFinder, groupLocalService, groupPersistence, groupService, mailService, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, persistedModelLocalServiceRegistry, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, resourceLocalService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, socialActivityService, 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. As of 6.2.0, replaced by 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()
|
CalEvent |
deleteEvent(CalEvent event)
|
CalEvent |
deleteEvent(long eventId)
|
void |
deleteEvents(long groupId)
|
File |
exportEvent(long userId,
long eventId)
|
File |
exportEvents(long userId,
List<CalEvent> events,
String fileName)
|
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. As of 6.2.0, replaced by 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, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchCalEvent, fetchCalEventByUuidAndGroupId, getActionableDynamicQuery, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getBeanIdentifier, getCalEvent, getCalEventByUuidAndGroupId, getCalEventFinder, getCalEventLocalService, getCalEventPersistence, getCalEvents, getCalEventsByUuidAndCompanyId, getCalEventsByUuidAndCompanyId, getCalEventsCount, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getCounterLocalService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getExportActionableDynamicQuery, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getMailService, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getModelClass, getModelClassName, getPersistedModel, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getResourceLocalService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getSocialActivityService, getSubscriptionLocalService, getSubscriptionPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, initActionableDynamicQuery, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setBeanIdentifier, setCalEventFinder, setCalEventLocalService, setCalEventPersistence, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setCounterLocalService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setMailService, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setResourceLocalService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setSocialActivityService, setSubscriptionLocalService, setSubscriptionPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateCalEvent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CalEventLocalServiceImpl
public CalEventLocalServiceImpl()
addEvent
@Indexable(type=REINDEX)
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
- Throws:
PortalException
addEvent
@Deprecated
@Indexable(type=REINDEX)
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
- Deprecated. As of 6.2.0, replaced by
addEvent(long, String,
String, String, int, int, int, int, int, int, int, boolean,
boolean, String, boolean, TZSRecurrence, int, int, int,
ServiceContext)
- Throws:
PortalException
addEventResources
public void addEventResources(CalEvent event,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
- Throws:
PortalException
addEventResources
public void addEventResources(CalEvent event,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
- Throws:
PortalException
addEventResources
public void addEventResources(long eventId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
- Throws:
PortalException
addEventResources
public void addEventResources(long eventId,
String[] groupPermissions,
String[] guestPermissions)
throws PortalException
- Throws:
PortalException
checkEvents
public void checkEvents()
deleteEvent
@Indexable(type=DELETE)
public CalEvent deleteEvent(CalEvent event)
throws PortalException
- Throws:
PortalException
deleteEvent
@Indexable(type=DELETE)
public CalEvent deleteEvent(long eventId)
throws PortalException
- Throws:
PortalException
deleteEvents
public void deleteEvents(long groupId)
throws PortalException
- Throws:
PortalException
exportEvent
public File exportEvent(long userId,
long eventId)
throws PortalException
- Throws:
PortalException
exportEvents
public File exportEvents(long userId,
List<CalEvent> events,
String fileName)
throws PortalException
- Throws:
PortalException
exportGroupEvents
public File exportGroupEvents(long userId,
long groupId,
String fileName)
throws PortalException
- Throws:
PortalException
getCompanyEvents
public List<CalEvent> getCompanyEvents(long companyId,
int start,
int end)
getCompanyEventsCount
public int getCompanyEventsCount(long companyId)
getEvent
public CalEvent getEvent(long eventId)
throws PortalException
- Throws:
PortalException
getEvents
public List<CalEvent> getEvents(long groupId,
Calendar cal)
getEvents
public List<CalEvent> getEvents(long groupId,
Calendar cal,
String type)
getEvents
public List<CalEvent> getEvents(long groupId,
Calendar cal,
String[] types)
getEvents
public List<CalEvent> getEvents(long groupId,
String type,
int start,
int end)
getEvents
public List<CalEvent> getEvents(long groupId,
String[] types,
int start,
int end)
getEventsCount
public int getEventsCount(long groupId,
String type)
getEventsCount
public int getEventsCount(long groupId,
String[] types)
getNoAssetEvents
public List<CalEvent> getNoAssetEvents()
getRepeatingEvents
public List<CalEvent> getRepeatingEvents(long groupId)
getRepeatingEvents
public List<CalEvent> getRepeatingEvents(long groupId,
Calendar cal,
String[] types)
hasEvents
public boolean hasEvents(long groupId,
Calendar cal)
hasEvents
public boolean hasEvents(long groupId,
Calendar cal,
String type)
hasEvents
public boolean hasEvents(long groupId,
Calendar cal,
String[] types)
importICal4j
public void importICal4j(long userId,
long groupId,
InputStream inputStream)
throws PortalException
- Throws:
PortalException
updateAsset
public void updateAsset(long userId,
CalEvent event,
long[] assetCategoryIds,
String[] assetTagNames,
long[] assetLinkEntryIds)
throws PortalException
- Throws:
PortalException
updateEvent
@Indexable(type=REINDEX)
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
- Throws:
PortalException
updateEvent
@Deprecated
@Indexable(type=REINDEX)
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
- Deprecated. As of 6.2.0, replaced by
updateEvent(long, long,
String, String, String, int, int, int, int, int, int, int,
boolean, boolean, String, boolean, TZSRecurrence, int, int,
int, ServiceContext)
- Throws:
PortalException
exportICal4j
protected File exportICal4j(net.fortuna.ical4j.model.Calendar cal,
String fileName)
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
- Throws:
PortalException
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
- Throws:
PortalException
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