|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.calendar.service.impl.CalendarServiceImpl
public class CalendarServiceImpl
Created by The eXo Platform SARL Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Jul 11, 2007
| Field Summary | |
|---|---|
protected List<CalendarEventListener> |
eventListeners_
|
protected List<CalendarUpdateEventListener> |
listeners_
|
| Fields inherited from interface org.exoplatform.calendar.service.CalendarService |
|---|
CALDAV, EXPORTEDCSV, ICALENDAR |
| Constructor Summary | |
|---|---|
CalendarServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.RepositoryService reposervice,
org.exoplatform.services.resources.ResourceBundleService rbs)
|
|
| Method Summary | |
|---|---|
void |
addEventListenerPlugin(CalendarEventListener listener)
|
void |
addListenerPlugin(CalendarUpdateEventListener listener)
|
void |
assignGroupTask(String taskId,
String calendarId,
String assignee)
assign a user as delegator for a group task. |
Map<String,String> |
checkFreeBusy(EventQuery eventQuery)
The method will check the time free or busy of the user, it depents on events and tasks of this user now it only check on one day and if the events and tasks marked with busy, out side status will be checked |
void |
confirmInvitation(String fromUserId,
String toUserId,
int calType,
String calendarId,
String eventId,
int answer)
The method calls when the user use exomail product only, when user receives an invitation (in the same data system), the user will congfirme that do they want to take part in or not |
void |
confirmInvitation(String fromUserId,
String confirmingEmail,
String confirmingUser,
int calType,
String calendarId,
String eventId,
int answer)
|
org.quartz.JobDetail |
findSynchronizeRemoteCalendarJob(org.exoplatform.services.scheduler.JobSchedulerService schedulerService,
String username)
|
int |
generateRss(String username,
LinkedHashMap<String,Calendar> calendars,
RssData rssData)
The menthod uses to make url to contants links to subcribe calendar folows RSS stand |
int |
generateRss(String username,
List<String> calendarIds,
RssData rssData)
The menthod uses to make url to contants links to subcribe calendar folows RSS stand |
String |
getCalDavResourceEtag(String username,
String calendarId,
String eventId)
|
String |
getCalDavResourceHref(String username,
String calendarId,
String eventId)
|
CalendarImportExport |
getCalendarImportExports(String type)
The method gets Import/Export implement class to import or export ics,csv |
CalendarSetting |
getCalendarSetting(String username)
This method gets infomations of current user's setting |
CalendarEvent |
getEvent(String username,
String eventId)
Get a personal event for a given owner |
CalendarEvent |
getEventById(String eventId)
|
List<EventCategory> |
getEventCategories(String username)
The method gets all categories of event |
EventCategory |
getEventCategory(String username,
String eventCategoryId)
The method gets category of event by given id |
EventCategory |
getEventCategoryByName(String username,
String eventCategoryName)
The method gets category of event by given id |
List<CalendarEvent> |
getEvents(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
The method selects all the events and tasks by given conditions, it includes events of private, public and share calendars |
List<CalendarEvent> |
getExceptionEvents(String username,
CalendarEvent recurEvent)
Get all exception occurrences from a original recurrence event, the exception event always belong to same calendar with original recurrence event |
String[] |
getExportImportType()
The method gets types of data will be imported and exported |
List<FeedData> |
getFeeds(String username)
It gets data form server and show the url to view contents of RSS |
Calendar |
getGroupCalendar(String calendarId)
The method gets all calendar of a group user, we called it is group calendar it means the calendar for group of users and depen on the permission the user will have right to view or edit that calendar |
List<GroupCalendarData> |
getGroupCalendars(String[] groupIds,
boolean isShowAll,
String username)
The method gets all the group calendar data of current user and list of calendars belong to that group with group calendar data it will classify calendar to each group |
CalendarEvent |
getGroupEvent(String eventId)
Get a group event from eventID |
CalendarEvent |
getGroupEvent(String calendarId,
String eventId)
The method gets event or task form group calendar by given calendar id |
List<CalendarEvent> |
getGroupEventByCalendar(List<String> calendarIds)
The method gets events and tasks by given public calendar ids |
Map<String,CalendarEvent> |
getOccurrenceEvents(CalendarEvent recurEvent,
Calendar from,
Calendar to,
String timezone)
Get all virtual occurrences from an original recurrence event in a period of time The result will be depended on the recurrence rule, the start date of recurrence event and the period of time to view. |
List<CalendarEvent> |
getOriginalRecurrenceEvents(String username,
Calendar from,
Calendar to,
String[] publicCalendarIds)
Get all original recurrence events of an user in period of time |
List<CalendarEvent> |
getPublicEvents(EventQuery eventQuery)
The method gets events and tasks by given event query |
RemoteCalendar |
getRemoteCalendar(String owner,
String calendarId)
|
Calendar |
getRemoteCalendar(String owner,
String remoteUrl,
String remoteType)
|
int |
getRemoteCalendarCount(String username)
|
RemoteCalendarService |
getRemoteCalendarService()
Get the RemoteCalendarService object |
ResourceBundle |
getResourceBundle()
|
javax.jcr.Node |
getRssHome(String username)
The method return root of rss data store area |
GroupCalendarData |
getSharedCalendars(String username,
boolean isShowAll)
The method gets all shared calendars of the current user |
CalendarEvent |
getSharedEvent(String username,
String calendarId,
String eventId)
Get a shared event of user from user name, id of shared calendar, id of shared event |
List<CalendarEvent> |
getSharedEventByCalendars(String username,
List<String> calendarIds)
|
int |
getTypeOfCalendar(String userName,
String calendarId)
|
Calendar |
getUserCalendar(String username,
String calendarId)
The method get private calendar by given calendarId, and all calendar related to this category will be removed |
List<Calendar> |
getUserCalendars(String username,
boolean isShowAll)
The method queries all private calendars of current user |
List<CalendarEvent> |
getUserEventByCalendar(String username,
List<String> calendarIds)
The method gets list events and tasks of given private calendar ids |
List<CalendarEvent> |
getUserEvents(String username,
EventQuery eventQuery)
The method gets all events and tasks by given conditions in event query |
Calendar |
importRemoteCalendar(RemoteCalendar remoteCalendar)
Import an online .ics or through CalDav access to local calendar |
void |
initNewUser(String userName,
CalendarSetting defaultCalendarSetting_)
|
boolean |
isGroupBeingShared(String group,
org.exoplatform.services.scheduler.impl.JobSchedulerServiceImpl schedulerService_)
checks if a group is belong to a list of groups that's being shared |
boolean |
isRemoteCalendar(String username,
String calendarId)
Check if the calendar with given calendarId is a remote calendar |
boolean |
isValidRemoteUrl(String url,
String type,
String remoteUser,
String remotePassword)
Check if the remote url is valid, in 2 cases of iCalendar url or CalDav url, with authentication |
void |
loadSynchronizeRemoteCalendarJob(String username)
|
void |
moveEvent(String fromCalendar,
String toCalendar,
String fromType,
String toType,
List<CalendarEvent> calEvents,
String username)
The method move and save events form private calendars share calendars public calendars each other |
Calendar |
refreshRemoteCalendar(String username,
String remoteCalendarId)
Reload remote calendar data |
void |
removeEventCategory(String username,
String eventCategoryId)
Remove event category, all events and tasks belong to this category will be destroyed |
void |
removeFeedData(String username,
String title)
|
void |
removeOccurrenceInstance(String username,
CalendarEvent occurrence)
Remove only an occurrence instance from recurrence series, this function will get the original event node of the occurrence and then put the recurrence id of the need-to-delete occurrence to excludeId list of original node. |
Calendar |
removePublicCalendar(String calendarId)
Remove the group calendar form data base, every events, tasks inside this calendar will be removed too |
CalendarEvent |
removePublicEvent(String calendarId,
String eventId)
Remove event or task, all attachments and reminders item will be removed |
void |
removeRecurrenceSeries(String username,
CalendarEvent originalEvent)
Remove all occurrence from an recurrence series. |
void |
removeSharedCalendar(String username,
String calendarId)
Removed shared calendar, but not the orloginal calendar |
void |
removeSharedCalendarByJob(String username,
List<String> unsharedGroups,
String calendarId)
unsharing a calendar with a group will run in background |
void |
removeSharedCalendarFolder(String username)
This method removes the shared calendar folder of this user and all references (from shared calendars) to this folder. |
void |
removeSharedEvent(String username,
String calendarId,
String eventId)
The method removes the events or tasks form shared calendar, orloginal item will be removed |
Calendar |
removeUserCalendar(String username,
String calendarId)
Remove private calendar by given id, all events and tasks belong to this calendar will be removed |
CalendarEvent |
removeUserEvent(String username,
String calendarId,
String eventId)
Remove given event or task in private calendar with calendar id, all attachments and reminders will be removed |
void |
saveCalendarSetting(String username,
CalendarSetting setting)
This menthod stores individual setting of each user, with setting you can configue many things like Default view date, time formating, time inteval |
void |
saveEventCategory(String username,
EventCategory eventCategory,
boolean isNew)
Save event category to data base, every user will have their own category to classify events, and it will use unique name in data base |
void |
saveEventCategory(String username,
EventCategory eventCategory,
String[] values,
boolean isNew)
|
void |
saveEventToSharedCalendar(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
Add event to shared calendar, mean add event to orloginal calendar too |
void |
savePublicCalendar(Calendar calendar,
boolean isNew)
The method save calendar to public area (group calendar) |
void |
savePublicEvent(String calendarId,
CalendarEvent event,
boolean isNew)
Save event or task by given group calendar id |
void |
saveSharedCalendar(String username,
Calendar calendar)
The method save all infomations about shared calendar, it will be updated original calendar |
void |
saveUserCalendar(String username,
Calendar calendar,
boolean isNew)
The method saves private calendar infomations in to data base |
void |
saveUserEvent(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
The method save infomation to an event or a task by given private calendar id to data |
EventPageList |
searchEvent(String username,
EventQuery query,
String[] publicCalendarIds)
The method query events and tasks form given coditions, the coditions know by set value for eventquery |
Map<Integer,String> |
searchHighlightRecurrenceEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds,
String timezone)
Find all days of month or year that have event/task to highlight from all personal, shared and public calendar of an user This function is much same like searchHightLightEvent() function but it only counts for recurrence event |
Map<Integer,String> |
searchHightLightEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
The method query all events, tasks and mark to hightlight the date have events or tasks |
void |
setCalDavResourceEtag(String username,
String calendarId,
String eventId,
String etag)
|
void |
setCalDavResourceHref(String username,
String calendarId,
String eventId,
String href)
|
void |
setGroupTaskStatus(String taskId,
String calendarId,
String status)
set status value of a group task. |
void |
shareCalendar(String username,
String calendarId,
List<String> receiverUsers)
The method share the private calendar to other user, it can share for one or many users |
void |
shareCalendarByRunJob(String username,
String calendarId,
List<String> sharedGroups)
sharing a calendar with a group will run in background add jobs for sharing and unsharing calendar with group |
void |
start()
|
void |
stop()
|
void |
stopSynchronizeRemoteCalendarJob(String username)
|
void |
updateOccurrenceEvent(String fromCalendar,
String toCalendar,
String fromType,
String toType,
List<CalendarEvent> calEvents,
String username)
Update an occurrence event, there are two cases: if this occurrence is virtual occurrence, convert it to exception, if this occurrence is exception, update it as a normal event |
void |
updateRecurrenceSeries(String fromCalendar,
String toCalendar,
String fromType,
String toType,
CalendarEvent occurrence,
String username)
Update recurrence series from an occurrence, this function is only called if the occurrence event is not changed the from date property. |
Calendar |
updateRemoteCalendarInfo(RemoteCalendar remoteCalendar)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<CalendarUpdateEventListener> listeners_
protected List<CalendarEventListener> eventListeners_
| Constructor Detail |
|---|
public CalendarServiceImpl(org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.RepositoryService reposervice,
org.exoplatform.services.resources.ResourceBundleService rbs)
throws Exception
Exception| Method Detail |
|---|
public Calendar getUserCalendar(String username,
String calendarId)
throws Exception
getUserCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar id
ExceptionCalendar
public List<Calendar> getUserCalendars(String username,
boolean isShowAll)
throws Exception
getUserCalendars in interface CalendarServiceusername - current user name(or user id)isShowAll - boolean value if equals true will get all private calendars, equals false it will take only
the calendars in current user's setting
ExceptionCalendar
public void saveUserCalendar(String username,
Calendar calendar,
boolean isNew)
throws Exception
saveUserCalendar in interface CalendarServiceusername - current user name(or user id)calendar - object contants infomationsisNew - Boolean value to know add new calendar or update infomations only
Exception
public Calendar removeUserCalendar(String username,
String calendarId)
throws Exception
removeUserCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar id
Exception
public Calendar getGroupCalendar(String calendarId)
throws Exception
getGroupCalendar in interface CalendarServicecalendarId - given calendar id
ExceptionCalendar
public List<GroupCalendarData> getGroupCalendars(String[] groupIds,
boolean isShowAll,
String username)
throws Exception
getGroupCalendars in interface CalendarServicegroupIds - The group ids that current user belongisShowAll - Gets all calendar or use setting from calendar settingusername - current user name(or user id)
ExceptionGroupCalendarData
public void savePublicCalendar(Calendar calendar,
boolean isNew)
throws Exception
savePublicCalendar in interface CalendarServiceisNew - Boolean value will be checked is it add new or update information only
Exception
public Calendar removePublicCalendar(String calendarId)
throws Exception
removePublicCalendar in interface CalendarServiceException
public List<EventCategory> getEventCategories(String username)
throws Exception
getEventCategories in interface CalendarServiceusername - current user name(or user id)
ExceptionEventCategory
public void saveEventCategory(String username,
EventCategory eventCategory,
boolean isNew)
throws Exception
saveEventCategory in interface CalendarServiceusername - current user name(or user id)
Exception
public void saveEventCategory(String username,
EventCategory eventCategory,
String[] values,
boolean isNew)
throws Exception
Exception
public void removeEventCategory(String username,
String eventCategoryId)
throws Exception
removeEventCategory in interface CalendarServiceusername - current user name(or user id)eventCategoryId - The unique name of category
Exception
public List<CalendarEvent> getUserEventByCalendar(String username,
List<String> calendarIds)
throws Exception
getUserEventByCalendar in interface CalendarServiceusername - current user name(or user id)calendarIds - given calendar ids
Exception
public List<CalendarEvent> getUserEvents(String username,
EventQuery eventQuery)
throws Exception
getUserEvents in interface CalendarServiceusername - current user name(or user id)eventQuery - given coditons
ExceptionCalendarEvent
public CalendarEvent getEvent(String username,
String eventId)
throws Exception
CalendarService
getEvent in interface CalendarServiceusername - user id of the event ownereventId - id of event to get
Exception
public void saveUserEvent(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
saveUserEvent in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar idevent - object contants infomationsisNew - boolean value, is update or add new event
Exception
public CalendarEvent removeUserEvent(String username,
String calendarId,
String eventId)
throws Exception
removeUserEvent in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar ideventId - given event id
Exception
public CalendarEvent getGroupEvent(String eventId)
throws Exception
getGroupEvent in interface CalendarServiceException
public CalendarEvent getGroupEvent(String calendarId,
String eventId)
throws Exception
getGroupEvent in interface CalendarServicecalendarId - given calendar ideventId - given event id
ExceptionCalendarEvent
public List<CalendarEvent> getGroupEventByCalendar(List<String> calendarIds)
throws Exception
getGroupEventByCalendar in interface CalendarServicecalendarIds - public calendar ids
ExceptionCalendarEvent
public List<CalendarEvent> getPublicEvents(EventQuery eventQuery)
throws Exception
getPublicEvents in interface CalendarServiceeventQuery - object contants given conditions
ExceptionCalendarEvent
public void savePublicEvent(String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
savePublicEvent in interface CalendarServicecalendarId - given calendar idevent - object contants infomation about eventisNew - boolean value to check update or add new event
Exception
public CalendarEvent removePublicEvent(String calendarId,
String eventId)
throws Exception
removePublicEvent in interface CalendarServicecalendarId - given calendar ideventId - given event or task id
Exceptionpublic CalendarImportExport getCalendarImportExports(String type)
getCalendarImportExports in interface CalendarServicetype - type of import, export, it supports two types, ICS and CSV
CalendarImportExport
public String[] getExportImportType()
throws Exception
getExportImportType in interface CalendarServiceException
public void saveCalendarSetting(String username,
CalendarSetting setting)
throws Exception
saveCalendarSetting in interface CalendarServiceusername - current user name(or user id)setting - Obicject containts infomations about setting
Exception
public CalendarSetting getCalendarSetting(String username)
throws Exception
getCalendarSetting in interface CalendarServiceusername - current user name(or user id)
ExceptionCalendarSetting
public int generateRss(String username,
LinkedHashMap<String,Calendar> calendars,
RssData rssData)
throws Exception
generateRss in interface CalendarServiceusername - current user name(or user id)rssData - object contants infomations about the rss feed
ExceptionRssData
public List<FeedData> getFeeds(String username)
throws Exception
getFeeds in interface CalendarServiceusername - current user name(or user id)
ExceptionFeedData
public javax.jcr.Node getRssHome(String username)
throws Exception
getRssHome in interface CalendarServiceusername - current user name(or user id)
Exception
public EventPageList searchEvent(String username,
EventQuery query,
String[] publicCalendarIds)
throws Exception
searchEvent in interface CalendarServiceusername - current user name(or user id)query - object contants coditions to querypublicCalendarIds - pulic calendar ids
ExceptionEventPageList
public EventCategory getEventCategory(String username,
String eventCategoryId)
throws Exception
getEventCategory in interface CalendarServiceusername - current user name(or user id)eventCategoryId - given event category id
ExceptionEventCategory
public Map<Integer,String> searchHightLightEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
searchHightLightEvent in interface CalendarServiceusername - current user name(or user id)eventQuery - object contants coditions to querypublicCalendarIds - publicCalendarIds pulic calendar ids
Exception
public void shareCalendar(String username,
String calendarId,
List<String> receiverUsers)
throws Exception
shareCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar idreceiverUsers - List receive user username or id
Exception
public GroupCalendarData getSharedCalendars(String username,
boolean isShowAll)
throws Exception
getSharedCalendars in interface CalendarServiceusername - current user name(or user id)isShowAll - boolean value to point out that it will get all calendars or use user's clendar setting
ExceptionGroupCalendarData
public List<CalendarEvent> getEvents(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
getEvents in interface CalendarServiceusername - current user name(or user id)eventQuery - given coditionspublicCalendarIds - public calendar ids
ExceptionCalendarEvent
public void removeSharedCalendar(String username,
String calendarId)
throws Exception
removeSharedCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar id
Exception
public void removeSharedCalendarFolder(String username)
throws Exception
CalendarService
removeSharedCalendarFolder in interface CalendarServiceusername - the username
Exception
public void saveEventToSharedCalendar(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
saveEventToSharedCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar idevent - object contants infomations about eventisNew - boolean value to check that add new or update event
Exception
public Map<String,String> checkFreeBusy(EventQuery eventQuery)
throws Exception
checkFreeBusy in interface CalendarServiceeventQuery - The query object it containts query statement to look up the data
ExceptionEventQuery
public void saveSharedCalendar(String username,
Calendar calendar)
throws Exception
saveSharedCalendar in interface CalendarServiceusername - current user name(or user id)calendar - the oject contants infomations
Exception
public void removeSharedEvent(String username,
String calendarId,
String eventId)
throws Exception
removeSharedEvent in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar ideventId - given event id
Exception
public void moveEvent(String fromCalendar,
String toCalendar,
String fromType,
String toType,
List<CalendarEvent> calEvents,
String username)
throws Exception
moveEvent in interface CalendarServicefromCalendar - the source calendar idtoCalendar - destination calendar idfromType - type of source calendartoType - type of destination calendarcalEvents - List of object contant infomationsusername - current user name(or user id)
Exception
public void confirmInvitation(String fromUserId,
String toUserId,
int calType,
String calendarId,
String eventId,
int answer)
confirmInvitation in interface CalendarServicefromUserId - id or user name of the user, who make the invitationtoUserId - receiver user's id or namecalType - type of calendar contants the eventcalendarId - given calendar ideventId - given event idanswer - The answer of the receive user
public void confirmInvitation(String fromUserId,
String confirmingEmail,
String confirmingUser,
int calType,
String calendarId,
String eventId,
int answer)
throws Exception
confirmInvitation in interface CalendarServiceExceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
public void addListenerPlugin(CalendarUpdateEventListener listener)
throws Exception
addListenerPlugin in interface CalendarServiceException
public int getTypeOfCalendar(String userName,
String calendarId)
throws Exception
getTypeOfCalendar in interface CalendarServiceException
public int generateRss(String username,
List<String> calendarIds,
RssData rssData)
throws Exception
CalendarService
generateRss in interface CalendarServiceusername - current user name(or user id)rssData - object contants infomations about the rss feed
ExceptionRssData
public ResourceBundle getResourceBundle()
throws Exception
getResourceBundle in interface CalendarServiceException
public EventCategory getEventCategoryByName(String username,
String eventCategoryName)
throws Exception
CalendarService
getEventCategoryByName in interface CalendarServiceusername - current user name(or user id)eventCategoryName - given event category name
ExceptionEventCategory
public List<CalendarEvent> getSharedEventByCalendars(String username,
List<String> calendarIds)
throws Exception
getSharedEventByCalendars in interface CalendarServiceException
public void removeFeedData(String username,
String title)
removeFeedData in interface CalendarService
public void initNewUser(String userName,
CalendarSetting defaultCalendarSetting_)
throws Exception
initNewUser in interface CalendarServiceException
public void addEventListenerPlugin(CalendarEventListener listener)
throws Exception
addEventListenerPlugin in interface CalendarServiceException
public void assignGroupTask(String taskId,
String calendarId,
String assignee)
throws Exception
CalendarService
assignGroupTask in interface CalendarServiceException
public void setGroupTaskStatus(String taskId,
String calendarId,
String status)
throws Exception
CalendarService
setGroupTaskStatus in interface CalendarServiceException
public boolean isRemoteCalendar(String username,
String calendarId)
throws Exception
isRemoteCalendar in interface CalendarServiceusername - the owner of calendarcalendarId - the Id of calendar
Exception
public boolean isValidRemoteUrl(String url,
String type,
String remoteUser,
String remotePassword)
throws Exception
isValidRemoteUrl in interface CalendarServiceurl - the remote urltype - the type of remote calendar, iCalendar or CalDavremoteUser - the remote username used to authenticateremotePassword - the remote password used to authenticate
Exception
public Calendar updateRemoteCalendarInfo(RemoteCalendar remoteCalendar)
throws Exception
updateRemoteCalendarInfo in interface CalendarServiceremoteCalendar - object content all properties for remote calendar.
Exception
public Calendar refreshRemoteCalendar(String username,
String remoteCalendarId)
throws Exception
refreshRemoteCalendar in interface CalendarServiceusername - owner of the calendarremoteCalendarId - object content all properties for remote calendar.Id id of the calendar
Exception
public Calendar importRemoteCalendar(RemoteCalendar remoteCalendar)
throws Exception
importRemoteCalendar in interface CalendarServiceremoteCalendar - object content all properties for remote calendar.
Exception
public RemoteCalendar getRemoteCalendar(String owner,
String calendarId)
throws Exception
getRemoteCalendar in interface CalendarServiceowner - the owner of this calendarcalendarId - the Id of calendar
Exception
public RemoteCalendarService getRemoteCalendarService()
throws Exception
getRemoteCalendarService in interface CalendarServiceException
public Calendar getRemoteCalendar(String owner,
String remoteUrl,
String remoteType)
throws Exception
getRemoteCalendar in interface CalendarServiceException
public String getCalDavResourceHref(String username,
String calendarId,
String eventId)
throws Exception
getCalDavResourceHref in interface CalendarServiceException
public String getCalDavResourceEtag(String username,
String calendarId,
String eventId)
throws Exception
getCalDavResourceEtag in interface CalendarServiceException
public void setCalDavResourceHref(String username,
String calendarId,
String eventId,
String href)
throws Exception
Exception
public void setCalDavResourceEtag(String username,
String calendarId,
String eventId,
String etag)
throws Exception
Exception
public void loadSynchronizeRemoteCalendarJob(String username)
throws Exception
loadSynchronizeRemoteCalendarJob in interface CalendarServiceException
public void stopSynchronizeRemoteCalendarJob(String username)
throws Exception
stopSynchronizeRemoteCalendarJob in interface CalendarServiceException
public org.quartz.JobDetail findSynchronizeRemoteCalendarJob(org.exoplatform.services.scheduler.JobSchedulerService schedulerService,
String username)
throws Exception
findSynchronizeRemoteCalendarJob in interface CalendarServiceException
public int getRemoteCalendarCount(String username)
throws Exception
getRemoteCalendarCount in interface CalendarServiceException
public Map<String,CalendarEvent> getOccurrenceEvents(CalendarEvent recurEvent,
Calendar from,
Calendar to,
String timezone)
throws Exception
CalendarService
getOccurrenceEvents in interface CalendarServicerecurEvent - the original recurrence eventfrom - the from timeto - the to time
Exception
public void updateOccurrenceEvent(String fromCalendar,
String toCalendar,
String fromType,
String toType,
List<CalendarEvent> calEvents,
String username)
throws Exception
CalendarService
updateOccurrenceEvent in interface CalendarServiceException
public List<CalendarEvent> getOriginalRecurrenceEvents(String username,
Calendar from,
Calendar to,
String[] publicCalendarIds)
throws Exception
CalendarService
getOriginalRecurrenceEvents in interface CalendarServiceusername - the owner of recurrence eventfrom - from timeto - to time
Exception
public List<CalendarEvent> getExceptionEvents(String username,
CalendarEvent recurEvent)
throws Exception
CalendarService
getExceptionEvents in interface CalendarServiceusername - the owner of this recurrence eventrecurEvent - the original recurrence event
Exception
public void removeRecurrenceSeries(String username,
CalendarEvent originalEvent)
throws Exception
CalendarService
removeRecurrenceSeries in interface CalendarServiceusername - owner of recurrence event, in case of private or shared calendaroriginalEvent - the original recurrence event object
Exception
public void updateRecurrenceSeries(String fromCalendar,
String toCalendar,
String fromType,
String toType,
CalendarEvent occurrence,
String username)
throws Exception
CalendarService
updateRecurrenceSeries in interface CalendarServicefromCalendar - the calendarId of the calendar which the recurrence event belong to before updatingtoCalendar - the new calendarId of the recurrence eventfromType - calendarType of recurrence event before updatingtoType - calendarType of recurrence event after updatingoccurrence - the occurrence contains the new data about recurrence seriesusername - owner of recurrence event, in case of private and shared calendar
Exception
public CalendarEvent getSharedEvent(String username,
String calendarId,
String eventId)
throws Exception
CalendarService
getSharedEvent in interface CalendarServiceusername - usernamecalendarId - id of shared calendareventId - id of shared event
Exception
public void removeOccurrenceInstance(String username,
CalendarEvent occurrence)
throws Exception
CalendarService
removeOccurrenceInstance in interface CalendarServiceusername - owner of this occurrence eventoccurrence - the occurrence event object to remove
Exception
public Map<Integer,String> searchHighlightRecurrenceEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds,
String timezone)
throws Exception
CalendarService
searchHighlightRecurrenceEvent in interface CalendarServiceusername - the username of usereventQuery - EventQuery object to limit time-rangepublicCalendarIds - list of public calendartimezone - timezone
Exception
public void shareCalendarByRunJob(String username,
String calendarId,
List<String> sharedGroups)
throws Exception
shareCalendarByRunJob in interface CalendarServiceException
public void removeSharedCalendarByJob(String username,
List<String> unsharedGroups,
String calendarId)
throws Exception
removeSharedCalendarByJob in interface CalendarServiceException
public boolean isGroupBeingShared(String group,
org.exoplatform.services.scheduler.impl.JobSchedulerServiceImpl schedulerService_)
throws Exception
CalendarService
isGroupBeingShared in interface CalendarServiceException
public CalendarEvent getEventById(String eventId)
throws Exception
getEventById in interface CalendarServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||