|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataStorage
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Jan 19, 2010
| Field Summary | |
|---|---|
static String |
USERS_PATH
|
| 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 |
autoRemoveShareCalendar(String groupId,
String username)
|
void |
autoShareCalendar(List<String> groupsOfUser,
String reciever)
|
boolean |
canEdit(javax.jcr.Node calNode,
String username)
Get the permission to edit of user on the calendar |
Map<String,String> |
checkFreeBusy(EventQuery eventQuery)
|
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 |
generateCalDav(String username,
LinkedHashMap<String,Calendar> calendars,
RssData rssData,
CalendarImportExport importExport)
|
int |
generateCalDav(String username,
List<String> calendarIds,
RssData rssData,
CalendarImportExport importExport)
|
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)
|
List<GroupCalendarData> |
getCalendarCategories(String username,
boolean isShowAll)
|
CalendarCategory |
getCalendarCategory(javax.jcr.Node calCategoryNode)
Get calendar category from a JCR node |
CalendarCategory |
getCalendarCategory(String username,
String calendarCategoryId)
Get a calendar category of a user |
CalendarSetting |
getCalendarSetting(String username)
Get calendar settings of a user |
List<CalendarCategory> |
getCategories(String username)
Get all calendar categories 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 |
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 eventCategoryName)
Get event category from name |
javax.jcr.Node |
getEventFolder(Date fromDate)
|
List<CalendarEvent> |
getEvents(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
|
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 |
javax.jcr.Node |
getNodeByPath(String nodePath,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
|
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)
|
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 |
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 |
List<Calendar> |
getUserCalendarsByCategory(String username,
String calendarCategoryId)
Get all calendars of a user by category |
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 |
CalendarCategory |
removeCalendarCategory(String username,
String calendarCategoryId)
Remove a calendar category |
void |
removeEventCategory(String username,
String eventCategoryName)
Remove a user event category |
void |
removeFeed(String username,
String calendarId)
|
Calendar |
removeGroupCalendar(String calendarId)
Remove a group calendar |
CalendarEvent |
removePublicEvent(String calendarId,
String eventId)
Remove a public event |
void |
removeReminder(javax.jcr.Node eventNode)
Remove reminder from event |
void |
removeSharedCalendar(String username,
String calendarId)
Remove a shared calendar |
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 |
saveCalendarCategory(String username,
CalendarCategory calendarCategory,
boolean isNew)
Save calendar category |
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 |
saveEventToSharedCalendar(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
Save a event to a shared calendar |
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> |
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 |
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 |
updateCalDav(String username,
String calendarId,
CalendarImportExport imp)
|
void |
updateCalDav(String username,
String calendarId,
CalendarImportExport imp,
int number)
|
Calendar |
updateRemoteCalendarInfo(RemoteCalendar remoteCalendar)
Update information about remote calendar |
void |
updateRss(String username,
String calendarId,
CalendarImportExport imp)
|
void |
updateRss(String username,
String calendarId,
CalendarImportExport imp,
int number)
|
| Field Detail |
|---|
static final String USERS_PATH
| Method Detail |
|---|
javax.jcr.Node getPublicCalendarServiceHome()
throws Exception
Exception
javax.jcr.Node getSharedCalendarHome()
throws Exception
Exception
javax.jcr.Node getPublicRoot()
throws Exception
Exception
javax.jcr.Node getUserCalendarServiceHome(String username)
throws Exception
username -
Exception
javax.jcr.Node getPublicCalendarHome()
throws Exception
Exception
javax.jcr.Node getUserCalendarHome(String username)
throws Exception
username -
Exception
javax.jcr.Node getRssHome(String username)
throws Exception
username -
Exception
Calendar getUserCalendar(String username,
String calendarId)
throws Exception
username - calendarId -
Exception
List<Calendar> getUserCalendars(String username,
boolean isShowAll)
throws Exception
username - isShowAll -
Exception
List<Calendar> getUserCalendarsByCategory(String username,
String calendarCategoryId)
throws Exception
username - calendarCategoryId -
Exception
void saveUserCalendar(String username,
Calendar calendar,
boolean isNew)
throws Exception
username - calendar - isNew -
Exception
Calendar removeUserCalendar(String username,
String calendarId)
throws Exception
username - calendarId -
Exception
Calendar getGroupCalendar(String calendarId)
throws Exception
calendarId -
Exception
List<GroupCalendarData> getGroupCalendars(String[] groupIds,
boolean isShowAll,
String username)
throws Exception
groupIds - isShowAll - username -
Exception
void savePublicCalendar(Calendar calendar,
boolean isNew,
String username)
throws Exception
calendar - isNew - username -
Exception
Calendar removeGroupCalendar(String calendarId)
throws Exception
calendarId -
Exception
Calendar getCalendar(String[] defaultFilterCalendars,
String username,
javax.jcr.Node calNode,
boolean isShowAll)
throws Exception
defaultFilterCalendars - username - calNode - isShowAll -
Exception
List<GroupCalendarData> getCalendarCategories(String username,
boolean isShowAll)
throws Exception
username - isShowAll -
Exception
List<CalendarCategory> getCategories(String username)
throws Exception
username -
Exception
CalendarCategory getCalendarCategory(String username,
String calendarCategoryId)
throws Exception
username - calendarCategoryId -
Exception
void saveCalendarCategory(String username,
CalendarCategory calendarCategory,
boolean isNew)
throws Exception
username - calendarCategory - isNew -
Exception
CalendarCategory removeCalendarCategory(String username,
String calendarCategoryId)
throws Exception
username - calendarCategoryId -
Exception
CalendarCategory getCalendarCategory(javax.jcr.Node calCategoryNode)
throws Exception
calCategoryNode -
Exception
List<EventCategory> getEventCategories(String username)
throws Exception
username -
Exception
void saveEventCategory(String username,
EventCategory eventCategory,
boolean isNew)
throws Exception
username - eventCategory - isNew -
Exception
void removeEventCategory(String username,
String eventCategoryName)
throws Exception
username - eventCategoryName -
Exception
EventCategory getEventCategory(javax.jcr.Node eventCatNode)
throws Exception
eventCatNode -
Exception
EventCategory getEventCategory(String username,
String eventCategoryName)
throws Exception
username - eventCategoryName -
Exception
CalendarEvent getUserEvent(String username,
String calendarId,
String eventId)
throws Exception
username - calendarId - eventId -
Exception
List<CalendarEvent> getUserEventByCalendar(String username,
List<String> calendarIds)
throws Exception
username - calendarIds -
Exception
List<CalendarEvent> getPublicEventByCategory(String username,
String eventCategoryId)
throws Exception
username - eventCategoryId -
Exception
List<CalendarEvent> getSharedEventByCategory(String username,
String eventCategoryId)
throws Exception
username - eventCategoryId -
Exception
List<CalendarEvent> getUserEventByCategory(String username,
String eventCategoryId)
throws Exception
username - eventCategoryId -
Exception
CalendarEvent getEvent(String username,
String eventId)
throws Exception
username - eventId -
Exception
List<CalendarEvent> getUserEvents(String username,
EventQuery eventQuery)
throws Exception
username - eventQuery -
Exception
void saveUserEvent(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
username - calendarId - event - isNew -
Exception
CalendarEvent removeUserEvent(String username,
String calendarId,
String eventId)
throws Exception
username - calendarId - eventId -
Exception
void removeReminder(javax.jcr.Node eventNode)
throws Exception
eventNode -
Exception
CalendarEvent getGroupEvent(String eventId)
throws Exception
eventId -
Exception
CalendarEvent getGroupEvent(String calendarId,
String eventId)
throws Exception
calendarId - eventId -
Exception
List<CalendarEvent> getGroupEventByCalendar(List<String> calendarIds)
throws Exception
calendarIds -
Exception
List<CalendarEvent> getPublicEvents(EventQuery eventQuery)
throws Exception
eventQuery -
Exception
void savePublicEvent(String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
calendarId - event - isNew -
Exception
CalendarEvent removePublicEvent(String calendarId,
String eventId)
throws Exception
calendarId - eventId -
Exception
CalendarEvent getEvent(javax.jcr.Node eventNode)
throws Exception
eventNode -
Exception
void saveEvent(javax.jcr.Node calendarNode,
CalendarEvent event,
javax.jcr.Node reminderFolder,
boolean isNew)
throws Exception
calendarNode - event - reminderFolder - isNew -
Exception
void addReminder(javax.jcr.Node eventNode,
javax.jcr.Node reminderFolder,
Reminder reminder)
throws Exception
eventNode - reminderFolder - reminder -
Exception
void addEvent(CalendarEvent event)
throws Exception
event -
Exception
void syncRemoveEvent(javax.jcr.Node eventFolder,
String rootEventId)
throws Exception
eventFolder - rootEventId -
Exception
javax.jcr.Node getReminderFolder(Date fromDate)
throws Exception
fromDate -
Exception
javax.jcr.Node getEventFolder(Date fromDate)
throws Exception
fromDate -
Exception
javax.jcr.Node getDateFolder(javax.jcr.Node publicApp,
Date date)
throws Exception
publicApp - date -
Exception
void addAttachment(javax.jcr.Node eventNode,
Attachment attachment,
boolean isNew)
throws Exception
eventNode - the event nodeattachment - the attachment to addisNew - is it a new attachment?
Exception
void saveCalendarSetting(String username,
CalendarSetting setting)
throws Exception
username - the usernamesetting - the setting to save
Exception
void addCalendarSetting(javax.jcr.Node calendarHome,
CalendarSetting setting)
throws Exception
calendarHome - setting -
Exception
CalendarSetting getCalendarSetting(String username)
throws Exception
username -
Exception
void storeXML(String feedXML,
javax.jcr.Node rssHome,
RssData rssData)
throws Exception
feedXML - rssHome - rssData -
Exception
int generateCalDav(String username,
LinkedHashMap<String,Calendar> calendars,
RssData rssData,
CalendarImportExport importExport)
throws Exception
username - calendars - rssData - importExport -
Exception
void removeFeed(String username,
String calendarId)
throws Exception
username - calendarId -
Exception
List<FeedData> getFeeds(String username)
throws Exception
username -
Exception
int generateRss(String username,
List<String> calendarIds,
RssData rssData,
CalendarImportExport importExport)
throws Exception
username - calendarIds - rssData - importExport -
Exception
int generateRss(String username,
LinkedHashMap<String,Calendar> calendars,
RssData rssData,
CalendarImportExport importExport)
throws Exception
username - calendars - rssData - importExport -
Exception
void updateRss(String username,
String calendarId,
CalendarImportExport imp)
throws Exception
username - calendarId - imp -
Exception
void updateRss(String username,
String calendarId,
CalendarImportExport imp,
int number)
throws Exception
username - calendarId - imp - number -
Exception
void updateCalDav(String username,
String calendarId,
CalendarImportExport imp)
throws Exception
username - calendarId - imp -
Exception
void updateCalDav(String username,
String calendarId,
CalendarImportExport imp,
int number)
throws Exception
username - calendarId - imp - number -
Exception
int generateCalDav(String username,
List<String> calendarIds,
RssData rssData,
CalendarImportExport importExport)
throws Exception
username - calendarIds - rssData - importExport -
Exception
String getEntryUrl(String portalName,
String wsName,
String username,
String path,
String baseUrl)
throws Exception
portalName - wsName - username - path - baseUrl -
Exception
EventPageList searchEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
username - eventQuery - publicCalendarIds -
Exception
Map<Integer,String> searchHightLightEvent(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
username - eventQuery - publicCalendarIds -
Exception
void shareCalendar(String username,
String calendarId,
List<String> receiverUsers)
throws Exception
username - calendarId - receiverUsers -
Exception
GroupCalendarData getSharedCalendars(String username,
boolean isShowAll)
throws Exception
username - isShowAll -
Exception
void saveSharedCalendar(String username,
Calendar calendar)
throws Exception
username - calendar -
Exception
List<CalendarEvent> getSharedEvents(String username,
EventQuery eventQuery)
throws Exception
username - eventQuery -
Exception
List<CalendarEvent> getSharedEventByCalendars(String username,
List<String> calendarIds)
throws Exception
username - calendarIds -
Exception
void removeSharedCalendar(String username,
String calendarId)
throws Exception
username - the usernamecalendarId - the calendar id
Exception
void saveEventToSharedCalendar(String username,
String calendarId,
CalendarEvent event,
boolean isNew)
throws Exception
username - calendarId - event - isNew -
Exception
boolean canEdit(javax.jcr.Node calNode,
String username)
throws Exception
calNode - username -
Exception
List<CalendarEvent> getEvents(String username,
EventQuery eventQuery,
String[] publicCalendarIds)
throws Exception
username - eventQuery - publicCalendarIds -
Exception
Map<String,String> checkFreeBusy(EventQuery eventQuery)
throws Exception
eventQuery -
Exception
void removeSharedEvent(String username,
String calendarId,
String eventId)
throws Exception
username - calendarId - eventId -
Exception
void moveEvent(String formCalendar,
String toCalendar,
String fromType,
String toType,
List<CalendarEvent> calEvents,
String username)
throws Exception
formCalendar - toCalendar - fromType - toType - calEvents - username -
Exception
void confirmInvitation(String fromUserId,
String toUserId,
int calType,
String calendarId,
String eventId,
int answer)
fromUserId - toUserId - calType - calendarId - eventId - answer -
void confirmInvitation(String fromUserId,
String confirmingEmail,
String confirmingUser,
int calType,
String calendarId,
String eventId,
int answer)
throws Exception
fromUserId - confirmingEmail - confirmingUser - calType - calendarId - eventId - answer -
Exception
int getTypeOfCalendar(String userName,
String calendarId)
userName - calendarId -
org.exoplatform.services.jcr.ext.common.SessionProvider createSessionProvider()
SessionProviderService#getSessionProvider(null)org.exoplatform.services.jcr.ext.common.SessionProvider createUserProvider()
org.exoplatform.services.jcr.ext.common.SessionProvider createSystemProvider()
void closeSessionProvider(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
sessionProvider - the sessionProvider to closeSessionProvider.close();
javax.jcr.Node getNodeByPath(String nodePath,
org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider)
throws Exception
Exception
javax.jcr.Session getSession(org.exoplatform.services.jcr.ext.common.SessionProvider sprovider)
throws Exception
Exception
void autoShareCalendar(List<String> groupsOfUser,
String reciever)
throws Exception
Exception
void autoRemoveShareCalendar(String groupId,
String username)
throws Exception
Exception
boolean isRemoteCalendar(String username,
String calendarId)
throws Exception
username - owner of this calendarcalendarId - id of this calendar
Exception
Calendar updateRemoteCalendarInfo(RemoteCalendar remoteCalendar)
throws Exception
remoteCalendar - object content all properties for remote calendar.
Exception
Calendar createRemoteCalendar(RemoteCalendar remoteCalendar)
throws Exception
remoteCalendar - object content all properties for remote calendar.
Exception
void setRemoteEvent(String username,
String calendarId,
String eventId,
String href,
String etag)
throws Exception
Exception
void setRemoteCalendarLastUpdated(String username,
String calendarId,
Calendar timeGMT)
throws Exception
username - calendarId - timeGMT -
Exception
Calendar getRemoteCalendar(String username,
String remoteUrl,
String remoteType)
throws Exception
Exception
int getRemoteCalendarCount(String username)
throws Exception
Exception
void setCalDavResourceHref(String username,
String calendarId,
String eventId,
String href)
throws Exception
Exception
void setCalDavResourceEtag(String username,
String calendarId,
String eventId,
String etag)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||