|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.calendar.service.impl.JCRDataStorage
public class JCRDataStorage
Created by The eXo Platform SARL Author : Hung Nguyen Quang hung.nguyen@exoplatform.com Jul 10, 2007
| Field Summary |
|---|
| Fields inherited from interface org.exoplatform.calendar.service.DataStorage |
|---|
USERS_PATH |
| Constructor Summary | |
|---|---|
JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.RepositoryService repoService)
|
|
| Method Summary | |
|---|---|
void |
addAttachment(javax.jcr.Node eventNode,
Attachment attachment,
boolean isNew)
Add an attachment to event |
void |
addCalendarSetting(javax.jcr.Node calendarHome,
CalendarSetting setting)
|
void |
addEvent(CalendarEvent event)
Add a event |
void |
addReminder(javax.jcr.Node eventNode,
javax.jcr.Node reminderFolder,
Reminder reminder)
Add a reminder to event |
void |
assignGroupTask(String taskId,
String calendarId,
String assignee)
|
void |
autoRemoveShareCalendar(String groupId,
String username)
|
void |
autoShareCalendar(List<String> groupsOfUser,
String reciever)
|
Date |
calculateRecurrenceFinishDate(CalendarEvent originalEvent)
Calculate the end-date of recurrence event |
boolean |
canEdit(javax.jcr.Node calNode,
String username)
Get the permission to edit of user on the calendar |
Map<String,String> |
checkFreeBusy(EventQuery eventQuery)
|
Map<String,String> |
checkFreeBusy(EventQuery eventQuery,
Date date)
|
void |
closeSessionProvider(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
Safely closes JCR session provider. |
void |
confirmInvitation(String fromUserId,
String toUserId,
int calType,
String calendarId,
String eventId,
int answer)
|
void |
confirmInvitation(String fromUserId,
String confirmingEmail,
String confirmingUser,
int calType,
String calendarId,
String eventId,
int answer)
|
Calendar |
createRemoteCalendar(RemoteCalendar remoteCalendar)
Create a new eXo calendar with mixin type 'exo:remoteCalendar' to store data from remote calendar, this method also creates a 'Remote' category |
org.exoplatform.services.jcr.ext.common.SessionProvider |
createSessionProvider()
Create a session provider for current context. |
org.exoplatform.services.jcr.ext.common.SessionProvider |
createSystemProvider()
|
org.exoplatform.services.jcr.ext.common.SessionProvider |
createUserProvider()
|
int |
generateRss(String username,
LinkedHashMap<String,Calendar> calendars,
RssData rssData,
CalendarImportExport importExport)
|
int |
generateRss(String username,
List<String> calendarIds,
RssData rssData,
CalendarImportExport importExport)
|
Calendar |
getCalendar(String[] defaultFilterCalendars,
String username,
javax.jcr.Node calNode,
boolean isShowAll)
|
javax.jcr.Node |
getCalendarEventNode(String username,
String calType,
String calendarId,
String eventId)
|
CalendarSetting |
getCalendarSetting(String username)
Get calendar settings of a user |
javax.jcr.Node |
getDateFolder(javax.jcr.Node publicApp,
Date date)
|
String |
getEntryUrl(String portalName,
String wsName,
String username,
String path,
String baseUrl)
|
CalendarEvent |
getEvent(javax.jcr.Node eventNode)
Get a event from event node |
CalendarEvent |
getEvent(String username,
String eventId)
Get a user event |
CalendarEvent |
getEventById(String eventId)
|
List<EventCategory> |
getEventCategories(String username)
Get all event categories of a user |
EventCategory |
getEventCategory(javax.jcr.Node eventCatNode)
Get a event category from node |
EventCategory |
getEventCategory(String username,
String eventcategoryId)
Get event category from name |
protected javax.jcr.Node |
getEventCategoryHome(String username)
|
javax.jcr.Node |
getEventFolder(Date fromDate)
|
List<CalendarEvent> |
getEvents(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
|
List<CalendarEvent> |
getExceptionEvents(String username,
CalendarEvent recurEvent)
Get all exception occurrence from original recurrence event |
List<FeedData> |
getFeeds(String username)
|
Calendar |
getGroupCalendar(String calendarId)
Get a group calendar |
List<GroupCalendarData> |
getGroupCalendars(String[] groupIds,
boolean isShowAll,
String username)
|
CalendarEvent |
getGroupEvent(String eventId)
Get a group event with given eventId |
CalendarEvent |
getGroupEvent(String calendarId,
String eventId)
Get a group event |
List<CalendarEvent> |
getGroupEventByCalendar(List<String> calendarIds)
Get all group events from list of calendars |
net.fortuna.ical4j.model.Recur |
getICalendarRecur(CalendarEvent recurEvent)
|
javax.jcr.Node |
getNodeByPath(String nodePath,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
|
Map<String,CalendarEvent> |
getOccurrenceEvents(CalendarEvent recurEvent,
Calendar from,
Calendar to,
String timezone)
Query all occurrences of recurrence event between from and to date. |
List<CalendarEvent> |
getOriginalRecurrenceEvents(javax.jcr.Node calendar,
String calType,
Calendar from,
Calendar to,
String[] calendarIds,
String[] filterCalendarIds)
|
List<CalendarEvent> |
getOriginalRecurrenceEvents(String username,
Calendar from,
Calendar to,
String[] publicCalendarIds)
Get all active 'original' recurrence event The result list includes all 'original' recurrence event in all three types: private, public and shared |
javax.jcr.Node |
getPublicCalendarHome()
Get the home node of all public calendars under public Calendar storage |
javax.jcr.Node |
getPublicCalendarServiceHome()
Get the public Calendar application storage |
List<CalendarEvent> |
getPublicEventByCategory(String username,
String eventCategoryId)
Get all user public events from a category |
List<CalendarEvent> |
getPublicEvents(EventQuery eventQuery)
Get all public events from a event query |
javax.jcr.Node |
getPublicRoot()
|
javax.jcr.Node |
getReminderFolder(Date fromDate)
|
RemoteCalendar |
getRemoteCalendar(String username,
String remoteCalendarId)
|
Calendar |
getRemoteCalendar(String username,
String remoteUrl,
String remoteType)
|
int |
getRemoteCalendarCount(String username)
|
javax.jcr.Node |
getRssHome(String username)
Get the home node of user feeds in Calendar application |
javax.jcr.Session |
getSession(org.exoplatform.services.jcr.ext.common.SessionProvider sprovider)
|
javax.jcr.Node |
getSharedCalendarHome()
Get the shared Calendar application storage |
GroupCalendarData |
getSharedCalendars(String username,
boolean isShowAll)
Get all shared calendars of a user |
CalendarEvent |
getSharedEvent(String username,
String calendarId,
String eventId)
|
List<CalendarEvent> |
getSharedEventByCalendars(String username,
List<String> calendarIds)
Get all shared events from list of calendars |
List<CalendarEvent> |
getSharedEventByCategory(String username,
String eventCategoryId)
Get all user shared events from a category |
List<CalendarEvent> |
getSharedEvents(String username,
EventQuery eventQuery)
Get all shared events with a EventQuery |
int |
getTypeOfCalendar(String userName,
String calendarId)
|
Calendar |
getUserCalendar(String username,
String calendarId)
Get a calendar under user calendar data storage |
javax.jcr.Node |
getUserCalendarHome(String username)
Get the home node of user calendars under user calendar data storage |
List<Calendar> |
getUserCalendars(String username,
boolean isShowAll)
Get all calendars of a user |
javax.jcr.Node |
getUserCalendarServiceHome(String username)
Get the Calendar application user data storage root |
CalendarEvent |
getUserEvent(String username,
String calendarId,
String eventId)
Get a user event from calendarId and eventId |
List<CalendarEvent> |
getUserEventByCalendar(String username,
List<String> calendarIds)
Get all user events from a calendar |
List<CalendarEvent> |
getUserEventByCategory(String username,
String eventCategoryId)
Get all user events from a category |
List<CalendarEvent> |
getUserEvents(String username,
EventQuery eventQuery)
Get all user event with a event query |
boolean |
isRemoteCalendar(String username,
String calendarId)
Check if a calendar is a remote calendar by checking mixin type of calendar node |
void |
moveEvent(String formCalendar,
String toCalendar,
String fromType,
String toType,
List<CalendarEvent> calEvents,
String username)
Move events between calendars |
void |
removeEventCategory(String username,
String eventCategoryId)
Remove a user event category |
void |
removeFeed(String username,
String calendarId)
|
void |
removeFeedData(String username,
String title)
|
Calendar |
removeGroupCalendar(String calendarId)
Remove a group calendar |
void |
removeOccurrenceInstance(String username,
CalendarEvent occurrence)
|
CalendarEvent |
removePublicEvent(String calendarId,
String eventId)
Remove a public event |
void |
removeRecurrenceSeries(String username,
CalendarEvent originalEvent)
|
void |
removeReminder(javax.jcr.Node eventNode)
Remove reminder from event |
void |
removeSharedCalendar(String username,
String calendarId)
Remove a shared calendar |
void |
removeSharedCalendarFolder(String username)
|
void |
removeSharedEvent(String username,
String calendarId,
String eventId)
|
Calendar |
removeUserCalendar(String username,
String calendarId)
Remove a user calendar |
CalendarEvent |
removeUserEvent(String username,
String calendarId,
String eventId)
Remove a user event |
void |
saveCalendarSetting(String username,
CalendarSetting setting)
Save calendar setting of a user to JCR |
void |
saveEvent(javax.jcr.Node calendarNode,
CalendarEvent event,
javax.jcr.Node reminderFolder,
boolean isNew)
Save a event |
void |
saveEventCategory(String username,
EventCategory eventCategory,
boolean isNew)
Save a user event category to JCR |
void |
saveEventCategory(String username,
EventCategory eventCategory,
String[] values,
boolean isNew)
|
void |
saveEventToSharedCalendar(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
Save a event to a shared calendar |
void |
saveOccurrenceEvent(javax.jcr.Node calendarNode,
CalendarEvent event,
javax.jcr.Node reminderFolder,
boolean isNew)
|
void |
saveOccurrenceEvent(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
Save a occurrence event |
void |
savePublicCalendar(Calendar calendar,
boolean isNew,
String username)
Save a public calendar |
void |
savePublicEvent(String calendarId,
CalendarEvent event,
boolean isNew)
Save a public event |
void |
saveSharedCalendar(String username,
Calendar calendar)
Save a shared calendar to JCR |
void |
saveUserCalendar(String username,
Calendar calendar,
boolean isNew)
Save a user calendar |
void |
saveUserEvent(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
Save a user event |
EventPageList |
searchEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
|
Map<Integer,String> |
searchHighlightRecurrenceEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds,
String timezone)
|
Map<Integer,String> |
searchHightLightEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
|
void |
setCalDavResourceEtag(String username,
String calendarId,
String eventId,
String etag)
|
void |
setCalDavResourceHref(String username,
String calendarId,
String eventId,
String href)
|
void |
setGroupTaskStatus(String taskId,
String calendarId,
String status)
|
void |
setRemoteCalendarLastUpdated(String username,
String calendarId,
Calendar timeGMT)
|
void |
setRemoteEvent(String username,
String calendarId,
String eventId,
String href,
String etag)
|
void |
shareCalendar(String username,
String calendarId,
List<String> receiverUsers)
Shared a calendar to list of users |
void |
storeXML(String feedXML,
javax.jcr.Node rssHome,
RssData rssData)
|
void |
syncRemoveEvent(javax.jcr.Node eventFolder,
String rootEventId)
|
void |
updateOccurrenceEvent(String fromCalendar,
String toCalendar,
String fromCalendarType,
String toCalendarType,
List<CalendarEvent> events,
String username)
This function is used to update a occurrence event. |
void |
updateRecurrenceSeries(String fromCalendar,
String toCalendar,
String fromType,
String toType,
CalendarEvent occurrence,
String username)
Update recurrence series |
Calendar |
updateRemoteCalendarInfo(RemoteCalendar remoteCalendar)
Update information about remote calendar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCRDataStorage(org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator,
org.exoplatform.services.jcr.RepositoryService repoService)
throws Exception
Exception| Method Detail |
|---|
public javax.jcr.Node getPublicCalendarServiceHome()
throws Exception
getPublicCalendarServiceHome in interface DataStorageException
public javax.jcr.Node getSharedCalendarHome()
throws Exception
getSharedCalendarHome in interface DataStorageException
public javax.jcr.Node getPublicRoot()
throws Exception
getPublicRoot in interface DataStorageException
public javax.jcr.Node getUserCalendarServiceHome(String username)
throws Exception
getUserCalendarServiceHome in interface DataStorageException
public javax.jcr.Node getPublicCalendarHome()
throws Exception
getPublicCalendarHome in interface DataStorageException
public javax.jcr.Node getUserCalendarHome(String username)
throws Exception
getUserCalendarHome in interface DataStorageException
public javax.jcr.Node getRssHome(String username)
throws Exception
getRssHome in interface DataStorageException
protected javax.jcr.Node getEventCategoryHome(String username)
throws Exception
username -
Exception
public Calendar getUserCalendar(String username,
String calendarId)
throws Exception
getUserCalendar in interface DataStorageException
public List<Calendar> getUserCalendars(String username,
boolean isShowAll)
throws Exception
getUserCalendars in interface DataStorageException
public void saveUserCalendar(String username,
Calendar calendar,
boolean isNew)
throws Exception
saveUserCalendar in interface DataStorageException
public Calendar removeUserCalendar(String username,
String calendarId)
throws Exception
removeUserCalendar in interface DataStorageException
public Calendar getGroupCalendar(String calendarId)
throws Exception
getGroupCalendar in interface DataStorageException
public List<GroupCalendarData> getGroupCalendars(String[] groupIds,
boolean isShowAll,
String username)
throws Exception
getGroupCalendars in interface DataStorageException
public void savePublicCalendar(Calendar calendar,
boolean isNew,
String username)
throws Exception
savePublicCalendar in interface DataStorageException
public Calendar removeGroupCalendar(String calendarId)
throws Exception
removeGroupCalendar in interface DataStorageException
public Calendar getCalendar(String[] defaultFilterCalendars,
String username,
javax.jcr.Node calNode,
boolean isShowAll)
throws Exception
getCalendar in interface DataStorageException
public List<EventCategory> getEventCategories(String username)
throws Exception
DataStorage
getEventCategories in interface DataStorageException
public void saveEventCategory(String username,
EventCategory eventCategory,
String[] values,
boolean isNew)
throws Exception
Exception
public void saveEventCategory(String username,
EventCategory eventCategory,
boolean isNew)
throws Exception
DataStorage
saveEventCategory in interface DataStorageException
public void removeEventCategory(String username,
String eventCategoryId)
throws Exception
DataStorage
removeEventCategory in interface DataStorageException
public EventCategory getEventCategory(javax.jcr.Node eventCatNode)
throws Exception
getEventCategory in interface DataStorageException
public EventCategory getEventCategory(String username,
String eventcategoryId)
throws Exception
DataStorage
getEventCategory in interface DataStorageException
public CalendarEvent getUserEvent(String username,
String calendarId,
String eventId)
throws Exception
DataStorage
getUserEvent in interface DataStorageException
public List<CalendarEvent> getUserEventByCalendar(String username,
List<String> calendarIds)
throws Exception
DataStorage
getUserEventByCalendar in interface DataStorageException
public List<CalendarEvent> getPublicEventByCategory(String username,
String eventCategoryId)
throws Exception
DataStorage
getPublicEventByCategory in interface DataStorageException
public List<CalendarEvent> getSharedEventByCategory(String username,
String eventCategoryId)
throws Exception
DataStorage
getSharedEventByCategory in interface DataStorageException
public List<CalendarEvent> getUserEventByCategory(String username,
String eventCategoryId)
throws Exception
getUserEventByCategory in interface DataStorageException
public CalendarEvent getEvent(String username,
String eventId)
throws Exception
getEvent in interface DataStorageException
public List<CalendarEvent> getUserEvents(String username,
EventQuery eventQuery)
throws Exception
getUserEvents in interface DataStorageException
public void saveUserEvent(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
saveUserEvent in interface DataStorageException
public void saveOccurrenceEvent(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
username - calendarId - event - isNew -
Exception
public void saveOccurrenceEvent(javax.jcr.Node calendarNode,
CalendarEvent event,
javax.jcr.Node reminderFolder,
boolean isNew)
throws Exception
Exception
public void removeOccurrenceInstance(String username,
CalendarEvent occurrence)
throws Exception
Exception
public void removeRecurrenceSeries(String username,
CalendarEvent originalEvent)
throws Exception
Exception
public javax.jcr.Node getCalendarEventNode(String username,
String calType,
String calendarId,
String eventId)
throws Exception
Exception
public CalendarEvent removeUserEvent(String username,
String calendarId,
String eventId)
throws Exception
removeUserEvent in interface DataStorageException
public void removeReminder(javax.jcr.Node eventNode)
throws Exception
removeReminder in interface DataStorageException
public CalendarEvent getGroupEvent(String calendarId,
String eventId)
throws Exception
getGroupEvent in interface DataStorageException
public CalendarEvent getGroupEvent(String eventId)
throws Exception
getGroupEvent in interface DataStorageException
public List<CalendarEvent> getGroupEventByCalendar(List<String> calendarIds)
throws Exception
getGroupEventByCalendar in interface DataStorageException
public List<CalendarEvent> getPublicEvents(EventQuery eventQuery)
throws Exception
getPublicEvents in interface DataStorageException
public void savePublicEvent(String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
savePublicEvent in interface DataStorageException
public CalendarEvent removePublicEvent(String calendarId,
String eventId)
throws Exception
removePublicEvent in interface DataStorageException
public CalendarEvent getEvent(javax.jcr.Node eventNode)
throws Exception
getEvent in interface DataStorageException
public void saveEvent(javax.jcr.Node calendarNode,
CalendarEvent event,
javax.jcr.Node reminderFolder,
boolean isNew)
throws Exception
saveEvent in interface DataStorageException
public void addReminder(javax.jcr.Node eventNode,
javax.jcr.Node reminderFolder,
Reminder reminder)
throws Exception
addReminder in interface DataStorageException
public void addEvent(CalendarEvent event)
throws Exception
addEvent in interface DataStorageException
public void syncRemoveEvent(javax.jcr.Node eventFolder,
String rootEventId)
throws Exception
syncRemoveEvent in interface DataStorageException
public javax.jcr.Node getReminderFolder(Date fromDate)
throws Exception
getReminderFolder in interface DataStorageException
public javax.jcr.Node getEventFolder(Date fromDate)
throws Exception
getEventFolder in interface DataStorageException
public javax.jcr.Node getDateFolder(javax.jcr.Node publicApp,
Date date)
throws Exception
getDateFolder in interface DataStorageException
public void addAttachment(javax.jcr.Node eventNode,
Attachment attachment,
boolean isNew)
throws Exception
addAttachment in interface DataStorageeventNode - the event nodeattachment - the attachment to addisNew - is it a new attachment?
Exception
public void saveCalendarSetting(String username,
CalendarSetting setting)
throws Exception
saveCalendarSetting in interface DataStorageusername - the usernamesetting - the setting to save
Exception
public void addCalendarSetting(javax.jcr.Node calendarHome,
CalendarSetting setting)
throws Exception
addCalendarSetting in interface DataStorageException
public CalendarSetting getCalendarSetting(String username)
throws Exception
getCalendarSetting in interface DataStorageException
public void storeXML(String feedXML,
javax.jcr.Node rssHome,
RssData rssData)
throws Exception
storeXML in interface DataStorageException
public void removeFeed(String username,
String calendarId)
throws Exception
removeFeed in interface DataStorageException
public void removeFeedData(String username,
String title)
username - title -
public List<FeedData> getFeeds(String username)
throws Exception
getFeeds in interface DataStorageException
public int generateRss(String username,
List<String> calendarIds,
RssData rssData,
CalendarImportExport importExport)
throws Exception
generateRss in interface DataStorageException
public int generateRss(String username,
LinkedHashMap<String,Calendar> calendars,
RssData rssData,
CalendarImportExport importExport)
throws Exception
generateRss in interface DataStorageException
public String getEntryUrl(String portalName,
String wsName,
String username,
String path,
String baseUrl)
throws Exception
getEntryUrl in interface DataStorageException
public EventPageList searchEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
searchEvent in interface DataStorageException
public Map<Integer,String> searchHightLightEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
searchHightLightEvent in interface DataStorageException
public Map<Integer,String> searchHighlightRecurrenceEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds,
String timezone)
throws Exception
Exception
public void shareCalendar(String username,
String calendarId,
List<String> receiverUsers)
throws Exception
shareCalendar in interface DataStorageException
public GroupCalendarData getSharedCalendars(String username,
boolean isShowAll)
throws Exception
getSharedCalendars in interface DataStorageException
public void saveSharedCalendar(String username,
Calendar calendar)
throws Exception
saveSharedCalendar in interface DataStorageException
public List<CalendarEvent> getSharedEvents(String username,
EventQuery eventQuery)
throws Exception
getSharedEvents in interface DataStorageException
public List<CalendarEvent> getSharedEventByCalendars(String username,
List<String> calendarIds)
throws Exception
getSharedEventByCalendars in interface DataStorageException
public CalendarEvent getSharedEvent(String username,
String calendarId,
String eventId)
throws Exception
Exception
public void saveEventToSharedCalendar(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
saveEventToSharedCalendar in interface DataStorageException
public boolean canEdit(javax.jcr.Node calNode,
String username)
throws Exception
canEdit in interface DataStorageException
public List<CalendarEvent> getEvents(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
getEvents in interface DataStorageException
public List<CalendarEvent> getOriginalRecurrenceEvents(String username,
Calendar from,
Calendar to,
String[] publicCalendarIds)
throws Exception
username -
Exception
public List<CalendarEvent> getOriginalRecurrenceEvents(javax.jcr.Node calendar,
String calType,
Calendar from,
Calendar to,
String[] calendarIds,
String[] filterCalendarIds)
throws Exception
Exception
public List<CalendarEvent> getExceptionEvents(String username,
CalendarEvent recurEvent)
throws Exception
username - recurEvent -
Exception
public Map<String,CalendarEvent> getOccurrenceEvents(CalendarEvent recurEvent,
Calendar from,
Calendar to,
String timezone)
throws Exception
recurEvent - the original recurrence eventfrom - to - timezone -
Exception
public Date calculateRecurrenceFinishDate(CalendarEvent originalEvent)
throws Exception
originalEvent -
Exception
public net.fortuna.ical4j.model.Recur getICalendarRecur(CalendarEvent recurEvent)
throws Exception
Exception
public Map<String,String> checkFreeBusy(EventQuery eventQuery)
throws Exception
checkFreeBusy in interface DataStorageException
public Map<String,String> checkFreeBusy(EventQuery eventQuery,
Date date)
throws Exception
Exception
public void removeSharedEvent(String username,
String calendarId,
String eventId)
throws Exception
removeSharedEvent in interface DataStorageException
public void moveEvent(String formCalendar,
String toCalendar,
String fromType,
String toType,
List<CalendarEvent> calEvents,
String username)
throws Exception
moveEvent in interface DataStorageException
public void updateOccurrenceEvent(String fromCalendar,
String toCalendar,
String fromCalendarType,
String toCalendarType,
List<CalendarEvent> events,
String username)
throws Exception
fromCalendar - toCalendar - fromCalendarType - toCalendarType - events - username -
Exception
public void updateRecurrenceSeries(String fromCalendar,
String toCalendar,
String fromType,
String toType,
CalendarEvent occurrence,
String username)
throws Exception
fromCalendar - toCalendar - fromType - toType - occurrence - username -
Exception
public void confirmInvitation(String fromUserId,
String toUserId,
int calType,
String calendarId,
String eventId,
int answer)
confirmInvitation in interface DataStorage
public void confirmInvitation(String fromUserId,
String confirmingEmail,
String confirmingUser,
int calType,
String calendarId,
String eventId,
int answer)
throws Exception
confirmInvitation in interface DataStorageException
public int getTypeOfCalendar(String userName,
String calendarId)
getTypeOfCalendar in interface DataStoragepublic org.exoplatform.services.jcr.ext.common.SessionProvider createSessionProvider()
createSessionProvider in interface DataStoragepublic org.exoplatform.services.jcr.ext.common.SessionProvider createUserProvider()
createUserProvider in interface DataStoragepublic org.exoplatform.services.jcr.ext.common.SessionProvider createSystemProvider()
createSystemProvider in interface DataStoragepublic void closeSessionProvider(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
closeSessionProvider in interface DataStoragesessionProvider - the sessionProvider to closeSessionProvider.close();
public javax.jcr.Node getNodeByPath(String nodePath,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
throws Exception
getNodeByPath in interface DataStorageException
public javax.jcr.Session getSession(org.exoplatform.services.jcr.ext.common.SessionProvider sprovider)
throws Exception
getSession in interface DataStorageException
public void autoShareCalendar(List<String> groupsOfUser,
String reciever)
throws Exception
autoShareCalendar in interface DataStorageException
public void removeSharedCalendar(String username,
String calendarId)
throws Exception
removeSharedCalendar in interface DataStorageusername - the usernamecalendarId - the calendar id
Exception
public void removeSharedCalendarFolder(String username)
throws Exception
Exception
public void autoRemoveShareCalendar(String groupId,
String username)
throws Exception
autoRemoveShareCalendar in interface DataStorageException
public void assignGroupTask(String taskId,
String calendarId,
String assignee)
throws Exception
Exception
public void setGroupTaskStatus(String taskId,
String calendarId,
String status)
throws Exception
Exception
public boolean isRemoteCalendar(String username,
String calendarId)
throws Exception
DataStorage
isRemoteCalendar in interface DataStorageusername - owner of this calendarcalendarId - id of this calendar
Exception
public Calendar updateRemoteCalendarInfo(RemoteCalendar remoteCalendar)
throws Exception
DataStorage
updateRemoteCalendarInfo in interface DataStorageremoteCalendar - object content all properties for remote calendar.
Exception
public RemoteCalendar getRemoteCalendar(String username,
String remoteCalendarId)
throws Exception
Exception
public Calendar createRemoteCalendar(RemoteCalendar remoteCalendar)
throws Exception
DataStorage
createRemoteCalendar in interface DataStorageremoteCalendar - object content all properties for remote calendar.
Exception
public void setRemoteEvent(String username,
String calendarId,
String eventId,
String href,
String etag)
throws Exception
setRemoteEvent in interface DataStorageException
public void setRemoteCalendarLastUpdated(String username,
String calendarId,
Calendar timeGMT)
throws Exception
setRemoteCalendarLastUpdated in interface DataStorageException
public Calendar getRemoteCalendar(String username,
String remoteUrl,
String remoteType)
throws Exception
getRemoteCalendar in interface DataStorageException
public int getRemoteCalendarCount(String username)
throws Exception
getRemoteCalendarCount in interface DataStorageException
public void setCalDavResourceHref(String username,
String calendarId,
String eventId,
String href)
throws Exception
setCalDavResourceHref in interface DataStorageException
public void setCalDavResourceEtag(String username,
String calendarId,
String eventId,
String etag)
throws Exception
setCalDavResourceEtag in interface DataStorageException
public CalendarEvent getEventById(String eventId)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||