|
||||||||||
| 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 | |
|---|---|
static java.lang.String |
EXPORTEDCSV
|
static java.lang.String |
ICALENDAR
|
protected java.util.List<CalendarUpdateEventListener> |
listeners_
|
| Constructor Summary | |
|---|---|
CalendarServiceImpl(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.RepositoryService reposervice)
|
|
| 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 |
java.util.Map<java.lang.String,java.lang.String> |
checkFreeBusy(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
EventQuery eventQuery)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
boolean isShowAll)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarCategoryId)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username)
|
CalendarSetting |
getCalendarSetting(java.lang.String username)
This method gets informations of current user's setting |
java.util.List<CalendarCategory> |
getCategories(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username)
|
java.util.List<EventCategory> |
getEventCategories(java.lang.String username)
The method gets all categories of event |
EventCategory |
getEventCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String eventCategoryId)
|
EventCategory |
getEventCategory(java.lang.String username,
java.lang.String eventCategoryId)
The method gets category of event by given id |
java.util.List<CalendarEvent> |
getEvents(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String[] groupIds,
boolean isShowAll,
java.lang.String username)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId,
java.lang.String eventId)
|
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> |
getGroupEventByCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.util.List<java.lang.String> calendarIds)
|
java.util.List<CalendarEvent> |
getPublicEvents(EventQuery eventQuery)
The method gets events and tasks by given event query |
java.util.List<CalendarEvent> |
getPublicEvents(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
EventQuery eventQuery)
|
javax.jcr.Node |
getRssHome(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username)
|
javax.jcr.Node |
getRssHome(java.lang.String username)
The method return root of RSS data store area |
GroupCalendarData |
getSharedCalendars(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
boolean isShowAll)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
boolean isShowAll)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarCategoryId)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.util.List<java.lang.String> calendarIds)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
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)
|
void |
moveEvent(java.lang.String formCalendar,
java.lang.String toCalendar,
java.lang.String fromType,
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarCategoryId)
|
CalendarCategory |
removeCalendarCategory(java.lang.String username,
java.lang.String calendarCategoryId)
The method used for removing one category by id |
void |
removeEventCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String eventCategoryName)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId,
java.lang.String eventId)
|
CalendarEvent |
removePublicEvent(java.lang.String calendarId,
java.lang.String eventId)
Remove event or task, all attachments and reminders item will be removed |
void |
removeSharedCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSesssion,
java.lang.String username,
java.lang.String calendarId)
|
void |
removeSharedCalendar(java.lang.String username,
java.lang.String calendarId)
Removed shared calendar, but not the original calendar |
void |
removeSharedEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarId)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
CalendarCategory calendarCategory,
boolean isNew)
|
void |
saveCalendarCategory(java.lang.String username,
CalendarCategory calendarCategory,
boolean isNew)
Save details of category for a user |
void |
saveCalendarSetting(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
CalendarSetting setting)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventCategory eventCategory,
java.lang.String[] values,
boolean isNew)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
|
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 |
savePublicCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
Calendar calendar,
boolean isNew,
java.lang.String username)
|
void |
savePublicEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
|
void |
savePublicEvent(java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
Save event or task by given group calendar id |
void |
saveSharedCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
Calendar calendar)
|
void |
saveSharedCalendar(java.lang.String username,
Calendar calendar)
The method save all informations about shared calendar, it will be updated original calendar |
void |
saveUserCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
Calendar calendar,
boolean isNew)
|
void |
saveUserCalendar(java.lang.String username,
Calendar calendar,
boolean isNew)
The method saves private calendar informations in to data base |
void |
saveUserEvent(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
|
EventPageList |
searchEvent(java.lang.String username,
EventQuery query,
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(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
|
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(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.lang.String calendarId,
java.util.List<java.lang.String> receiverUsers)
|
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 |
start()
|
void |
stop()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ICALENDAR
public static final java.lang.String EXPORTEDCSV
protected java.util.List<CalendarUpdateEventListener> listeners_
| Constructor Detail |
|---|
public CalendarServiceImpl(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.RepositoryService reposervice)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public java.util.List<CalendarCategory> getCategories(java.lang.String username)
throws java.lang.Exception
getCategories in interface CalendarServiceusername - current user name
java.lang.ExceptionCalendarCategory
public java.util.List<GroupCalendarData> getCalendarCategories(java.lang.String username,
boolean isShowAll)
throws java.lang.Exception
getCalendarCategories in interface CalendarServiceusername - 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
public CalendarCategory getCalendarCategory(java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
getCalendarCategory in interface CalendarServiceusername - current user namecalendarCategoryId - id of calendar category
java.lang.ExceptionCalendarCategory
public void saveCalendarCategory(java.lang.String username,
CalendarCategory calendarCategory,
boolean isNew)
throws java.lang.Exception
saveCalendarCategory in interface CalendarServiceusername - 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
public CalendarCategory removeCalendarCategory(java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
removeCalendarCategory in interface CalendarServiceusername - current user name(or user id)calendarCategoryId - given category id
java.lang.ExceptionCalendarCategory
public Calendar getUserCalendar(java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
getUserCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar id
java.lang.ExceptionCalendar
public java.util.List<Calendar> getUserCalendars(java.lang.String username,
boolean isShowAll)
throws java.lang.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
java.lang.ExceptionCalendar
public java.util.List<Calendar> getUserCalendarsByCategory(java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
getUserCalendarsByCategory in interface CalendarServiceusername - current user name(or user id)calendarCategoryId - given calendar category id
java.lang.ExceptionCalendar
public void saveUserCalendar(java.lang.String username,
Calendar calendar,
boolean isNew)
throws java.lang.Exception
saveUserCalendar in interface CalendarServiceusername - current user name(or user id)calendar - object contains informationsisNew - Boolean value to know add new calendar or update informations only
java.lang.Exception
public Calendar removeUserCalendar(java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
removeUserCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar id
java.lang.Exception
public Calendar getGroupCalendar(java.lang.String calendarId)
throws java.lang.Exception
getGroupCalendar in interface CalendarServicecalendarId - given calendar id
java.lang.ExceptionCalendar
public java.util.List<GroupCalendarData> getGroupCalendars(java.lang.String[] groupIds,
boolean isShowAll,
java.lang.String username)
throws java.lang.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)
java.lang.ExceptionGroupCalendarData
public void savePublicCalendar(Calendar calendar,
boolean isNew,
java.lang.String username)
throws java.lang.Exception
savePublicCalendar in interface CalendarServiceisNew - Boolean value will be checked is it add new or update informations onlyusername - current user name(or user id)
java.lang.Exception
public Calendar removePublicCalendar(java.lang.String calendarId)
throws java.lang.Exception
removePublicCalendar in interface CalendarServicejava.lang.Exception
public java.util.List<EventCategory> getEventCategories(java.lang.String username)
throws java.lang.Exception
getEventCategories in interface CalendarServiceusername - current user name(or user id)
java.lang.ExceptionEventCategory
public void saveEventCategory(java.lang.String username,
EventCategory eventCategory,
java.lang.String[] values,
boolean isNew)
throws java.lang.Exception
saveEventCategory in interface CalendarServiceusername - current user name(or user id)
java.lang.Exception
public void removeEventCategory(java.lang.String username,
java.lang.String eventCategoryName)
throws java.lang.Exception
removeEventCategory in interface CalendarServiceusername - current user name(or user id)eventCategoryName - The unique name of category
java.lang.Exception
public java.util.List<CalendarEvent> getUserEventByCalendar(java.lang.String username,
java.util.List<java.lang.String> calendarIds)
throws java.lang.Exception
getUserEventByCalendar in interface CalendarServiceusername - current user name(or user id)calendarIds - given calendar IDs
java.lang.Exception
public java.util.List<CalendarEvent> getUserEvents(java.lang.String username,
EventQuery eventQuery)
throws java.lang.Exception
getUserEvents in interface CalendarServiceusername - current user name(or user id)eventQuery - given conditions
java.lang.ExceptionCalendarEvent
public CalendarEvent getEvent(java.lang.String username,
java.lang.String eventId)
throws java.lang.Exception
CalendarService
getEvent in interface CalendarServiceeventId - id of event to get
java.lang.Exception
public void saveUserEvent(java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
saveUserEvent in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar idevent - object contains informationsisNew - boolean value, is update or add new event
java.lang.Exception
public CalendarEvent removeUserEvent(java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
removeUserEvent in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar ideventId - given event id
java.lang.Exception
public CalendarEvent getGroupEvent(java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
getGroupEvent in interface CalendarServicecalendarId - given calendar ideventId - given event id
java.lang.ExceptionCalendarEvent
public java.util.List<CalendarEvent> getGroupEventByCalendar(java.util.List<java.lang.String> calendarIds)
throws java.lang.Exception
getGroupEventByCalendar in interface CalendarServicecalendarIds - public calendar IDs
java.lang.ExceptionCalendarEvent
public java.util.List<CalendarEvent> getPublicEvents(EventQuery eventQuery)
throws java.lang.Exception
getPublicEvents in interface CalendarServiceeventQuery - object contains given conditions
java.lang.ExceptionCalendarEvent
public void savePublicEvent(java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
savePublicEvent in interface CalendarServicecalendarId - given calendar idevent - object contains information about eventisNew - boolean value to check update or add new event
java.lang.Exception
public CalendarEvent removePublicEvent(java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
removePublicEvent in interface CalendarServicecalendarId - given calendar ideventId - given event or task id
java.lang.Exceptionpublic CalendarImportExport getCalendarImportExports(java.lang.String type)
getCalendarImportExports in interface CalendarServicetype - type of import, export, it supports two types, ICS and CSV
CalendarImportExport
public java.lang.String[] getExportImportType()
throws java.lang.Exception
getExportImportType in interface CalendarServicejava.lang.Exception
public void saveCalendarSetting(java.lang.String username,
CalendarSetting setting)
throws java.lang.Exception
saveCalendarSetting in interface CalendarServiceusername - current user name(or user id)setting - Object contains informations about setting
java.lang.Exception
public CalendarSetting getCalendarSetting(java.lang.String username)
throws java.lang.Exception
getCalendarSetting in interface CalendarServiceusername - current user name(or user id)
java.lang.ExceptionCalendarSetting
public int generateRss(java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
throws java.lang.Exception
generateRss in interface CalendarServiceusername - current user name(or user id)rssData - object contains informations about the RSS feed
java.lang.ExceptionRssData
public int generateCalDav(java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
throws java.lang.Exception
generateCalDav in interface CalendarServiceusername - current user name(or user id)calendars - List calendar IDs will look up and publicrssData - Object contains informations about RSS feed
java.lang.Exception
public java.util.List<FeedData> getFeeds(java.lang.String username)
throws java.lang.Exception
getFeeds in interface CalendarServiceusername - current user name(or user id)
java.lang.ExceptionFeedData
public javax.jcr.Node getRssHome(java.lang.String username)
throws java.lang.Exception
getRssHome in interface CalendarServiceusername - current user name(or user id)
java.lang.Exception
public EventPageList searchEvent(java.lang.String username,
EventQuery query,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
searchEvent in interface CalendarServiceusername - current user name(or user id)query - object contains conditions to querypublicCalendarIds - public calendar IDs
java.lang.ExceptionEventPageList
public EventCategory getEventCategory(java.lang.String username,
java.lang.String eventCategoryId)
throws java.lang.Exception
getEventCategory in interface CalendarServiceusername - current user name(or user id)eventCategoryId - given event category id
java.lang.ExceptionEventCategory
public java.util.Map<java.lang.Integer,java.lang.String> searchHightLightEvent(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
searchHightLightEvent in interface CalendarServiceusername - current user name(or user id)eventQuery - object contains conditions to querypublicCalendarIds - publicCalendarIds public calendar IDs
java.lang.Exception
public void shareCalendar(java.lang.String username,
java.lang.String calendarId,
java.util.List<java.lang.String> receiverUsers)
throws java.lang.Exception
shareCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar idreceiverUsers - List receive user user name or id
java.lang.Exception
public GroupCalendarData getSharedCalendars(java.lang.String username,
boolean isShowAll)
throws java.lang.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
java.lang.ExceptionGroupCalendarData
public java.util.List<CalendarEvent> getEvents(java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
getEvents in interface CalendarServiceusername - current user name(or user id)eventQuery - given conditionspublicCalendarIds - public calendar IDs
java.lang.ExceptionCalendarEvent
public void removeSharedCalendar(java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
removeSharedCalendar in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar id
java.lang.Exception
public void saveEventToSharedCalendar(java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
saveEventToSharedCalendar in interface CalendarServiceusername - 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
public java.util.Map<java.lang.String,java.lang.String> checkFreeBusy(EventQuery eventQuery)
throws java.lang.Exception
checkFreeBusy in interface CalendarServiceeventQuery - The query object it contains query statement to look up the data
java.lang.ExceptionEventQuery
public void saveSharedCalendar(java.lang.String username,
Calendar calendar)
throws java.lang.Exception
saveSharedCalendar in interface CalendarServiceusername - current user name(or user id)calendar - the object contains informations
java.lang.Exception
public void removeSharedEvent(java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
removeSharedEvent in interface CalendarServiceusername - current user name(or user id)calendarId - given calendar ideventId - given event id
java.lang.Exception
public void moveEvent(java.lang.String formCalendar,
java.lang.String toCalendar,
java.lang.String fromType,
java.lang.String toType,
java.util.List<CalendarEvent> calEvents,
java.lang.String username)
throws java.lang.Exception
moveEvent in interface CalendarServiceformCalendar - the source calendar idtoCalendar - destination calendar idfromType - type of source calendartoType - type of destination calendarcalEvents - List of object contains informationsusername - current user name(or user id)
java.lang.Exception
public 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
confirmInvitation in interface CalendarServicefromUserId - 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
public 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
confirmInvitation in interface CalendarServicejava.lang.Exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startable
public void addListenerPlugin(CalendarUpdateEventListener listener)
throws java.lang.Exception
addListenerPlugin in interface CalendarServicejava.lang.Exception
public java.util.Map<java.lang.String,java.lang.String> checkFreeBusy(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
EventQuery eventQuery)
throws java.lang.Exception
checkFreeBusy in interface CalendarServiceLegacyjava.lang.Exception
public int generateCalDav(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
throws java.lang.Exception
java.lang.Exception
public int generateRss(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
RssData rssData)
throws java.lang.Exception
generateRss in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<GroupCalendarData> getCalendarCategories(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
boolean isShowAll)
throws java.lang.Exception
getCalendarCategories in interface CalendarServiceLegacyjava.lang.Exception
public CalendarCategory getCalendarCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
getCalendarCategory in interface CalendarServiceLegacyjava.lang.Exception
public CalendarSetting getCalendarSetting(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username)
throws java.lang.Exception
getCalendarSetting in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<CalendarCategory> getCategories(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username)
throws java.lang.Exception
getCategories in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<EventCategory> getEventCategories(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username)
throws java.lang.Exception
getEventCategories in interface CalendarServiceLegacyjava.lang.Exception
public EventCategory getEventCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String eventCategoryId)
throws java.lang.Exception
getEventCategory in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<CalendarEvent> getEvents(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
getEvents in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<FeedData> getFeeds(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username)
throws java.lang.Exception
getFeeds in interface CalendarServiceLegacyjava.lang.Exception
public Calendar getGroupCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId)
throws java.lang.Exception
getGroupCalendar in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<GroupCalendarData> getGroupCalendars(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String[] groupIds,
boolean isShowAll,
java.lang.String username)
throws java.lang.Exception
getGroupCalendars in interface CalendarServiceLegacyjava.lang.Exception
public CalendarEvent getGroupEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
getGroupEvent in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<CalendarEvent> getGroupEventByCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.util.List<java.lang.String> calendarIds)
throws java.lang.Exception
getGroupEventByCalendar in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<CalendarEvent> getPublicEvents(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
EventQuery eventQuery)
throws java.lang.Exception
getPublicEvents in interface CalendarServiceLegacyjava.lang.Exception
public javax.jcr.Node getRssHome(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username)
throws java.lang.Exception
getRssHome in interface CalendarServiceLegacyjava.lang.Exception
public GroupCalendarData getSharedCalendars(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
boolean isShowAll)
throws java.lang.Exception
getSharedCalendars in interface CalendarServiceLegacyjava.lang.Exception
public Calendar getUserCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
getUserCalendar in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<Calendar> getUserCalendars(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
boolean isShowAll)
throws java.lang.Exception
getUserCalendars in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<Calendar> getUserCalendarsByCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
getUserCalendarsByCategory in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<CalendarEvent> getUserEventByCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.util.List<java.lang.String> calendarIds)
throws java.lang.Exception
getUserEventByCalendar in interface CalendarServiceLegacyjava.lang.Exception
public java.util.List<CalendarEvent> getUserEvents(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery)
throws java.lang.Exception
getUserEvents in interface CalendarServiceLegacyjava.lang.Exception
public void moveEvent(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
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
moveEvent in interface CalendarServiceLegacyjava.lang.Exception
public CalendarCategory removeCalendarCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarCategoryId)
throws java.lang.Exception
removeCalendarCategory in interface CalendarServiceLegacyjava.lang.Exception
public void removeEventCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String eventCategoryName)
throws java.lang.Exception
removeEventCategory in interface CalendarServiceLegacyjava.lang.Exception
public Calendar removePublicCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId)
throws java.lang.Exception
removePublicCalendar in interface CalendarServiceLegacyjava.lang.Exception
public CalendarEvent removePublicEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
removePublicEvent in interface CalendarServiceLegacyjava.lang.Exception
public void removeSharedCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSesssion,
java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
removeSharedCalendar in interface CalendarServiceLegacyjava.lang.Exception
public void removeSharedEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
removeSharedEvent in interface CalendarServiceLegacyjava.lang.Exception
public Calendar removeUserCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarId)
throws java.lang.Exception
removeUserCalendar in interface CalendarServiceLegacyjava.lang.Exception
public CalendarEvent removeUserEvent(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarId,
java.lang.String eventId)
throws java.lang.Exception
removeUserEvent in interface CalendarServiceLegacyjava.lang.Exception
public void saveCalendarCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
CalendarCategory calendarCategory,
boolean isNew)
throws java.lang.Exception
saveCalendarCategory in interface CalendarServiceLegacyjava.lang.Exception
public void saveCalendarSetting(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
CalendarSetting setting)
throws java.lang.Exception
saveCalendarSetting in interface CalendarServiceLegacyjava.lang.Exception
public void saveEventCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventCategory eventCategory,
java.lang.String[] values,
boolean isNew)
throws java.lang.Exception
saveEventCategory in interface CalendarServiceLegacyjava.lang.Exception
public void saveEventToSharedCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
saveEventToSharedCalendar in interface CalendarServiceLegacyjava.lang.Exception
public void savePublicCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
Calendar calendar,
boolean isNew,
java.lang.String username)
throws java.lang.Exception
savePublicCalendar in interface CalendarServiceLegacyjava.lang.Exception
public void savePublicEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
savePublicEvent in interface CalendarServiceLegacyjava.lang.Exception
public void saveSharedCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
Calendar calendar)
throws java.lang.Exception
saveSharedCalendar in interface CalendarServiceLegacyjava.lang.Exception
public void saveUserCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
Calendar calendar,
boolean isNew)
throws java.lang.Exception
saveUserCalendar in interface CalendarServiceLegacyjava.lang.Exception
public void saveUserEvent(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
java.lang.String calendarId,
CalendarEvent event,
boolean isNew)
throws java.lang.Exception
saveUserEvent in interface CalendarServiceLegacyjava.lang.Exception
public EventPageList searchEvent(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
searchEvent in interface CalendarServiceLegacyjava.lang.Exception
public java.util.Map<java.lang.Integer,java.lang.String> searchHightLightEvent(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
java.lang.String username,
EventQuery eventQuery,
java.lang.String[] publicCalendarIds)
throws java.lang.Exception
searchHightLightEvent in interface CalendarServiceLegacyjava.lang.Exception
public void shareCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
java.lang.String username,
java.lang.String calendarId,
java.util.List<java.lang.String> receiverUsers)
throws java.lang.Exception
shareCalendar in interface CalendarServiceLegacyjava.lang.Exception
public void updateCalDav(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp)
throws java.lang.Exception
CalendarService
updateCalDav in interface CalendarServicecalendarId - calendar id
Added from 1.3
java.lang.Exception
public void updateCalDav(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp,
int number)
throws java.lang.Exception
updateCalDav in interface CalendarServicejava.lang.Exception
public void updateRss(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp)
throws java.lang.Exception
CalendarService
updateRss in interface CalendarServicecalendarId - calendar id
Added from 1.3
java.lang.Exception
public void updateRss(java.lang.String usename,
java.lang.String calendarId,
CalendarImportExport imp,
int number)
throws java.lang.Exception
updateRss in interface CalendarServicejava.lang.Exception
public int getTypeOfCalendar(java.lang.String userName,
java.lang.String calendarId)
throws java.lang.Exception
getTypeOfCalendar in interface CalendarServicejava.lang.Exception
public int generateCalDav(java.lang.String username,
java.util.List<java.lang.String> calendarIds,
RssData rssData)
throws java.lang.Exception
CalendarService
generateCalDav in interface CalendarServicegenerateCalDav in interface CalendarServiceLegacyusername - current user name(or user id)rssData - Object contains informations about RSS feed
java.lang.Exception
public int generateRss(java.lang.String username,
java.util.List<java.lang.String> calendarIds,
RssData rssData)
throws java.lang.Exception
CalendarService
generateRss in interface CalendarServicegenerateRss in interface CalendarServiceLegacyusername - current user name(or user id)rssData - object contains informations about the RSS feed
java.lang.ExceptionRssData
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||