Package net.bluemind.calendar.api
Interface ICalendar
- All Superinterfaces:
IChangelogSupport
,ICountingSupport
,ICrudByIdSupport<VEventSeries>
,IReadByIdSupport<VEventSeries>
,IRestoreCrudSupport<VEventSeries>
,IRestoreItemCrudSupport<VEventSeries>
,IRestoreSupport<VEventSeries>
,ISortingSupport
- All Known Subinterfaces:
IInternalCalendar
@Path("/calendars/{containerUid}")
public interface ICalendar
extends IChangelogSupport, ICrudByIdSupport<VEventSeries>, ICountingSupport, ISortingSupport, IRestoreItemCrudSupport<VEventSeries>
Calendar operations.
-
Method Summary
Modifier and TypeMethodDescriptionall()
Returns all the items uid from the container.void
create
(String uid, VEventSeries event, Boolean sendNotifications) Creates aVEvent
.void
Deletes theVEventSeries
identified by the given unique identifier.getByIcsUid
(String uid) Returns allVEventSeries
matching the given ICS unique identifier.getComplete
(String uid) Returns theVEventSeries
identified by the given unique identifier.boolean
Check the automatic synchronization is activated for this calendar.list()
List all the events of this calendar.multipleGet
(List<String> uids) Fetch multipleVEventSeries
identified 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.void
Touch aVEvent
.void
update
(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
allIds, changeset, changesetById, filteredChangesetById, getVersion, itemChangelog
Methods inherited from interface net.bluemind.core.container.api.ICountingSupport
count
Methods inherited from interface net.bluemind.core.container.api.ICrudByIdSupport
createById, deleteById, multipleDeleteById, updateById
Methods inherited from interface net.bluemind.core.container.api.IReadByIdSupport
getCompleteById, multipleGetById
Methods inherited from interface net.bluemind.core.container.api.IRestoreCrudSupport
delete
Methods inherited from interface net.bluemind.core.container.api.IRestoreSupport
get, itemValueExists, restore
Methods 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
- theVEventSeries
to storesendNotifications
- iftrue
then 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
- theVEventSeries
to updatesendNotifications
- iftrue
then 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 theVEventSeries
identified by the given unique identifier.- Specified by:
getComplete
in interfaceIRestoreItemCrudSupport<VEventSeries>
- Parameters:
uid
- the unique identifier of the event- Returns:
- a
VEventSeries
if successful - Throws:
ServerFault
-
getByIcsUid
@GET @Path("_icsuid/{uid}") List<ItemValue<VEventSeries>> getByIcsUid(@PathParam("uid") String uid) throws ServerFault Returns allVEventSeries
matching 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 multipleVEventSeries
identified 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 theVEventSeries
identified by the given unique identifier.- Parameters:
uid
- the unique identifier of the eventsendNotifications
- iftrue
then 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
- theVEventQuery
to 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
ContainerChangeset
of 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:
true
if this calendar is automatically synchronized,false
otherwise- Throws:
ServerFault
-
searchPendingCounters
Search pending counters of the current user- Returns:
-