Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ Added APIs
- New method ``\OCP\IUser::canChangeEmail`` allowing to check if the user backend allows the user to change their email address.
- New method ``\OCP\Files\IFilenameValidator::sanitizeFilename`` allowing to sanitize a given filename to comply with configured constraints.
- New service ``\OCP\Template\ITemplateManager`` to access template related functions, and get instances of new interface ``\OCP\Template\ITemplate`` instead of building manually ``\OCP\Template``.
- New event ``\OCP\Files\Config\Event\UserMountAddedEvent`` which is emitted when new mount is added to the ``oc_mounts`` table.
- New event ``\OCP\Files\Config\Event\UserMountRemovedEvent`` which is emitted when an existing mount is removed from the ``oc_mounts`` table.
- New event ``\OCP\Files\Config\Event\UserMountUpdatedEvent`` which is emitted when an existing mount is updated in the ``oc_mounts`` table.

Changed APIs
^^^^^^^^^^^^
Expand Down
109 changes: 108 additions & 1 deletion developer_manual/basics/_available_events_ocp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,42 @@ Emitted when the authentication fails, but only if the login name can be associa
Dispatched before Sabre is loaded when accessing public webdav endpoints
This can be used to inject a Sabre plugin for example

``OCP\Calendar\Events\CalendarObjectCreatedEvent``
**************************************************

.. versionadded:: 32


``OCP\Calendar\Events\CalendarObjectDeletedEvent``
**************************************************

.. versionadded:: 32


``OCP\Calendar\Events\CalendarObjectMovedEvent``
************************************************

.. versionadded:: 32


``OCP\Calendar\Events\CalendarObjectMovedToTrashEvent``
*******************************************************

.. versionadded:: 32


``OCP\Calendar\Events\CalendarObjectRestoredEvent``
***************************************************

.. versionadded:: 32


``OCP\Calendar\Events\CalendarObjectUpdatedEvent``
**************************************************

.. versionadded:: 32


``OCP\Collaboration\AutoComplete\AutoCompleteEvent``
****************************************************

Expand Down Expand Up @@ -244,7 +280,7 @@ Event to allow to register the direct editor.
.. versionadded:: 18

Class GenericEvent
convenience reimplementation of \Symfony\Component\GenericEvent against
convenience re-implementation of \Symfony\Component\GenericEvent against
\OCP\EventDispatcher\Event

``OCP\Federation\Events\TrustedServerRemovedEvent``
Expand Down Expand Up @@ -294,6 +330,27 @@ Event for when a new entry gets added to the cache

Event for when an existing entry in the cache gets updated

``OCP\Files\Config\Event\UserMountAddedEvent``
**********************************************

.. versionadded:: 31

Event emitted when a user mount was added.

``OCP\Files\Config\Event\UserMountRemovedEvent``
************************************************

.. versionadded:: 31

Event emitted when a user mount was removed.

``OCP\Files\Config\Event\UserMountUpdatedEvent``
************************************************

.. versionadded:: 31

Event emitted when a user mount was moved.

``OCP\Files\Events\BeforeDirectFileDownloadEvent``
**************************************************

Expand All @@ -308,6 +365,13 @@ directly.
.. versionadded:: 18


``OCP\Files\Events\BeforeFileSystemSetupEvent``
***********************************************

.. versionadded:: 31

Event triggered before the file system is setup

``OCP\Files\Events\BeforeFolderScannedEvent``
*********************************************

Expand All @@ -319,6 +383,9 @@ directly.

.. versionadded:: 25

This event is triggered before a archive is created when a user requested
downloading a folder or multiple files.
By setting `successful` to false the tar creation can be aborted and the download denied.

``OCP\Files\Events\FileCacheUpdated``
*************************************
Expand Down Expand Up @@ -599,6 +666,12 @@ Even for when a log item is being logged

Emitted before a system mail is sent. It can be used to alter the message.

``OCP\Navigation\Events\LoadAdditionalEntriesEvent``
****************************************************

.. versionadded:: 31


``OCP\OCM\Events\ResourceTypeRegisterEvent``
********************************************

Expand All @@ -615,6 +688,9 @@ them in the OCM provider list and capability
.. versionchanged:: 28.0.0
the constructor arguments ``$width``, ``$height``, ``$crop`` and ``$mode`` are no longer nullable.

.. versionchanged:: 31.0.0
the constructor arguments ``$mimeType`` was added

Emitted before a file preview is being fetched.
It can be used to block preview rendering by throwing a ``OCP\Files\NotFoundException``

Expand Down Expand Up @@ -773,6 +849,16 @@ Class MapperEvent

Class SystemTagsEntityEvent

``OCP\TaskProcessing\Events\GetTaskProcessingProvidersEvent``
*************************************************************

.. versionadded:: 32

Event dispatched by the server to collect Task Processing Providers
and custom Task Types from listeners (like AppAPI).
Listeners should add their providers and task types using the
addProvider() and addTaskType() methods.

``OCP\TaskProcessing\Events\TaskFailedEvent``
*********************************************

Expand Down Expand Up @@ -829,6 +915,13 @@ Emitted before a new user is created on the back-end.
.. versionadded:: 18


``OCP\User\Events\BeforeUserIdUnassignedEvent``
***********************************************

.. versionadded:: 31

Emitted before removing the mapping between an external user and an internal userid

``OCP\User\Events\BeforeUserLoggedInEvent``
*******************************************

Expand Down Expand Up @@ -922,6 +1015,20 @@ Emitted when a new user has been created on the back-end.
.. versionadded:: 28


``OCP\User\Events\UserIdAssignedEvent``
***************************************

.. versionadded:: 31

Emitted by backends (like user_ldap) when a user created externally is mapped for the first time and assigned a userid

``OCP\User\Events\UserIdUnassignedEvent``
*****************************************

.. versionadded:: 31

Emitted after removing the mapping between an external user and an internal userid

``OCP\User\Events\UserLiveStatusEvent``
***************************************

Expand Down