|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CalendarService
Created by The eXo Platform SARL Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Jul 11, 2007
| Method Summary | |
|---|---|
void |
addListenerPlugin(CalendarUpdateEventListener listener)
|
java.util.Map<java.lang.String,java.lang.String> |
checkFreeBusy(EventQuery eventQuery)
The method will check the time free or busy of the user, it depends 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(java.lang.String fromUserId,
java.lang.String toUserId,
int calType,
java.lang.String calendarId,
java.lang.String eventId,
int answer)
The method calls when the user use exo mail product only, when user receives an invitation (in the same data system), the user will confirm that do they want to take part in or not |
void |
confirmInvitation(java.lang.String fromUserId,
java.lang.String confirmingEmail,
java.lang.String confirmingUser,
int calType,
java.lang.String calendarId,
java.lang.String eventId,
int answer)
|
int |
generateCalDav(java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
The method generate links to access calendar throw WEBDAV, it will require user name and password when access |
int |
generateCalDav(java.lang.String username,
java.util.List<java.lang.String> calendarIds,
RssData rssData)
The method generate links to access calendar throw WEBDAV, it will require user name and password when access |
int |
generateRss(java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
The method uses to make URL to contains links to subscriber calendar follows RSS stand |
int |
generateRss(java.lang.String username,
java.util.List<java.lang.String> calendarIds,
RssData rssData)
The method uses to make URL to contains links to subscribe calendar follows RSS stand |
java.util.List<GroupCalendarData> |
getCalendarCategories(java.lang.String username,
boolean isShowAll)
The method gets all groups of private calendar, and each GroupCalendar contains List of Calendar object |
CalendarCategory |
getCalendarCategory(java.lang.String username,
java.lang.String calendarCategoryId)
The method gets the calendar category by given id |
CalendarImportExport |
getCalendarImportExports(java.lang.String type)
The method gets Import/Export implement class to import or export ICS,CSV |
CalendarSetting |
getCalendarSetting(java.lang.String username)
This method gets informations of current user's setting |
java.util.List<CalendarCategory> |
getCategories(java.lang.String username)
The method gets all calendar category of current user from data base |
CalendarEvent |
getEvent(java.lang.String username,
java.lang.String eventId)
Get a personal event for a given owner |
java.util.List<EventCategory> |
getEventCategories(java.lang.String username)
The method gets all categories of event |
EventCategory |
getEventCategory(java.lang.String username,
java.lang.String eventCategoryId)
The method gets category of event by given id |
java.util.List<CalendarEvent> |
getEvents(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
The method selects all the events and tasks by given conditions, it includes events of private, public and share calendars |
java.lang.String[] |
getExportImportType()
The method gets types of data will be imported and exported |
java.util.List<FeedData> |
getFeeds(java.lang.String username)
It gets data form server and show the URL to view contents of RSS |
Calendar |
getGroupCalendar(java.lang.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 depend on the permission the user will have right to view or edit that calendar |
java.util.List<GroupCalendarData> |
getGroupCalendars(java.lang.String[] groupIds,
boolean isShowAll,
java.lang.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(java.lang.String calendarId,
java.lang.String eventId)
The method gets event or task form group calendar by given calendar id |
java.util.List<CalendarEvent> |
getGroupEventByCalendar(java.util.List<java.lang.String> calendarIds)
The method gets events and tasks by given public calendar IDs |
java.util.List<CalendarEvent> |
getPublicEvents(EventQuery eventQuery)
The method gets events and tasks by given event query |
javax.jcr.Node |
getRssHome(java.lang.String username)
The method return root of RSS data store area |
GroupCalendarData |
getSharedCalendars(java.lang.String username,
boolean isShowAll)
The method gets all shared calendars of the current user |
int |
getTypeOfCalendar(java.lang.String userName,
java.lang.String calendarId)
|
Calendar |
getUserCalendar(java.lang.String username,
java.lang.String calendarId)
The method get private calendar by given calendarId, and all calendar related to this category will be removed |
java.util.List<Calendar> |
getUserCalendars(java.lang.String username,
boolean isShowAll)
The method queries all private calendars of current user |
java.util.List<Calendar> |
getUserCalendarsByCategory(java.lang.String username,
java.lang.String calendarCategoryId)
The method look up all private calendars by given category id |
java.util.List<CalendarEvent> |
getUserEventByCalendar(java.lang.String username,
java.util.List<java.lang.String> calendarIds)
The method gets list events and tasks of given private calendar IDs |
java.util.List<CalendarEvent> |
getUserEvents(java.lang.String username,
EventQuery eventQuery)
The method gets all events and tasks by given conditions in event query |
void |
moveEvent(java.lang.String formCalendar,
java.lang.String toCalendar,
java.lang.String formType,
java.lang.String toType,
java.util.List<CalendarEvent> calEvents,
java.lang.String username)
The method move and save events form private calendars share calendars public calendars each other |
CalendarCategory |
removeCalendarCategory(java.lang.String username,
java.lang.String calendarCategoryId)
The method used for removing one category by id |
void |
removeEventCategory(java.lang.String username,
java.lang.String eventCategoryName)
Remove event category, all events and tasks belong to this category will be destroyed |
Calendar |
removePublicCalendar(java.lang.String calendarId)
Remove the group calendar form data base, every events, tasks inside this calendar will be removed too |
CalendarEvent |
removePublicEvent(java.lang.String calendarId,
java.lang.String eventId)
Remove event or task, all attachments and reminders item will be removed |
void |
removeSharedCalendar(java.lang.String username,
java.lang.String calendarId)
Removed shared calendar, but not the original calendar |
void |
removeSharedEvent(java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
The method removes the events or tasks form shared calendar, original item will be removed |
Calendar |
removeUserCalendar(java.lang.String username,
java.lang.String calendarId)
Remove private calendar by given id, all events and tasks belong to this calendar will be removed |
CalendarEvent |
removeUserEvent(java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
Remove given event or task in private calendar with calendar id, all attachments and reminders will be removed |
void |
saveCalendarCategory(java.lang.String username,
CalendarCategory calendarCategory,
boolean isNew)
Save details of category for a user |
void |
saveCalendarSetting(java.lang.String username,
CalendarSetting setting)
This method stores individual setting of each user, with setting you can configuration many things like Default view date, time formating, time interval |
void |
saveEventCategory(java.lang.String username,
EventCategory eventCategory,
java.lang.String[] values,
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 |
saveEventToSharedCalendar(java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
Add event to shared calendar, mean add event to original calendar too |
void |
savePublicCalendar(Calendar calendar,
boolean isNew,
java.lang.String username)
The method save calendar to public area (group calendar) |
void |
savePublicEvent(java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
Save event or task by given group calendar id |
void |
saveSharedCalendar(java.lang.String username,
Calendar calendar)
The method save all informations about shared calendar, it will be updated original calendar |
void |
saveUserCalendar(java.lang.String username,
Calendar calendar,
boolean isNew)
The method saves private calendar informations in to data base |
void |
saveUserEvent(java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
The method save information to an event or a task by given private calendar id to data |
EventPageList |
searchEvent(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
The method query events and tasks form given conditions, the conditions know by set value for eventquery |
java.util.Map<java.lang.Integer,java.lang.String> |
searchHightLightEvent(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
The method query all events, tasks and mark to highlight the date have events or tasks |
void |
shareCalendar(java.lang.String username,
java.lang.String calendarId,
java.util.List<java.lang.String> receiverUsers)
The method share the private calendar to other user, it can share for one or many users |
void |
updateCalDav(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp)
The method update exited RSS data when calendar has been changed |
void |
updateCalDav(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp,
int number)
|
void |
updateRss(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp)
The method update exited RSS data when calendar has been changed |
void |
updateRss(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp,
int number)
|
| Method Detail |
|---|
java.util.List<CalendarCategory> getCategories(java.lang.String username)
throws java.lang.Exception
username - current user name
java.lang.ExceptionCalendarCategory
java.util.List<GroupCalendarData> getCalendarCategories(java.lang.String username,
boolean isShowAll)
throws java.lang.Exception
username - current user nameisShowAll - The parameter to make sure that the user want to show all calendar or not, if it is true then
it gets all calendars, if false it will check from calendar setting to know which calendar will be shown
java.lang.ExceptionGroupCalendarData
CalendarCategory getCalendarCategory(java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
username - current user namecalendarCategoryId - id of calendar category
java.lang.ExceptionCalendarCategory
void saveCalendarCategory(java.lang.String username,
CalendarCategory calendarCategory,
boolean isNew)
throws java.lang.Exception
username - current user name(or user id)calendarCategory - the object that contains category detailsisNew - the boolean value to point out that add new category or update
java.lang.Exception
CalendarCategory removeCalendarCategory(java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
username - current user name(or user id)calendarCategoryId - given category id
java.lang.ExceptionCalendarCategory
Calendar getUserCalendar(java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
username - current user name(or user id)calendarId - given calendar id
java.lang.ExceptionCalendar
java.util.List<Calendar> getUserCalendars(java.lang.String username,
boolean isShowAll)
throws java.lang.Exception
username - 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
java.lang.ExceptionCalendar
java.util.List<Calendar> getUserCalendarsByCategory(java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
username - current user name(or user id)calendarCategoryId - given calendar category id
java.lang.ExceptionCalendar
void saveUserCalendar(java.lang.String username,
Calendar calendar,
boolean isNew)
throws java.lang.Exception
username - current user name(or user id)calendar - object contains informationsisNew - Boolean value to know add new calendar or update informations only
java.lang.Exception
Calendar removeUserCalendar(java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
username - current user name(or user id)calendarId - given calendar id
java.lang.Exception
void saveSharedCalendar(java.lang.String username,
Calendar calendar)
throws java.lang.Exception
username - current user name(or user id)calendar - the object contains informations
java.lang.Exception
Calendar getGroupCalendar(java.lang.String calendarId)
throws java.lang.Exception
calendarId - given calendar id
java.lang.ExceptionCalendar
java.util.List<GroupCalendarData> getGroupCalendars(java.lang.String[] groupIds,
boolean isShowAll,
java.lang.String username)
throws java.lang.Exception
groupIds - The group IDs that current user belongisShowAll - Gets all calendar or use setting from calendar settingusername - current user name(or user id)
java.lang.ExceptionGroupCalendarData
void savePublicCalendar(Calendar calendar,
boolean isNew,
java.lang.String username)
throws java.lang.Exception
calendar - isNew - Boolean value will be checked is it add new or update informations onlyusername - current user name(or user id)
java.lang.Exception
Calendar removePublicCalendar(java.lang.String calendarId)
throws java.lang.Exception
calendarId -
java.lang.Exception
java.util.List<EventCategory> getEventCategories(java.lang.String username)
throws java.lang.Exception
username - current user name(or user id)
java.lang.ExceptionEventCategory
void saveEventCategory(java.lang.String username,
EventCategory eventCategory,
java.lang.String[] values,
boolean isNew)
throws java.lang.Exception
username - current user name(or user id)eventCategory - values - isNew -
java.lang.Exception
void removeEventCategory(java.lang.String username,
java.lang.String eventCategoryName)
throws java.lang.Exception
username - current user name(or user id)eventCategoryName - The unique name of category
java.lang.Exception
EventCategory getEventCategory(java.lang.String username,
java.lang.String eventCategoryId)
throws java.lang.Exception
userSession - The session of current logged in userusername - current user name(or user id)eventCategoryId - given event category id
java.lang.ExceptionEventCategory
java.util.List<CalendarEvent> getUserEventByCalendar(java.lang.String username,
java.util.List<java.lang.String> calendarIds)
throws java.lang.Exception
userSession - The session of current logged in userusername - current user name(or user id)calendarIds - given calendar IDs
java.lang.Exception
java.util.List<CalendarEvent> getUserEvents(java.lang.String username,
EventQuery eventQuery)
throws java.lang.Exception
userSession - The session of current logged in userusername - current user name(or user id)eventQuery - given conditions
java.lang.ExceptionCalendarEvent
CalendarEvent getEvent(java.lang.String username,
java.lang.String eventId)
throws java.lang.Exception
owner - user id of the event ownereventId - id of event to get
java.lang.Exception
void saveUserEvent(java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
username - current user name(or user id)calendarId - given calendar idevent - object contains informationsisNew - boolean value, is update or add new event
java.lang.Exception
CalendarEvent removeUserEvent(java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
username - current user name(or user id)calendarId - given calendar ideventId - given event id
java.lang.Exception
CalendarEvent getGroupEvent(java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
calendarId - given calendar ideventId - given event id
java.lang.ExceptionCalendarEvent
java.util.List<CalendarEvent> getGroupEventByCalendar(java.util.List<java.lang.String> calendarIds)
throws java.lang.Exception
calendarIds - public calendar IDs
java.lang.ExceptionCalendarEvent
java.util.List<CalendarEvent> getPublicEvents(EventQuery eventQuery)
throws java.lang.Exception
eventQuery - object contains given conditions
java.lang.ExceptionCalendarEvent
void savePublicEvent(java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
calendarId - given calendar idevent - object contains information about eventisNew - boolean value to check update or add new event
java.lang.Exception
CalendarEvent removePublicEvent(java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
calendarId - given calendar ideventId - given event or task id
java.lang.Exception
void saveCalendarSetting(java.lang.String username,
CalendarSetting setting)
throws java.lang.Exception
username - current user name(or user id)setting - Object contains informations about setting
java.lang.Exception
CalendarSetting getCalendarSetting(java.lang.String username)
throws java.lang.Exception
username - current user name(or user id)
java.lang.ExceptionCalendarSettingCalendarImportExport getCalendarImportExports(java.lang.String type)
type - type of import, export, it supports two types, ICS and CSV
CalendarImportExport
java.lang.String[] getExportImportType()
throws java.lang.Exception
java.lang.Exception
int generateRss(java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
throws java.lang.Exception
username - current user name(or user id)calendars - rssData - object contains informations about the RSS feed
java.lang.ExceptionRssData
int generateRss(java.lang.String username,
java.util.List<java.lang.String> calendarIds,
RssData rssData)
throws java.lang.Exception
generateRss in interface CalendarServiceLegacyusername - current user name(or user id)calendars - rssData - object contains informations about the RSS feed
java.lang.ExceptionRssData
java.util.List<FeedData> getFeeds(java.lang.String username)
throws java.lang.Exception
systemSession - session to access the public datausername - current user name(or user id)
java.lang.ExceptionFeedData
javax.jcr.Node getRssHome(java.lang.String username)
throws java.lang.Exception
username - current user name(or user id)
java.lang.Exception
EventPageList searchEvent(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
userSession - The session of current logged in userusername - current user name(or user id)eventQuery - object contains conditions to querypublicCalendarIds - public calendar IDs
java.lang.ExceptionEventPageList
java.util.Map<java.lang.Integer,java.lang.String> searchHightLightEvent(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
userSession - The session of current logged in userusername - current user name(or user id)eventQuery - object contains conditions to querypublicCalendarIds - publicCalendarIds public calendar IDs
java.lang.Exception
void shareCalendar(java.lang.String username,
java.lang.String calendarId,
java.util.List<java.lang.String> receiverUsers)
throws java.lang.Exception
systemSession - session to access the public datausername - current user name(or user id)calendarId - given calendar idreceiverUsers - List receive user user name or id
java.lang.Exception
GroupCalendarData getSharedCalendars(java.lang.String username,
boolean isShowAll)
throws java.lang.Exception
systemSession - session to access the public datausername - current user name(or user id)isShowAll - boolean value to point out that it will get all calendars or use user's clendar setting
java.lang.ExceptionGroupCalendarData
java.util.List<CalendarEvent> getEvents(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
username - current user name(or user id)eventQuery - given conditionspublicCalendarIds - public calendar IDs
java.lang.ExceptionCalendarEvent
void removeSharedCalendar(java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
username - current user name(or user id)calendarId - given calendar id
java.lang.Exception
void saveEventToSharedCalendar(java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
username - current user name(or user id)calendarId - given calendar idevent - object contains informations about eventisNew - boolean value to check that add new or update event
java.lang.Exception
java.util.Map<java.lang.String,java.lang.String> checkFreeBusy(EventQuery eventQuery)
throws java.lang.Exception
eventQuery - The query object it contains query statement to look up the data
java.lang.ExceptionEventQuery
int generateCalDav(java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
throws java.lang.Exception
username - current user name(or user id)calendars - List calendar IDs will look up and publicrssData - Object contains informations about RSS feed
java.lang.Exception
int generateCalDav(java.lang.String username,
java.util.List<java.lang.String> calendarIds,
RssData rssData)
throws java.lang.Exception
generateCalDav in interface CalendarServiceLegacyusername - current user name(or user id)calendars - List calendar IDs will look up and publicrssData - Object contains informations about RSS feed
Exce
java.lang.Exception
void removeSharedEvent(java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
username - current user name(or user id)calendarId - given calendar ideventId - given event id
java.lang.Exception
void moveEvent(java.lang.String formCalendar,
java.lang.String toCalendar,
java.lang.String formType,
java.lang.String toType,
java.util.List<CalendarEvent> calEvents,
java.lang.String username)
throws java.lang.Exception
formCalendar - the source calendar idtoCalendar - destination calendar idformType - type of source calendartoType - type of destination calendarcalEvents - List of object contains informationsusername - current user name(or user id)
java.lang.Exception
void confirmInvitation(java.lang.String fromUserId,
java.lang.String toUserId,
int calType,
java.lang.String calendarId,
java.lang.String eventId,
int answer)
throws java.lang.Exception
fromUserId - id or user name of the user, who make the invitationtoUserId - receiver user's id or namecalType - type of calendar contains the eventcalendarId - given calendar ideventId - given event idanswer - The answer of the receive user
java.lang.Exception
void confirmInvitation(java.lang.String fromUserId,
java.lang.String confirmingEmail,
java.lang.String confirmingUser,
int calType,
java.lang.String calendarId,
java.lang.String eventId,
int answer)
throws java.lang.Exception
java.lang.Exception
void addListenerPlugin(CalendarUpdateEventListener listener)
throws java.lang.Exception
java.lang.Exception
void updateRss(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp)
throws java.lang.Exception
usename - calendarId - calendar id
Added from 1.3
java.lang.Exception
void updateRss(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp,
int number)
throws java.lang.Exception
java.lang.Exception
void updateCalDav(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp)
throws java.lang.Exception
usename - calendarId - calendar id
Added from 1.3
java.lang.Exception
void updateCalDav(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp,
int number)
throws java.lang.Exception
java.lang.Exception
int getTypeOfCalendar(java.lang.String userName,
java.lang.String calendarId)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||