Package net.bluemind.calendar.api
Interface ICalendar
- All Superinterfaces:
IChangelogSupport,ICountingSupport,ICrudByIdSupport<VEventSeries>,IItemChangelogSupport,IReadByIdSupport<VEventSeries>,IRestoreCrudSupport<VEventSeries>,IRestoreItemCrudSupport<VEventSeries>,IRestoreSupport<VEventSeries>,ISortingSupport
- All Known Subinterfaces:
IInternalCalendar
@Path("/calendars/{containerUid}")
public interface ICalendar
extends IChangelogSupport, IItemChangelogSupport, ICrudByIdSupport<VEventSeries>, ICountingSupport, ISortingSupport, IRestoreItemCrudSupport<VEventSeries>
Calendar operations.
-
Method Summary
Modifier and TypeMethodDescriptionall()Returns all the items uid from the container.voidcreate(String uid, VEventSeries event, Boolean sendNotifications) Creates aVEvent.voidDeletes theVEventSeriesidentified by the given unique identifier.getByIcsUid(String uid) Returns allVEventSeriesmatching the given ICS unique identifier.getComplete(String uid) Returns theVEventSeriesidentified by the given unique identifier.booleanCheck the automatic synchronization is activated for this calendar.list()List all the events of this calendar.multipleGet(List<String> uids) Fetch multipleVEventSeriesidentified by the given unique identifiers.reset()Remove all events from this calendar.search(VEventQuery query) Search for events matching the given query.Search pending counters of the current usersync(Long since, VEventChanges changes) Apply the given changes and return the differences since the given time.voidTouch aVEvent.voidupdate(String uid, VEventSeries event, Boolean sendNotifications) Updates aVEventSeries.updates(VEventChanges changes) Applies changes (create, update, delete) to a calendar specified by itscontainerUid.Methods inherited from interface net.bluemind.core.container.api.IChangelogSupport
changeset, changesetById, filteredChangesetById, getVersionMethods inherited from interface net.bluemind.core.container.api.ICountingSupport
countMethods inherited from interface net.bluemind.core.container.api.ICrudByIdSupport
createById, deleteById, multipleDeleteById, multipleDeleteById, updateByIdMethods inherited from interface net.bluemind.core.container.api.IItemChangelogSupport
itemChangelogMethods inherited from interface net.bluemind.core.container.api.IReadByIdSupport
getCompleteById, multipleGetByIdMethods inherited from interface net.bluemind.core.container.api.IRestoreCrudSupport
deleteMethods inherited from interface net.bluemind.core.container.api.IRestoreSupport
get, itemValueExists, restoreMethods inherited from interface net.bluemind.core.container.api.ISortingSupport
sortedIds
-
Method Details
-
create
@PUT @Path("{uid}") void create(@PathParam("uid") String uid, VEventSeries event, @QueryParam("sendNotifications") Boolean sendNotifications) throws ServerFault Creates aVEvent.- Parameters:
uid- the unique identifier for the new eventevent- theVEventSeriesto storesendNotifications- iftruethen notify this event creation on the events bus- Throws:
ServerFault
-
update
@POST @Path("{uid}") void update(@PathParam("uid") String uid, VEventSeries event, @QueryParam("sendNotifications") Boolean sendNotifications) throws ServerFault Updates aVEventSeries.- Parameters:
uid- the unique identifier of the eventevent- theVEventSeriesto updatesendNotifications- iftruethen notify this event creation on the events bus- Throws:
ServerFault
-
getComplete
@GET @Path("{uid}/complete") ItemValue<VEventSeries> getComplete(@PathParam("uid") String uid) throws ServerFault Returns theVEventSeriesidentified by the given unique identifier.- Specified by:
getCompletein interfaceIRestoreItemCrudSupport<VEventSeries>- Parameters:
uid- the unique identifier of the event- Returns:
- a
VEventSeriesif successful - Throws:
ServerFault
-
getByIcsUid
@GET @Path("_icsuid/{uid}") List<ItemValue<VEventSeries>> getByIcsUid(@PathParam("uid") String uid) throws ServerFault Returns allVEventSeriesmatching the given ICS unique identifier.- Parameters:
uid- the ICS unique identifier- Returns:
- the list of matching
VEventSeries - Throws:
ServerFault
-
multipleGet
@POST @Path("_mget") List<ItemValue<VEventSeries>> multipleGet(List<String> uids) throws ServerFault Fetch multipleVEventSeriesidentified by the given unique identifiers.- Parameters:
uids- the list of unique identifiers- Returns:
- all matching
VEventSeries - Throws:
ServerFault
-
delete
@DELETE @Path("{uid}") void delete(@PathParam("uid") String uid, @QueryParam("sendNotifications") Boolean sendNotifications) throws ServerFault Deletes theVEventSeriesidentified by the given unique identifier.- Parameters:
uid- the unique identifier of the eventsendNotifications- iftruethen notify this event deletion on the events bus- Throws:
ServerFault
-
touch
Touch aVEvent.- Parameters:
uid- the unique identifier of the event- Throws:
ServerFault
-
updates
Applies changes (create, update, delete) to a calendar specified by itscontainerUid.- Parameters:
changes- the changes to apply- Throws:
ServerFault
-
search
@POST @Path("_search") ListResult<ItemValue<VEventSeries>> search(VEventQuery query) throws ServerFault Search for events matching the given query.- Parameters:
query- theVEventQueryto match against- Returns:
- the matching
VEventSeries - Throws:
ServerFault
-
sync
@PUT @Path("_sync") ContainerChangeset<String> sync(@QueryParam("since") Long since, VEventChanges changes) throws ServerFault Apply the given changes and return the differences since the given time. CLIENT_WIN style.- Parameters:
since- the time from wich compare changeschanges- the changes to apply- Returns:
- the
ContainerChangesetof the difSortDescriptorferences - Throws:
ServerFault
-
list
List all the events of this calendar.- Returns:
- all the
VEventSeries - Throws:
ServerFault
-
reset
Remove all events from this calendar.- Returns:
- the reference to this asynchronous operation
- Throws:
ServerFault
-
all
Returns all the items uid from the container.- Returns:
- all the items uid from the container.
- Throws:
ServerFault
-
isAutoSyncActivated
Check the automatic synchronization is activated for this calendar.- Returns:
trueif this calendar is automatically synchronized,falseotherwise- Throws:
ServerFault
-
searchPendingCounters
Search pending counters of the current user- Returns:
-