public class CalendarSpaceActivityPublisher
extends org.exoplatform.calendar.service.impl.CalendarEventListener
| Constructor and Description |
|---|
CalendarSpaceActivityPublisher() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildComment(org.exoplatform.social.core.activity.model.ExoSocialActivity comment,
org.exoplatform.calendar.service.CalendarEvent repeatEvent) |
String |
buildRepeatSummary(org.exoplatform.calendar.service.CalendarEvent repeatEvent)
Build the repeating summary, i.e: daily every 2 days, until 02/03/2011.
|
static String |
buildRepeatSummary(org.exoplatform.calendar.service.CalendarEvent repeatEvent,
org.exoplatform.calendar.service.CalendarService calendarService) |
static int |
convertToDayOfWeek(String day) |
void |
deletePublicEvent(org.exoplatform.calendar.service.CalendarEvent event,
String calendarId)
remove the event activity
|
static Calendar |
getCalendarInstanceBySetting(org.exoplatform.calendar.service.CalendarSetting calendarSetting)
get calendar by user setting (timezone, first day of week)
|
static String |
getDateString(Locale locale,
Calendar calendar,
TimeZone tz) |
static String |
getDateTimeString(Locale locale,
long time,
org.exoplatform.calendar.service.CalendarEvent event,
TimeZone tz) |
static String |
getTimeString(Locale locale,
Calendar calendar,
TimeZone tz) |
static String |
getUICalendarLabel(String label)
get label from resource bundle for CalendarUIActivity
|
static String |
getUICalendarLabel(String label,
Locale locale) |
static TimeZone |
getUserTimeZone() |
void |
removeOneOccurrence(org.exoplatform.calendar.service.CalendarEvent originEvent,
org.exoplatform.calendar.service.CalendarEvent removedEvent)
Adds a comment to the activity of a repetitive event, when user removes an exception event
The comment has content: "Event cancelled for $CANCEL_DATE, cf RECURRING_ACTIVITY_05 from
http://community.exoplatform.com/portal/intranet/wiki/group/spaces/platform_41/Recurring_Events_Specification
|
void |
savePublicEvent(org.exoplatform.calendar.service.CalendarEvent event,
String calendarId)
publish new event activity
|
void |
updateFollowingOccurrences(org.exoplatform.calendar.service.CalendarEvent originEvent,
Date stopDate)
Adds a comment to the activity of a repetitive event, when user edits a following series
The comment has content: "The event will stop repeating on : $LAST_EVENT_DATE, cf RECURRING_ACTIVITY_04
from http://community.exoplatform.com/portal/intranet/wiki/group/spaces/platform_41/Recurring_Events_Specification
|
void |
updatePublicEvent(org.exoplatform.calendar.service.CalendarEvent oldEvent,
org.exoplatform.calendar.service.CalendarEvent newEvent,
String calendarId)
update existing event activity by creating a new comment in activity
|
void |
updatePublicEvent(org.exoplatform.calendar.service.CalendarEvent newEvent,
String calendarId)
publish new event activity
|
public static final String CALENDAR_APP_ID
public static final String ACTIVITY_COMMENT_TYPE
public static final String EVENT_ADDED
public static final String EVENT_UPDATED
public static final String EVENT_ID_KEY
public static final String CALENDAR_ID_KEY
public static final String TASK_ADDED
public static final String TASK_UPDATED
public static final String EVENT_TYPE_KEY
public static final String EVENT_SUMMARY_KEY
public static final String EVENT_TITLE_KEY
public static final String EVENT_DESCRIPTION_KEY
public static final String EVENT_LOCALE_KEY
public static final String EVENT_STARTTIME_KEY
public static final String EVENT_ENDTIME_KEY
public static final String EVENT_LINK_KEY
public static final String INVITATION_DETAIL
public static final String CALENDAR_FIELDS_CHANGED
public static final String SUMMARY_UPDATED
public static final String DESCRIPTION_UPDATED
public static final String DESCRIPTION_REMOVED
public static final String FROM_UPDATED
public static final String TO_UPDATED
public static final String LOCATION_UPDATED
public static final String LOCATION_REMOVED
public static final String ALLDAY_UPDATED
public static final String REPEAT_UPDATED
public static final String ATTACH_UPDATED
public static final String CATEGORY_UPDATED
public static final String CALENDAR_UPDATED
public static final String PRIORITY_UPDATED
public static final String NAME_UPDATED
public static final String NOTE_UPDATED
public static final String NOTE_REMOVED
public static final String TASK_CATEGORY_UPDATED
public static final String TASK_CALENDAR_UPDATED
public static final String TASK_ATTACH_UPDATED
public static final String TASK_NEED_ACTION
public static final String TASK_IN_PROCESS_ACTION
public static final String TASK_COMPLETED_ACTION
public static final String TASK_CANCELLED_ACTION
public static final String STOP_REPEATING
public static final String EVENT_CANCELLED
protected static final String CALENDAR_PREFIX_KEY
public void updateFollowingOccurrences(org.exoplatform.calendar.service.CalendarEvent originEvent,
Date stopDate)
updateFollowingOccurrences in interface org.exoplatform.calendar.service.EventLifeCycleupdateFollowingOccurrences in class org.exoplatform.calendar.service.impl.CalendarEventListeneroriginEvent - stopDate - public void removeOneOccurrence(org.exoplatform.calendar.service.CalendarEvent originEvent,
org.exoplatform.calendar.service.CalendarEvent removedEvent)
removeOneOccurrence in interface org.exoplatform.calendar.service.EventLifeCycleremoveOneOccurrence in class org.exoplatform.calendar.service.impl.CalendarEventListeneroriginEvent - The origin repetitive eventremovedEvent - The occurrence selected to be removedpublic String buildRepeatSummary(org.exoplatform.calendar.service.CalendarEvent repeatEvent)
There are 6 parameters: {count}, {until}, {interval}, {byDays}, {theDay}, {theNumber}.
Some labels in resource bundle to define numbers (the first, the second, ...) which were used in summary
repeatEvent - the repeating eventpublic static String buildRepeatSummary(org.exoplatform.calendar.service.CalendarEvent repeatEvent, org.exoplatform.calendar.service.CalendarService calendarService)
public static String buildComment(org.exoplatform.social.core.activity.model.ExoSocialActivity comment, org.exoplatform.calendar.service.CalendarEvent repeatEvent)
public static String getDateTimeString(Locale locale, long time, org.exoplatform.calendar.service.CalendarEvent event, TimeZone tz)
public static String getUICalendarLabel(String label)
label - public static int convertToDayOfWeek(String day)
public static Calendar getCalendarInstanceBySetting(org.exoplatform.calendar.service.CalendarSetting calendarSetting)
calendarSetting - public static TimeZone getUserTimeZone()
public void savePublicEvent(org.exoplatform.calendar.service.CalendarEvent event,
String calendarId)
savePublicEvent in interface org.exoplatform.calendar.service.EventLifeCyclesavePublicEvent in class org.exoplatform.calendar.service.impl.CalendarEventListenerevent - calendarId - public void updatePublicEvent(org.exoplatform.calendar.service.CalendarEvent oldEvent,
org.exoplatform.calendar.service.CalendarEvent newEvent,
String calendarId)
updatePublicEvent in interface org.exoplatform.calendar.service.EventLifeCycleupdatePublicEvent in class org.exoplatform.calendar.service.impl.CalendarEventListeneroldEvent - newEvent - calendarId - public void updatePublicEvent(org.exoplatform.calendar.service.CalendarEvent newEvent,
String calendarId)
updatePublicEvent in interface org.exoplatform.calendar.service.EventLifeCycleupdatePublicEvent in class org.exoplatform.calendar.service.impl.CalendarEventListenernewEvent - calendarId - public void deletePublicEvent(org.exoplatform.calendar.service.CalendarEvent event,
String calendarId)
deletePublicEvent in interface org.exoplatform.calendar.service.EventLifeCycledeletePublicEvent in class org.exoplatform.calendar.service.impl.CalendarEventListenerevent - calendarId - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.