public interface EventsI extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
EventsI.CopyMoveStatus
Result from copy or move operations.
|
static class |
EventsI.RealiasResult |
static class |
EventsI.SetEntityCategoriesResult |
| Modifier and Type | Method and Description |
|---|---|
EventInfo.UpdateResult |
add(EventInfo ei,
boolean noInvites,
boolean scheduling,
boolean autoCreateCollection,
boolean rollbackOnError)
Add an event and ensure its location and contact exist.
|
void |
claim(BwEvent ev)
Claim ownership of this event
|
EventsI.CopyMoveStatus |
copyMoveNamed(EventInfo from,
BwCalendar to,
String name,
boolean copy,
boolean overwrite,
boolean newGuidOK)
Copy or move the given named entity to the destination calendar and give it
the supplied name.
|
boolean |
delete(EventInfo ei,
boolean sendSchedulingMessage)
Delete an event.
|
EventInfo |
get(BwCalendar col,
String name,
String recurrenceId,
List<String> retrieveList)
Get events given the calendar and String name.
|
EventInfo |
get(String colPath,
String name)
Get events given the calendar and String name.
|
EventInfo |
get(String colPath,
String name,
String recurrenceId)
Get events given the calendar and String name.
|
Collection<EventInfo> |
getByUid(String colPath,
String guid,
String recurrenceId,
RecurringRetrievalMode recurRetrieval)
Return one or more events for the current user using the calendar, guid
and the recurrence id as a key.
|
Collection<EventInfo> |
getEvents(BwCalendar cal,
org.bedework.caldav.util.filter.FilterBase filter,
BwDateTime startDate,
BwDateTime endDate,
List<BwIcalPropertyInfo.BwIcalPropertyInfoEntry> retrieveList,
BwIndexer.DeletedState delState,
RecurringRetrievalMode recurRetrieval)
Return the events for the current user within the given date and time
range.
|
InstancesResponse |
getInstances(GetInstancesRequest req)
Return the instances for a given combination of start date, rrule,
exdates and rdates.
|
void |
markDeleted(BwEvent event)
For an event to which we have write access we simply mark it deleted.
|
EventsI.RealiasResult |
reAlias(BwEvent ev)
Realias the event - set categories according to the set of aliases.
|
void |
reindex(EventInfo ei)
Reindex an event.
|
EventsI.SetEntityCategoriesResult |
setEntityCategories(CategorisedEntity ent,
Set<BwCategory> extraCats,
Set<String> defCatUids,
Set<String> allDefCatUids,
Collection<String> strCatUids,
ChangeTable changes)
Set the entity categories based on multivalued request parameter "categoryKey".
|
EventInfo.UpdateResult |
update(EventInfo ei,
boolean noInvites)
Update an event.
|
EventInfo.UpdateResult |
update(EventInfo ei,
boolean noInvites,
String fromAttUri)
Update an event in response to an attendee.
|
EventInfo.UpdateResult |
update(EventInfo ei,
boolean noInvites,
String fromAttUri,
boolean alwaysWrite)
Update an event in response to an attendee.
|
Collection<EventInfo> getByUid(String colPath, String guid, String recurrenceId, RecurringRetrievalMode recurRetrieval) throws CalFacadeException
For non-recurring events, in normal calendar collections, one and only one event should be returned.
For non-recurring events, in special calendar collections, more than one event might be returned if the guid uniqueness requirement is relaxed, for example, in the inbox. For recurring events, the 'master' event defining the rules together with any exceptions should be returned.
colPath - String collection pathguid - String guid for the eventrecurrenceId - String recurrence id or nullrecurRetrieval - How recurring event is returned.CalFacadeException - on errorEventInfo get(String colPath, String name) throws CalFacadeException
colPath - String collection path fully resolved to targetname - String possible nameCalFacadeException - on errorEventInfo get(String colPath, String name, String recurrenceId) throws CalFacadeException
colPath - String collection pathname - String possible namerecurrenceId - non-null for single instanceCalFacadeException - on errorEventInfo get(BwCalendar col, String name, String recurrenceId, List<String> retrieveList) throws CalFacadeException
col - Collection - possibly a filtered aliasname - String namerecurrenceId - non-null for single instanceretrieveList - List of properties to retrieve or null for a full event.CalFacadeException - on errorCollection<EventInfo> getEvents(BwCalendar cal, org.bedework.caldav.util.filter.FilterBase filter, BwDateTime startDate, BwDateTime endDate, List<BwIcalPropertyInfo.BwIcalPropertyInfoEntry> retrieveList, BwIndexer.DeletedState delState, RecurringRetrievalMode recurRetrieval) throws CalFacadeException
cal - BwCalendar object - non-null means limit to given calendar
null is limit to current userfilter - BwFilter object restricting search or null.startDate - BwDateTime start - may be nullendDate - BwDateTime end - may be null.retrieveList - List of properties to retrieve or null for a full event.recurRetrieval - How recurring event is returned.CalFacadeException - on errorboolean delete(EventInfo ei, boolean sendSchedulingMessage) throws CalFacadeException
ei - BwEvent object to be deletedsendSchedulingMessage - Send a declined or cancel scheduling messageCalFacadeException - on errorEventInfo.UpdateResult add(EventInfo ei, boolean noInvites, boolean scheduling, boolean autoCreateCollection, boolean rollbackOnError) throws CalFacadeException
For public events some calendar implementors choose to allow the dynamic creation of locations and contacts. For each of those, if we have an id, then the object represents a preexisting database item.
Otherwise the client has provided information which will be used to locate an already existing location or contact. Failing that we use the information to create a new entry.
For user clients, we generally assume no contact and the location is optional. However, both conditions are enforced at the application level.
On return the event object will have been updated. In addition the location and contact may have been updated.
If this is a scheduling event and noInvites is set to false then invitations wil be sent out to the attendees.
The event to be added may be a reference to another event. In this case a number of fields should have been copied from that event. Other fields will come from the target.
ei - EventInfo object to be addednoInvites - True for don't send invitations.scheduling - True if this is to be added to an inbox - affects required
access.autoCreateCollection - - true if we should add a missing collectionrollbackOnError - true to roll back if we get an errorCalFacadeException - on errorvoid reindex(EventInfo ei)
ei - EventInfo object to be reindexedEventInfo.UpdateResult update(EventInfo ei, boolean noInvites) throws CalFacadeException
ei - EventInfo object to be addednoInvites - True for don't send invitations.CalFacadeException - on errorEventInfo.UpdateResult update(EventInfo ei, boolean noInvites, String fromAttUri) throws CalFacadeException
Any changeset should be embedded in the event info object.
ei - EventInfo object to be addednoInvites - True for don't send invitations.fromAttUri - attendee respondingCalFacadeException - on errorEventInfo.UpdateResult update(EventInfo ei, boolean noInvites, String fromAttUri, boolean alwaysWrite) throws CalFacadeException
Any changeset should be embedded in the event info object.
ei - EventInfo object to be addednoInvites - True for don't send invitations.fromAttUri - attendee respondingalwaysWrite - write and reindex whatever changetable saysCalFacadeException - on errorvoid markDeleted(BwEvent event) throws CalFacadeException
Otherwise we add an annotation maarking the event as deleted.
event - the eventCalFacadeException - on errorEventsI.CopyMoveStatus copyMoveNamed(EventInfo from, BwCalendar to, String name, boolean copy, boolean overwrite, boolean newGuidOK) throws CalFacadeException
from - Source named entityto - Destination calendarname - String name of new entitycopy - true for copyingoverwrite - if destination exists replace it.newGuidOK - set a new guid if needed (e.g. copy in same collection)CalFacadeException - on errorvoid claim(BwEvent ev) throws CalFacadeException
ev - eventCalFacadeException - on errorEventsI.RealiasResult reAlias(BwEvent ev)
This is a bedework function in which we specify which set of aliases we used to add the event. Aliases are used to filter the data and provide a view for users, e.g category="Films"
We need these aliases to provide a way of informing the user what they can subscribe to in order to see the events of interest.
We also use them to set and unset categories, allowing event submitters to consider only topic areas and leave it up to system administrators to define which categories get set
Each alias is a virtual path. For example "/user/adgrp_Eng/Lectures/Lectures"
might be a real path with two components
"/user/adgrp_Eng/Lectures" and
"Lectures"
"/user/adgrp_Eng/Lectures" is aliased to "/public/aliases/Lectures" which is a folder containing the alias "/public/aliases/Lectures/Lectures" which is aliased to the single calendar.
ev - eventInstancesResponse getInstances(GetInstancesRequest req)
req - parameters for the methodEventsI.SetEntityCategoriesResult setEntityCategories(CategorisedEntity ent, Set<BwCategory> extraCats, Set<String> defCatUids, Set<String> allDefCatUids, Collection<String> strCatUids, ChangeTable changes) throws CalFacadeException
We build a list of categories then update the membership of the entity category collection to correspond.
ent - categorised entity to be adjustedextraCats - Categories to add as a result of other operationsdefCatUids - uids of default categories for current userallDefCatUids - uids of all public default categoriesstrCatUids - Categories to add from requestchanges - a change tableCalFacadeException - on errorCopyright © 2019 Bedework. All rights reserved.