org.exoplatform.calendar.service.impl
Class CalendarServiceImpl

java.lang.Object
  extended by org.exoplatform.calendar.service.impl.CalendarServiceImpl
All Implemented Interfaces:
CalendarService, CalendarServiceLegacy, org.picocontainer.Startable

public class CalendarServiceImpl
extends java.lang.Object
implements CalendarService, org.picocontainer.Startable

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

ICALENDAR

public static final java.lang.String ICALENDAR

EXPORTEDCSV

public static final java.lang.String EXPORTEDCSV

listeners_

protected java.util.List<CalendarUpdateEventListener> listeners_
Constructor Detail

CalendarServiceImpl

public CalendarServiceImpl(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
                           org.exoplatform.services.jcr.RepositoryService reposervice)
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getCategories

public java.util.List<CalendarCategory> getCategories(java.lang.String username)
                                               throws java.lang.Exception
The method gets all calendar category of current user from data base

Specified by:
getCategories in interface CalendarService
Parameters:
username - current user name
Returns:
List of CalendarCategory object
Throws:
java.lang.Exception
See Also:
CalendarCategory

getCalendarCategories

public java.util.List<GroupCalendarData> getCalendarCategories(java.lang.String username,
                                                               boolean isShowAll)
                                                        throws java.lang.Exception
The method gets all groups of private calendar, and each GroupCalendar contains List of Calendar object

Specified by:
getCalendarCategories in interface CalendarService
Parameters:
username - current user name
isShowAll - 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
Returns:
List List of GroupCalendarData
Throws:
java.lang.Exception
See Also:
GroupCalendarData

getCalendarCategory

public CalendarCategory getCalendarCategory(java.lang.String username,
                                            java.lang.String calendarCategoryId)
                                     throws java.lang.Exception
The method gets the calendar category by given id

Specified by:
getCalendarCategory in interface CalendarService
Parameters:
username - current user name
calendarCategoryId - id of calendar category
Returns:
CalendarCategory
Throws:
java.lang.Exception
See Also:
CalendarCategory

saveCalendarCategory

public void saveCalendarCategory(java.lang.String username,
                                 CalendarCategory calendarCategory,
                                 boolean isNew)
                          throws java.lang.Exception
Save details of category for a user

Specified by:
saveCalendarCategory in interface CalendarService
Parameters:
username - current user name(or user id)
calendarCategory - the object that contains category details
isNew - the boolean value to point out that add new category or update
Throws:
java.lang.Exception

removeCalendarCategory

public CalendarCategory removeCalendarCategory(java.lang.String username,
                                               java.lang.String calendarCategoryId)
                                        throws java.lang.Exception
The method used for removing one category by id

Specified by:
removeCalendarCategory in interface CalendarService
Parameters:
username - current user name(or user id)
calendarCategoryId - given category id
Returns:
Throws:
java.lang.Exception
See Also:
CalendarCategory

getUserCalendar

public Calendar getUserCalendar(java.lang.String username,
                                java.lang.String calendarId)
                         throws java.lang.Exception
The method get private calendar by given calendarId, and all calendar related to this category will be removed

Specified by:
getUserCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
Returns:
Calendar object returned contains details of a calendar
Throws:
java.lang.Exception
See Also:
Calendar

getUserCalendars

public java.util.List<Calendar> getUserCalendars(java.lang.String username,
                                                 boolean isShowAll)
                                          throws java.lang.Exception
The method queries all private calendars of current user

Specified by:
getUserCalendars in interface CalendarService
Parameters:
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
Returns:
List of calendar object
Throws:
java.lang.Exception
See Also:
Calendar

getUserCalendarsByCategory

public java.util.List<Calendar> getUserCalendarsByCategory(java.lang.String username,
                                                           java.lang.String calendarCategoryId)
                                                    throws java.lang.Exception
The method look up all private calendars by given category id

Specified by:
getUserCalendarsByCategory in interface CalendarService
Parameters:
username - current user name(or user id)
calendarCategoryId - given calendar category id
Returns:
List calendar object
Throws:
java.lang.Exception
See Also:
Calendar

saveUserCalendar

public void saveUserCalendar(java.lang.String username,
                             Calendar calendar,
                             boolean isNew)
                      throws java.lang.Exception
The method saves private calendar informations in to data base

Specified by:
saveUserCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendar - object contains informations
isNew - Boolean value to know add new calendar or update informations only
Throws:
java.lang.Exception

removeUserCalendar

public Calendar removeUserCalendar(java.lang.String username,
                                   java.lang.String calendarId)
                            throws java.lang.Exception
Remove private calendar by given id, all events and tasks belong to this calendar will be removed

Specified by:
removeUserCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
Returns:
Throws:
java.lang.Exception

getGroupCalendar

public Calendar getGroupCalendar(java.lang.String calendarId)
                          throws java.lang.Exception
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

Specified by:
getGroupCalendar in interface CalendarService
Parameters:
calendarId - given calendar id
Returns:
Calendar object contains informations
Throws:
java.lang.Exception
See Also:
Calendar

getGroupCalendars

public java.util.List<GroupCalendarData> getGroupCalendars(java.lang.String[] groupIds,
                                                           boolean isShowAll,
                                                           java.lang.String username)
                                                    throws java.lang.Exception
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

Specified by:
getGroupCalendars in interface CalendarService
Parameters:
groupIds - The group IDs that current user belong
isShowAll - Gets all calendar or use setting from calendar setting
username - current user name(or user id)
Returns:
List of GroupCalendarData and each GroupCalendarData contains List of calendar object too
Throws:
java.lang.Exception
See Also:
GroupCalendarData

savePublicCalendar

public void savePublicCalendar(Calendar calendar,
                               boolean isNew,
                               java.lang.String username)
                        throws java.lang.Exception
The method save calendar to public area (group calendar)

Specified by:
savePublicCalendar in interface CalendarService
isNew - Boolean value will be checked is it add new or update informations only
username - current user name(or user id)
Throws:
java.lang.Exception

removePublicCalendar

public Calendar removePublicCalendar(java.lang.String calendarId)
                              throws java.lang.Exception
Remove the group calendar form data base, every events, tasks inside this calendar will be removed too

Specified by:
removePublicCalendar in interface CalendarService
Returns:
Throws:
java.lang.Exception

getEventCategories

public java.util.List<EventCategory> getEventCategories(java.lang.String username)
                                                 throws java.lang.Exception
The method gets all categories of event

Specified by:
getEventCategories in interface CalendarService
Parameters:
username - current user name(or user id)
Returns:
List event category object
Throws:
java.lang.Exception
See Also:
EventCategory

saveEventCategory

public void saveEventCategory(java.lang.String username,
                              EventCategory eventCategory,
                              java.lang.String[] values,
                              boolean isNew)
                       throws java.lang.Exception
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

Specified by:
saveEventCategory in interface CalendarService
Parameters:
username - current user name(or user id)
Throws:
java.lang.Exception

removeEventCategory

public void removeEventCategory(java.lang.String username,
                                java.lang.String eventCategoryName)
                         throws java.lang.Exception
Remove event category, all events and tasks belong to this category will be destroyed

Specified by:
removeEventCategory in interface CalendarService
Parameters:
username - current user name(or user id)
eventCategoryName - The unique name of category
Throws:
java.lang.Exception

getUserEventByCalendar

public java.util.List<CalendarEvent> getUserEventByCalendar(java.lang.String username,
                                                            java.util.List<java.lang.String> calendarIds)
                                                     throws java.lang.Exception
The method gets list events and tasks of given private calendar IDs

Specified by:
getUserEventByCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendarIds - given calendar IDs
Returns:
List of events and tasks
Throws:
java.lang.Exception

getUserEvents

public java.util.List<CalendarEvent> getUserEvents(java.lang.String username,
                                                   EventQuery eventQuery)
                                            throws java.lang.Exception
The method gets all events and tasks by given conditions in event query

Specified by:
getUserEvents in interface CalendarService
Parameters:
username - current user name(or user id)
eventQuery - given conditions
Returns:
List of CalendarEvent object (events and tasks)
Throws:
java.lang.Exception
See Also:
CalendarEvent

getEvent

public CalendarEvent getEvent(java.lang.String username,
                              java.lang.String eventId)
                       throws java.lang.Exception
Description copied from interface: CalendarService
Get a personal event for a given owner

Specified by:
getEvent in interface CalendarService
eventId - id of event to get
Returns:
CalendarEvent in the personal events of owner
Throws:
java.lang.Exception

saveUserEvent

public void saveUserEvent(java.lang.String username,
                          java.lang.String calendarId,
                          CalendarEvent event,
                          boolean isNew)
                   throws java.lang.Exception
The method save information to an event or a task by given private calendar id to data

Specified by:
saveUserEvent in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
event - object contains informations
isNew - boolean value, is update or add new event
Throws:
java.lang.Exception

removeUserEvent

public CalendarEvent removeUserEvent(java.lang.String username,
                                     java.lang.String calendarId,
                                     java.lang.String eventId)
                              throws java.lang.Exception
Remove given event or task in private calendar with calendar id, all attachments and reminders will be removed

Specified by:
removeUserEvent in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
eventId - given event id
Returns:
Throws:
java.lang.Exception

getGroupEvent

public CalendarEvent getGroupEvent(java.lang.String calendarId,
                                   java.lang.String eventId)
                            throws java.lang.Exception
The method gets event or task form group calendar by given calendar id

Specified by:
getGroupEvent in interface CalendarService
Parameters:
calendarId - given calendar id
eventId - given event id
Returns:
CalendarEvent object contains informations and attachments, reminders
Throws:
java.lang.Exception
See Also:
CalendarEvent

getGroupEventByCalendar

public java.util.List<CalendarEvent> getGroupEventByCalendar(java.util.List<java.lang.String> calendarIds)
                                                      throws java.lang.Exception
The method gets events and tasks by given public calendar IDs

Specified by:
getGroupEventByCalendar in interface CalendarService
Parameters:
calendarIds - public calendar IDs
Returns:
List calendar event object
Throws:
java.lang.Exception
See Also:
CalendarEvent

getPublicEvents

public java.util.List<CalendarEvent> getPublicEvents(EventQuery eventQuery)
                                              throws java.lang.Exception
The method gets events and tasks by given event query

Specified by:
getPublicEvents in interface CalendarService
Parameters:
eventQuery - object contains given conditions
Returns:
List calendar event object
Throws:
java.lang.Exception
See Also:
CalendarEvent

savePublicEvent

public void savePublicEvent(java.lang.String calendarId,
                            CalendarEvent event,
                            boolean isNew)
                     throws java.lang.Exception
Save event or task by given group calendar id

Specified by:
savePublicEvent in interface CalendarService
Parameters:
calendarId - given calendar id
event - object contains information about event
isNew - boolean value to check update or add new event
Throws:
java.lang.Exception

removePublicEvent

public CalendarEvent removePublicEvent(java.lang.String calendarId,
                                       java.lang.String eventId)
                                throws java.lang.Exception
Remove event or task, all attachments and reminders item will be removed

Specified by:
removePublicEvent in interface CalendarService
Parameters:
calendarId - given calendar id
eventId - given event or task id
Returns:
Throws:
java.lang.Exception

getCalendarImportExports

public CalendarImportExport getCalendarImportExports(java.lang.String type)
The method gets Import/Export implement class to import or export ICS,CSV

Specified by:
getCalendarImportExports in interface CalendarService
Parameters:
type - type of import, export, it supports two types, ICS and CSV
Returns:
CalendarImportExport
See Also:
CalendarImportExport

getExportImportType

public java.lang.String[] getExportImportType()
                                       throws java.lang.Exception
The method gets types of data will be imported and exported

Specified by:
getExportImportType in interface CalendarService
Returns:
types of import/export
Throws:
java.lang.Exception

saveCalendarSetting

public void saveCalendarSetting(java.lang.String username,
                                CalendarSetting setting)
                         throws java.lang.Exception
This method stores individual setting of each user, with setting you can configuration many things like Default view date, time formating, time interval

Specified by:
saveCalendarSetting in interface CalendarService
Parameters:
username - current user name(or user id)
setting - Object contains informations about setting
Throws:
java.lang.Exception

getCalendarSetting

public CalendarSetting getCalendarSetting(java.lang.String username)
                                   throws java.lang.Exception
This method gets informations of current user's setting

Specified by:
getCalendarSetting in interface CalendarService
Parameters:
username - current user name(or user id)
Returns:
Throws:
java.lang.Exception
See Also:
CalendarSetting

generateRss

public int generateRss(java.lang.String username,
                       java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
                       RssData rssData)
                throws java.lang.Exception
The method uses to make URL to contains links to subscriber calendar follows RSS stand

Specified by:
generateRss in interface CalendarService
Parameters:
username - current user name(or user id)
rssData - object contains informations about the RSS feed
Returns:
Throws:
java.lang.Exception
See Also:
RssData

generateCalDav

public int generateCalDav(java.lang.String username,
                          java.util.LinkedHashMap<java.lang.String,Calendar> calendars,
                          RssData rssData)
                   throws java.lang.Exception
The method generate links to access calendar throw WEBDAV, it will require user name and password when access

Specified by:
generateCalDav in interface CalendarService
Parameters:
username - current user name(or user id)
calendars - List calendar IDs will look up and public
rssData - Object contains informations about RSS feed
Returns:
Throws:
java.lang.Exception

getFeeds

public java.util.List<FeedData> getFeeds(java.lang.String username)
                                  throws java.lang.Exception
It gets data form server and show the URL to view contents of RSS

Specified by:
getFeeds in interface CalendarService
Parameters:
username - current user name(or user id)
Returns:
List of FeedData
Throws:
java.lang.Exception
See Also:
FeedData

getRssHome

public javax.jcr.Node getRssHome(java.lang.String username)
                          throws java.lang.Exception
The method return root of RSS data store area

Specified by:
getRssHome in interface CalendarService
Parameters:
username - current user name(or user id)
Returns:
Throws:
java.lang.Exception

searchEvent

public EventPageList searchEvent(java.lang.String username,
                                 EventQuery query,
                                 java.lang.String[] publicCalendarIds)
                          throws java.lang.Exception
The method query events and tasks form given conditions, the conditions know by set value for eventquery

Specified by:
searchEvent in interface CalendarService
Parameters:
username - current user name(or user id)
query - object contains conditions to query
publicCalendarIds - public calendar IDs
Returns:
Throws:
java.lang.Exception
See Also:
EventPageList

getEventCategory

public EventCategory getEventCategory(java.lang.String username,
                                      java.lang.String eventCategoryId)
                               throws java.lang.Exception
The method gets category of event by given id

Specified by:
getEventCategory in interface CalendarService
Parameters:
username - current user name(or user id)
eventCategoryId - given event category id
Returns:
event category object contents informations
Throws:
java.lang.Exception
See Also:
EventCategory

searchHightLightEvent

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
The method query all events, tasks and mark to highlight the date have events or tasks

Specified by:
searchHightLightEvent in interface CalendarService
Parameters:
username - current user name(or user id)
eventQuery - object contains conditions to query
publicCalendarIds - publicCalendarIds public calendar IDs
Returns:
Throws:
java.lang.Exception

shareCalendar

public void shareCalendar(java.lang.String username,
                          java.lang.String calendarId,
                          java.util.List<java.lang.String> receiverUsers)
                   throws java.lang.Exception
The method share the private calendar to other user, it can share for one or many users

Specified by:
shareCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
receiverUsers - List receive user user name or id
Throws:
java.lang.Exception

getSharedCalendars

public GroupCalendarData getSharedCalendars(java.lang.String username,
                                            boolean isShowAll)
                                     throws java.lang.Exception
The method gets all shared calendars of the current user

Specified by:
getSharedCalendars in interface CalendarService
Parameters:
username - current user name(or user id)
isShowAll - boolean value to point out that it will get all calendars or use user's clendar setting
Returns:
Throws:
java.lang.Exception
See Also:
GroupCalendarData

getEvents

public java.util.List<CalendarEvent> getEvents(java.lang.String username,
                                               EventQuery eventQuery,
                                               java.lang.String[] publicCalendarIds)
                                        throws java.lang.Exception
The method selects all the events and tasks by given conditions, it includes events of private, public and share calendars

Specified by:
getEvents in interface CalendarService
Parameters:
username - current user name(or user id)
eventQuery - given conditions
publicCalendarIds - public calendar IDs
Returns:
Throws:
java.lang.Exception
See Also:
CalendarEvent

removeSharedCalendar

public void removeSharedCalendar(java.lang.String username,
                                 java.lang.String calendarId)
                          throws java.lang.Exception
Removed shared calendar, but not the original calendar

Specified by:
removeSharedCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
Throws:
java.lang.Exception

saveEventToSharedCalendar

public void saveEventToSharedCalendar(java.lang.String username,
                                      java.lang.String calendarId,
                                      CalendarEvent event,
                                      boolean isNew)
                               throws java.lang.Exception
Add event to shared calendar, mean add event to original calendar too

Specified by:
saveEventToSharedCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
event - object contains informations about event
isNew - boolean value to check that add new or update event
Throws:
java.lang.Exception

checkFreeBusy

public java.util.Map<java.lang.String,java.lang.String> checkFreeBusy(EventQuery eventQuery)
                                                               throws java.lang.Exception
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

Specified by:
checkFreeBusy in interface CalendarService
Parameters:
eventQuery - The query object it contains query statement to look up the data
Returns:
Map data with key is user name (or user id), and value is the a pair of from time and to time by miliseconds and sperate by coma(,)
Throws:
java.lang.Exception
See Also:
EventQuery

saveSharedCalendar

public void saveSharedCalendar(java.lang.String username,
                               Calendar calendar)
                        throws java.lang.Exception
The method save all informations about shared calendar, it will be updated original calendar

Specified by:
saveSharedCalendar in interface CalendarService
Parameters:
username - current user name(or user id)
calendar - the object contains informations
Throws:
java.lang.Exception

removeSharedEvent

public void removeSharedEvent(java.lang.String username,
                              java.lang.String calendarId,
                              java.lang.String eventId)
                       throws java.lang.Exception
The method removes the events or tasks form shared calendar, original item will be removed

Specified by:
removeSharedEvent in interface CalendarService
Parameters:
username - current user name(or user id)
calendarId - given calendar id
eventId - given event id
Throws:
java.lang.Exception

moveEvent

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
The method move and save events form private calendars share calendars public calendars each other

Specified by:
moveEvent in interface CalendarService
Parameters:
formCalendar - the source calendar id
toCalendar - destination calendar id
fromType - type of source calendar
toType - type of destination calendar
calEvents - List of object contains informations
username - current user name(or user id)
Throws:
java.lang.Exception

confirmInvitation

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
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

Specified by:
confirmInvitation in interface CalendarService
Parameters:
fromUserId - id or user name of the user, who make the invitation
toUserId - receiver user's id or name
calType - type of calendar contains the event
calendarId - given calendar id
eventId - given event id
answer - The answer of the receive user
Throws:
java.lang.Exception

confirmInvitation

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

Specified by:
confirmInvitation in interface CalendarService
Throws:
java.lang.Exception

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

addListenerPlugin

public void addListenerPlugin(CalendarUpdateEventListener listener)
                       throws java.lang.Exception

Specified by:
addListenerPlugin in interface CalendarService
Throws:
java.lang.Exception

checkFreeBusy

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

Specified by:
checkFreeBusy in interface CalendarServiceLegacy
Throws:
java.lang.Exception

generateCalDav

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

Throws:
java.lang.Exception

generateRss

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

Specified by:
generateRss in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getCalendarCategories

public java.util.List<GroupCalendarData> getCalendarCategories(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                                               java.lang.String username,
                                                               boolean isShowAll)
                                                        throws java.lang.Exception

Specified by:
getCalendarCategories in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getCalendarCategory

public CalendarCategory getCalendarCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                            java.lang.String username,
                                            java.lang.String calendarCategoryId)
                                     throws java.lang.Exception

Specified by:
getCalendarCategory in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getCalendarSetting

public CalendarSetting getCalendarSetting(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                          java.lang.String username)
                                   throws java.lang.Exception

Specified by:
getCalendarSetting in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getCategories

public java.util.List<CalendarCategory> getCategories(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                                      java.lang.String username)
                                               throws java.lang.Exception

Specified by:
getCategories in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getEventCategories

public java.util.List<EventCategory> getEventCategories(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                                        java.lang.String username)
                                                 throws java.lang.Exception

Specified by:
getEventCategories in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getEventCategory

public EventCategory getEventCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                      java.lang.String username,
                                      java.lang.String eventCategoryId)
                               throws java.lang.Exception

Specified by:
getEventCategory in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getEvents

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

Specified by:
getEvents in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getFeeds

public java.util.List<FeedData> getFeeds(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                         java.lang.String username)
                                  throws java.lang.Exception

Specified by:
getFeeds in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getGroupCalendar

public Calendar getGroupCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                 java.lang.String calendarId)
                          throws java.lang.Exception

Specified by:
getGroupCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getGroupCalendars

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

Specified by:
getGroupCalendars in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getGroupEvent

public CalendarEvent getGroupEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                   java.lang.String calendarId,
                                   java.lang.String eventId)
                            throws java.lang.Exception

Specified by:
getGroupEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getGroupEventByCalendar

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

Specified by:
getGroupEventByCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getPublicEvents

public java.util.List<CalendarEvent> getPublicEvents(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                                     EventQuery eventQuery)
                                              throws java.lang.Exception

Specified by:
getPublicEvents in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getRssHome

public javax.jcr.Node getRssHome(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                 java.lang.String username)
                          throws java.lang.Exception

Specified by:
getRssHome in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getSharedCalendars

public GroupCalendarData getSharedCalendars(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                            java.lang.String username,
                                            boolean isShowAll)
                                     throws java.lang.Exception

Specified by:
getSharedCalendars in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getUserCalendar

public Calendar getUserCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                java.lang.String username,
                                java.lang.String calendarId)
                         throws java.lang.Exception

Specified by:
getUserCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getUserCalendars

public java.util.List<Calendar> getUserCalendars(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                                 java.lang.String username,
                                                 boolean isShowAll)
                                          throws java.lang.Exception

Specified by:
getUserCalendars in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getUserCalendarsByCategory

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

Specified by:
getUserCalendarsByCategory in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getUserEventByCalendar

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

Specified by:
getUserEventByCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

getUserEvents

public java.util.List<CalendarEvent> getUserEvents(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                                   java.lang.String username,
                                                   EventQuery eventQuery)
                                            throws java.lang.Exception

Specified by:
getUserEvents in interface CalendarServiceLegacy
Throws:
java.lang.Exception

moveEvent

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

Specified by:
moveEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removeCalendarCategory

public CalendarCategory removeCalendarCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                               java.lang.String username,
                                               java.lang.String calendarCategoryId)
                                        throws java.lang.Exception

Specified by:
removeCalendarCategory in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removeEventCategory

public void removeEventCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                java.lang.String username,
                                java.lang.String eventCategoryName)
                         throws java.lang.Exception

Specified by:
removeEventCategory in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removePublicCalendar

public Calendar removePublicCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                     java.lang.String calendarId)
                              throws java.lang.Exception

Specified by:
removePublicCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removePublicEvent

public CalendarEvent removePublicEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                                       java.lang.String calendarId,
                                       java.lang.String eventId)
                                throws java.lang.Exception

Specified by:
removePublicEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removeSharedCalendar

public void removeSharedCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSesssion,
                                 java.lang.String username,
                                 java.lang.String calendarId)
                          throws java.lang.Exception

Specified by:
removeSharedCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removeSharedEvent

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

Specified by:
removeSharedEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removeUserCalendar

public Calendar removeUserCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                   java.lang.String username,
                                   java.lang.String calendarId)
                            throws java.lang.Exception

Specified by:
removeUserCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

removeUserEvent

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

Specified by:
removeUserEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

saveCalendarCategory

public void saveCalendarCategory(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                 java.lang.String username,
                                 CalendarCategory calendarCategory,
                                 boolean isNew)
                          throws java.lang.Exception

Specified by:
saveCalendarCategory in interface CalendarServiceLegacy
Throws:
java.lang.Exception

saveCalendarSetting

public void saveCalendarSetting(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                                java.lang.String username,
                                CalendarSetting setting)
                         throws java.lang.Exception

Specified by:
saveCalendarSetting in interface CalendarServiceLegacy
Throws:
java.lang.Exception

saveEventCategory

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

Specified by:
saveEventCategory in interface CalendarServiceLegacy
Throws:
java.lang.Exception

saveEventToSharedCalendar

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

Specified by:
saveEventToSharedCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

savePublicCalendar

public void savePublicCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                               Calendar calendar,
                               boolean isNew,
                               java.lang.String username)
                        throws java.lang.Exception

Specified by:
savePublicCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

savePublicEvent

public void savePublicEvent(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                            java.lang.String calendarId,
                            CalendarEvent event,
                            boolean isNew)
                     throws java.lang.Exception

Specified by:
savePublicEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

saveSharedCalendar

public void saveSharedCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider systemSession,
                               java.lang.String username,
                               Calendar calendar)
                        throws java.lang.Exception

Specified by:
saveSharedCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

saveUserCalendar

public void saveUserCalendar(org.exoplatform.services.jcr.ext.common.SessionProvider userSession,
                             java.lang.String username,
                             Calendar calendar,
                             boolean isNew)
                      throws java.lang.Exception

Specified by:
saveUserCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

saveUserEvent

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

Specified by:
saveUserEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

searchEvent

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

Specified by:
searchEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

searchHightLightEvent

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

Specified by:
searchHightLightEvent in interface CalendarServiceLegacy
Throws:
java.lang.Exception

shareCalendar

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

Specified by:
shareCalendar in interface CalendarServiceLegacy
Throws:
java.lang.Exception

updateCalDav

public void updateCalDav(java.lang.String usename,
                         java.lang.String calendarId,
                         CalendarImportExport imp)
                  throws java.lang.Exception
Description copied from interface: CalendarService
The method update exited RSS data when calendar has been changed

Specified by:
updateCalDav in interface CalendarService
calendarId - calendar id Added from 1.3
Throws:
java.lang.Exception

updateCalDav

public void updateCalDav(java.lang.String usename,
                         java.lang.String calendarId,
                         CalendarImportExport imp,
                         int number)
                  throws java.lang.Exception
Specified by:
updateCalDav in interface CalendarService
Throws:
java.lang.Exception

updateRss

public void updateRss(java.lang.String usename,
                      java.lang.String calendarId,
                      CalendarImportExport imp)
               throws java.lang.Exception
Description copied from interface: CalendarService
The method update exited RSS data when calendar has been changed

Specified by:
updateRss in interface CalendarService
calendarId - calendar id Added from 1.3
Throws:
java.lang.Exception

updateRss

public void updateRss(java.lang.String usename,
                      java.lang.String calendarId,
                      CalendarImportExport imp,
                      int number)
               throws java.lang.Exception
Specified by:
updateRss in interface CalendarService
Throws:
java.lang.Exception

getTypeOfCalendar

public int getTypeOfCalendar(java.lang.String userName,
                             java.lang.String calendarId)
                      throws java.lang.Exception
Specified by:
getTypeOfCalendar in interface CalendarService
Throws:
java.lang.Exception

generateCalDav

public int generateCalDav(java.lang.String username,
                          java.util.List<java.lang.String> calendarIds,
                          RssData rssData)
                   throws java.lang.Exception
Description copied from interface: CalendarService
The method generate links to access calendar throw WEBDAV, it will require user name and password when access

Specified by:
generateCalDav in interface CalendarService
Specified by:
generateCalDav in interface CalendarServiceLegacy
Parameters:
username - current user name(or user id)
rssData - Object contains informations about RSS feed
Throws:
java.lang.Exception

generateRss

public int generateRss(java.lang.String username,
                       java.util.List<java.lang.String> calendarIds,
                       RssData rssData)
                throws java.lang.Exception
Description copied from interface: CalendarService
The method uses to make URL to contains links to subscribe calendar follows RSS stand

Specified by:
generateRss in interface CalendarService
Specified by:
generateRss in interface CalendarServiceLegacy
Parameters:
username - current user name(or user id)
rssData - object contains informations about the RSS feed
Throws:
java.lang.Exception
See Also:
RssData


Copyright © 2011 eXo Platform SAS. All Rights Reserved.