BaseEditService
A base implementation of the edit service which persists data to traditional CRUD services such as OData.
To support custom models, the BaseEditService
class requires a field map as a constructor parameter. Subclasses require you to
implement the read
operation, which is not called directly by the base class, and the save
method which persists the created,
updated, and deleted entities.
The events
observable will publish the current data which is set upon subscription by using, for example, an async pipe
(more information).
Implementations which utilize dedicated services, such as Google Calendar and Microsoft Exchange, will typically implement the
EditService
of the Scheduler directly.
See example in this article.
Selector
``
Fields
Name | Type | Default | Description |
---|---|---|---|
events |
|
An observable stream with the current events. | |
fields |
|
The model field map that will be used during the reading and updating of data items. |
Methods
create | ||||||
---|---|---|---|---|---|---|
Creates a new event. | ||||||
|
createException | |||||||||
---|---|---|---|---|---|---|---|---|---|
Creates an exception to an existing recurring event. The | |||||||||
|
findRecurrenceMaster | ||||||
---|---|---|---|---|---|---|
Returns the master recurring event for a specified recurring event. | ||||||
| ||||||
|
isException | ||||||
---|---|---|---|---|---|---|
Checks if the event is a recurrence exception. | ||||||
| ||||||
|
isRecurring | ||||||
---|---|---|---|---|---|---|
Checks if the event is part of the recurrence series. | ||||||
| ||||||
|
remove | ||||||
---|---|---|---|---|---|---|
Removes a non-recurring event. | ||||||
|
removeOccurrence | ||||||
---|---|---|---|---|---|---|
Removes a single occurrence from a series of recurring events. The | ||||||
|
removeSeries | ||||||
---|---|---|---|---|---|---|
Removes the recurrence series and exceptions, if any. | ||||||
|
update | |||||||||
---|---|---|---|---|---|---|---|---|---|
Updates the specified event by copying the changed fields from the supplied | |||||||||
|