migrate therinaldos.com data
Build & Deploy to DigitalOcean Space / build (push) Failing after 2m38s

This commit is contained in:
2024-05-05 15:50:45 -04:00
commit ef1ff240d4
23182 changed files with 3801898 additions and 0 deletions
@@ -0,0 +1,73 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class AddressBookCreatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class AddressBookCreatedEvent extends Event {
/** @var int */
private $addressBookId;
/** @var array */
private $addressBookData;
/**
* AddressBookCreatedEvent constructor.
*
* @param int $addressBookId
* @param array $addressBookData
* @since 20.0.0
*/
public function __construct(int $addressBookId,
array $addressBookData) {
parent::__construct();
$this->addressBookId = $addressBookId;
$this->addressBookData = $addressBookData;
}
/**
* @return int
* @since 20.0.0
*/
public function getAddressBookId(): int {
return $this->addressBookId;
}
/**
* @return array
* @since 20.0.0
*/
public function getAddressBookData(): array {
return $this->addressBookData;
}
}
@@ -0,0 +1,87 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class AddressBookDeletedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class AddressBookDeletedEvent extends Event {
/** @var int */
private $addressBookId;
/** @var array */
private $addressBookData;
/** @var array */
private $shares;
/**
* AddressBookDeletedEvent constructor.
*
* @param int $addressBookId
* @param array $addressBookData
* @param array $shares
* @since 20.0.0
*/
public function __construct(int $addressBookId,
array $addressBookData,
array $shares) {
parent::__construct();
$this->addressBookId = $addressBookId;
$this->addressBookData = $addressBookData;
$this->shares = $shares;
}
/**
* @return int
* @since 20.0.0
*/
public function getAddressBookId():int {
return $this->addressBookId;
}
/**
* @return array
* @since 20.0.0
*/
public function getAddressBookData(): array {
return $this->addressBookData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
}
@@ -0,0 +1,115 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class AddressBookShareUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class AddressBookShareUpdatedEvent extends Event {
/** @var int */
private $addressBookId;
/** @var array */
private $addressBookData;
/** @var array */
private $oldShares;
/** @var array */
private $added;
/** @var array */
private $removed;
/**
* AddressBookShareUpdatedEvent constructor.
*
* @param int $addressBookId
* @param array $addressBookData
* @param array $oldShares
* @param array $added
* @param array $removed
* @since 20.0.0
*/
public function __construct(int $addressBookId,
array $addressBookData,
array $oldShares,
array $added,
array $removed) {
parent::__construct();
$this->addressBookId = $addressBookId;
$this->addressBookData = $addressBookData;
$this->oldShares = $oldShares;
$this->added = $added;
$this->removed = $removed;
}
/**
* @return int
* @since 20.0.0
*/
public function getAddressBookId(): int {
return $this->addressBookId;
}
/**
* @return array
* @since 20.0.0
*/
public function getAddressBookData(): array {
return $this->addressBookData;
}
/**
* @return array
* @since 20.0.0
*/
public function getOldShares(): array {
return $this->oldShares;
}
/**
* @return array
* @since 20.0.0
*/
public function getAdded(): array {
return $this->added;
}
/**
* @return array
* @since 20.0.0
*/
public function getRemoved(): array {
return $this->removed;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class AddressBookUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class AddressBookUpdatedEvent extends Event {
/** @var int */
private $addressBookId;
/** @var array */
private $addressBookData;
/** @var array */
private $shares;
/** @var array */
private $mutations;
/**
* AddressBookUpdatedEvent constructor.
*
* @param int $addressBookId
* @param array $addressBookData
* @param array $shares
* @param array $mutations
* @since 20.0.0
*/
public function __construct(int $addressBookId,
array $addressBookData,
array $shares,
array $mutations) {
parent::__construct();
$this->addressBookId = $addressBookId;
$this->addressBookData = $addressBookData;
$this->shares = $shares;
$this->mutations = $mutations;
}
/**
* @return int
* @since 20.0.0
*/
public function getAddressBookId(): int {
return $this->addressBookId;
}
/**
* @return array
* @since 20.0.0
*/
public function getAddressBookData(): array {
return $this->addressBookData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getMutations(): array {
return $this->mutations;
}
}
@@ -0,0 +1,49 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2021 Robin Appelman <robin@icewind.nl>
*
* @author Robin Appelman <robin@icewind.nl>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
use OCP\Files\File;
/**
* @since 22.0.0
*/
class BeforeFileDirectDownloadedEvent extends Event {
private $file;
public function __construct(File $file) {
parent::__construct();
$this->file = $file;
}
/**
* @return File
* @since 22.0.0
*/
public function getFile(): File {
return $this->file;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CachedCalendarObjectCreatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CachedCalendarObjectCreatedEvent extends Event {
/** @var int */
private $subscriptionId;
/** @var array */
private $subscriptionData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* CachedCalendarObjectCreatedEvent constructor.
*
* @param int $subscriptionId
* @param array $subscriptionData
* @param array $shares
* @param array $objectData
* @since 20.0.0
*/
public function __construct(int $subscriptionId,
array $subscriptionData,
array $shares,
array $objectData) {
parent::__construct();
$this->subscriptionId = $subscriptionId;
$this->subscriptionData = $subscriptionData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 20.0.0
*/
public function getSubscriptionId(): int {
return $this->subscriptionId;
}
/**
* @return array
* @since 20.0.0
*/
public function getSubscriptionData(): array {
return $this->subscriptionData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CachedCalendarObjectDeletedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CachedCalendarObjectDeletedEvent extends Event {
/** @var int */
private $subscriptionId;
/** @var array */
private $subscriptionData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* CachedCalendarObjectDeletedEvent constructor.
*
* @param int $subscriptionId
* @param array $subscriptionData
* @param array $shares
* @param array $objectData
* @since 20.0.0
*/
public function __construct(int $subscriptionId,
array $subscriptionData,
array $shares,
array $objectData) {
parent::__construct();
$this->subscriptionId = $subscriptionId;
$this->subscriptionData = $subscriptionData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 20.0.0
*/
public function getSubscriptionId(): int {
return $this->subscriptionId;
}
/**
* @return array
* @since 20.0.0
*/
public function getSubscriptionData(): array {
return $this->subscriptionData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CachedCalendarObjectUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CachedCalendarObjectUpdatedEvent extends Event {
/** @var int */
private $subscriptionId;
/** @var array */
private $subscriptionData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* CachedCalendarObjectUpdatedEvent constructor.
*
* @param int $subscriptionId
* @param array $subscriptionData
* @param array $shares
* @param array $objectData
* @since 20.0.0
*/
public function __construct(int $subscriptionId,
array $subscriptionData,
array $shares,
array $objectData) {
parent::__construct();
$this->subscriptionId = $subscriptionId;
$this->subscriptionData = $subscriptionData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 20.0.0
*/
public function getSubscriptionId(): int {
return $this->subscriptionId;
}
/**
* @return array
* @since 20.0.0
*/
public function getSubscriptionData(): array {
return $this->subscriptionData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,73 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarCreatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarCreatedEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/**
* CalendarCreatedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
}
@@ -0,0 +1,87 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarDeletedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarDeletedEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/**
* CalendarDeletedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
}
@@ -0,0 +1,82 @@
<?php
declare(strict_types=1);
/**
* @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* @since 22.0.0
*/
class CalendarMovedToTrashEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/**
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @since 22.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
}
/**
* @return int
* @since 22.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 22.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 22.0.0
*/
public function getShares(): array {
return $this->shares;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarObjectCreatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarObjectCreatedEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* CalendarObjectCreatedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @param array $objectData
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares,
array $objectData) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarObjectDeletedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarObjectDeletedEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* CalendarObjectDeletedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @param array $objectData
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares,
array $objectData) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,120 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarObjectMovedEvent
*
* @package OCA\DAV\Events
* @since 25.0.0
*/
class CalendarObjectMovedEvent extends Event {
private int $sourceCalendarId;
private array $sourceCalendarData;
private int $targetCalendarId;
private array $targetCalendarData;
private array $sourceShares;
private array $targetShares;
private array $objectData;
/**
* @since 25.0.0
*/
public function __construct(int $sourceCalendarId,
array $sourceCalendarData,
int $targetCalendarId,
array $targetCalendarData,
array $sourceShares,
array $targetShares,
array $objectData) {
parent::__construct();
$this->sourceCalendarId = $sourceCalendarId;
$this->sourceCalendarData = $sourceCalendarData;
$this->targetCalendarId = $targetCalendarId;
$this->targetCalendarData = $targetCalendarData;
$this->sourceShares = $sourceShares;
$this->targetShares = $targetShares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 25.0.0
*/
public function getSourceCalendarId(): int {
return $this->sourceCalendarId;
}
/**
* @return array
* @since 25.0.0
*/
public function getSourceCalendarData(): array {
return $this->sourceCalendarData;
}
/**
* @return int
* @since 25.0.0
*/
public function getTargetCalendarId(): int {
return $this->targetCalendarId;
}
/**
* @return array
* @since 25.0.0
*/
public function getTargetCalendarData(): array {
return $this->targetCalendarData;
}
/**
* @return array
* @since 25.0.0
*/
public function getSourceShares(): array {
return $this->sourceShares;
}
/**
* @return array
* @since 25.0.0
*/
public function getTargetShares(): array {
return $this->targetShares;
}
/**
* @return array
* @since 25.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,96 @@
<?php
declare(strict_types=1);
/**
* @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* @since 22.0.0
*/
class CalendarObjectMovedToTrashEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @param array $objectData
* @since 22.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares,
array $objectData) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 22.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 22.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 22.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 22.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,96 @@
<?php
declare(strict_types=1);
/**
* @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* @since 22.0.0
*/
class CalendarObjectRestoredEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @param array $objectData
* @since 22.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares,
array $objectData) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 22.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 22.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 22.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 22.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarObjectUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarObjectUpdatedEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/** @var array */
private $objectData;
/**
* CalendarObjectUpdatedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @param array $objectData
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares,
array $objectData) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,82 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
* @author Thomas Citharel <nextcloud@tcit.fr>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarPublishedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarPublishedEvent extends Event {
private int $calendarId;
private array $calendarData;
private string $publicUri;
/**
* CalendarPublishedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @param string $publicUri
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
string $publicUri) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->publicUri = $publicUri;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return string
* @since 20.0.0
*/
public function getPublicUri(): string {
return $this->publicUri;
}
}
@@ -0,0 +1,82 @@
<?php
declare(strict_types=1);
/**
* @copyright 2021 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* @since 22.0.0
*/
class CalendarRestoredEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/**
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @since 22.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
}
/**
* @return int
* @since 22.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 22.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 22.0.0
*/
public function getShares(): array {
return $this->shares;
}
}
@@ -0,0 +1,114 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
use Sabre\CalDAV\Xml\Property\ScheduleCalendarTransp;
use Sabre\CalDAV\Xml\Property\SupportedCalendarComponentSet;
/**
* Class CalendarShareUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarShareUpdatedEvent extends Event {
private int $calendarId;
/** @var array{id: int, uri: string, '{http://calendarserver.org/ns/}getctag': string, '{http://sabredav.org/ns}sync-token': int, '{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set': SupportedCalendarComponentSet, '{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp': ScheduleCalendarTransp, '{urn:ietf:params:xml:ns:caldav}calendar-timezone': ?string } */
private array $calendarData;
/** @var list<array{href: string, commonName: string, status: int, readOnly: bool, '{http://owncloud.org/ns}principal': string, '{http://owncloud.org/ns}group-share': bool}> */
private array $oldShares;
/** @var list<array{href: string, commonName: string, readOnly: bool}> */
private array $added;
/** @var list<string> */
private array $removed;
/**
* CalendarShareUpdatedEvent constructor.
*
* @param int $calendarId
* @param array{id: int, uri: string, '{http://calendarserver.org/ns/}getctag': string, '{http://sabredav.org/ns}sync-token': int, '{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set': SupportedCalendarComponentSet, '{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp': ScheduleCalendarTransp, '{urn:ietf:params:xml:ns:caldav}calendar-timezone': ?string } $calendarData
* @param list<array{href: string, commonName: string, status: int, readOnly: bool, '{http://owncloud.org/ns}principal': string, '{http://owncloud.org/ns}group-share': bool}> $oldShares
* @param list<array{href: string, commonName: string, readOnly: bool}> $added
* @param list<string> $removed
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $oldShares,
array $added,
array $removed) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->oldShares = $oldShares;
$this->added = $added;
$this->removed = $removed;
}
/**
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array{id: int, uri: string, '{http://calendarserver.org/ns/}getctag': string, '{http://sabredav.org/ns}sync-token': int, '{urn:ietf:params:xml:ns:caldav}supported-calendar-component-set': SupportedCalendarComponentSet, '{urn:ietf:params:xml:ns:caldav}schedule-calendar-transp': ScheduleCalendarTransp, '{urn:ietf:params:xml:ns:caldav}calendar-timezone': ?string }
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return list<array{href: string, commonName: string, status: int, readOnly: bool, '{http://owncloud.org/ns}principal': string, '{http://owncloud.org/ns}group-share': bool}>
* @since 20.0.0
*/
public function getOldShares(): array {
return $this->oldShares;
}
/**
* @return list<array{href: string, commonName: string, readOnly: bool}>
* @since 20.0.0
*/
public function getAdded(): array {
return $this->added;
}
/**
* @return list<string>
* @since 20.0.0
*/
public function getRemoved(): array {
return $this->removed;
}
}
@@ -0,0 +1,70 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
* @author Thomas Citharel <nextcloud@tcit.fr>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarPublishedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarUnpublishedEvent extends Event {
private int $calendarId;
private array $calendarData;
/**
* CalendarUnpublishedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CalendarUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CalendarUpdatedEvent extends Event {
/** @var int */
private $calendarId;
/** @var array */
private $calendarData;
/** @var array */
private $shares;
/** @var array */
private $mutations;
/**
* CalendarUpdatedEvent constructor.
*
* @param int $calendarId
* @param array $calendarData
* @param array $shares
* @param array $mutations
* @since 20.0.0
*/
public function __construct(int $calendarId,
array $calendarData,
array $shares,
array $mutations) {
parent::__construct();
$this->calendarId = $calendarId;
$this->calendarData = $calendarData;
$this->shares = $shares;
$this->mutations = $mutations;
}
/**
* @return int
* @since 20.0.0
*/
public function getCalendarId(): int {
return $this->calendarId;
}
/**
* @return array
* @since 20.0.0
*/
public function getCalendarData(): array {
return $this->calendarData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getMutations(): array {
return $this->mutations;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CardCreatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CardCreatedEvent extends Event {
/** @var int */
private $addressBookId;
/** @var array */
private $addressBookData;
/** @var array */
private $shares;
/** @var array */
private $cardData;
/**
* CardCreatedEvent constructor.
*
* @param int $addressBookId
* @param array $addressBookData
* @param array $shares
* @param array $cardData
* @since 20.0.0
*/
public function __construct(int $addressBookId,
array $addressBookData,
array $shares,
array $cardData) {
parent::__construct();
$this->addressBookId = $addressBookId;
$this->addressBookData = $addressBookData;
$this->shares = $shares;
$this->cardData = $cardData;
}
/**
* @return int
* @since 20.0.0
*/
public function getAddressBookId(): int {
return $this->addressBookId;
}
/**
* @return array
* @since 20.0.0
*/
public function getAddressBookData(): array {
return $this->addressBookData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getCardData(): array {
return $this->cardData;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CardDeletedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CardDeletedEvent extends Event {
/** @var int */
private $addressBookId;
/** @var array */
private $addressBookData;
/** @var array */
private $shares;
/** @var array */
private $cardData;
/**
* CardDeletedEvent constructor.
*
* @param int $addressBookId
* @param array $addressBookData
* @param array $shares
* @param array $cardData
* @since 20.0.0
*/
public function __construct(int $addressBookId,
array $addressBookData,
array $shares,
array $cardData) {
parent::__construct();
$this->addressBookId = $addressBookId;
$this->addressBookData = $addressBookData;
$this->shares = $shares;
$this->cardData = $cardData;
}
/**
* @return int
* @since 20.0.0
*/
public function getAddressBookId(): int {
return $this->addressBookId;
}
/**
* @return array
* @since 20.0.0
*/
public function getAddressBookData(): array {
return $this->addressBookData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getCardData(): array {
return $this->cardData;
}
}
@@ -0,0 +1,120 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2023, Thomas Citharel <nextcloud@tcit.fr>
*
* @author Thomas Citharel <nextcloud@tcit.fr>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CardMovedEvent
*
* @package OCA\DAV\Events
* @since 27.0.0
*/
class CardMovedEvent extends Event {
private int $sourceAddressBookId;
private array $sourceAddressBookData;
private int $targetAddressBookId;
private array $targetAddressBookData;
private array $sourceShares;
private array $targetShares;
private array $objectData;
/**
* @since 27.0.0
*/
public function __construct(int $sourceAddressBookId,
array $sourceAddressBookData,
int $targetAddressBookId,
array $targetAddressBookData,
array $sourceShares,
array $targetShares,
array $objectData) {
parent::__construct();
$this->sourceAddressBookId = $sourceAddressBookId;
$this->sourceAddressBookData = $sourceAddressBookData;
$this->targetAddressBookId = $targetAddressBookId;
$this->targetAddressBookData = $targetAddressBookData;
$this->sourceShares = $sourceShares;
$this->targetShares = $targetShares;
$this->objectData = $objectData;
}
/**
* @return int
* @since 27.0.0
*/
public function getSourceAddressBookId(): int {
return $this->sourceAddressBookId;
}
/**
* @return array
* @since 27.0.0
*/
public function getSourceAddressBookData(): array {
return $this->sourceAddressBookData;
}
/**
* @return int
* @since 27.0.0
*/
public function getTargetAddressBookId(): int {
return $this->targetAddressBookId;
}
/**
* @return array
* @since 27.0.0
*/
public function getTargetAddressBookData(): array {
return $this->targetAddressBookData;
}
/**
* @return array
* @since 27.0.0
*/
public function getSourceShares(): array {
return $this->sourceShares;
}
/**
* @return array
* @since 27.0.0
*/
public function getTargetShares(): array {
return $this->targetShares;
}
/**
* @return array
* @since 27.0.0
*/
public function getObjectData(): array {
return $this->objectData;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class CardUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class CardUpdatedEvent extends Event {
/** @var int */
private $addressBookId;
/** @var array */
private $addressBookData;
/** @var array */
private $shares;
/** @var array */
private $cardData;
/**
* CardUpdatedEvent constructor.
*
* @param int $addressBookId
* @param array $addressBookData
* @param array $shares
* @param array $cardData
* @since 20.0.0
*/
public function __construct(int $addressBookId,
array $addressBookData,
array $shares,
array $cardData) {
parent::__construct();
$this->addressBookId = $addressBookId;
$this->addressBookData = $addressBookData;
$this->shares = $shares;
$this->cardData = $cardData;
}
/**
* @return int
* @since 20.0.0
*/
public function getAddressBookId(): int {
return $this->addressBookId;
}
/**
* @return array
* @since 20.0.0
*/
public function getAddressBookData(): array {
return $this->addressBookData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getCardData(): array {
return $this->cardData;
}
}
@@ -0,0 +1,56 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2023, Joas Schilling <coding@schilljs.com>
*
* @author Joas Schilling <coding@schilljs.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
use Sabre\DAV\Server;
/**
* This event is triggered during the setup of the SabreDAV server to allow the
* registration of additional plugins.
*
* @since 28.0.0
*/
class SabrePluginAddEvent extends Event {
/** @var Server */
private $server;
/**
* @since 28.0.0
*/
public function __construct(Server $server) {
parent::__construct();
$this->server = $server;
}
/**
* @since 28.0.0
*/
public function getServer(): Server {
return $this->server;
}
}
@@ -0,0 +1,55 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Morris Jobke <hey@morrisjobke.de>
*
* @author Morris Jobke <hey@morrisjobke.de>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
use Sabre\DAV\Server;
/**
* This event is triggered during the setup of the SabreDAV server to allow the
* registration of additional authentication backends.
*
* @since 20.0.0
*/
class SabrePluginAuthInitEvent extends Event {
/** @var Server */
private $server;
/**
* @since 20.0.0
*/
public function __construct(Server $server) {
$this->server = $server;
}
/**
* @since 20.0.0
*/
public function getServer(): Server {
return $this->server;
}
}
@@ -0,0 +1,73 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class SubscriptionCreatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class SubscriptionCreatedEvent extends Event {
/** @var int */
private $subscriptionId;
/** @var array */
private $subscriptionData;
/**
* SubscriptionCreatedEvent constructor.
*
* @param int $subscriptionId
* @param array $subscriptionData
* @since 20.0.0
*/
public function __construct(int $subscriptionId,
array $subscriptionData) {
parent::__construct();
$this->subscriptionId = $subscriptionId;
$this->subscriptionData = $subscriptionData;
}
/**
* @return int
* @since 20.0.0
*/
public function getSubscriptionId(): int {
return $this->subscriptionId;
}
/**
* @return array
* @since 20.0.0
*/
public function getSubscriptionData(): array {
return $this->subscriptionData;
}
}
@@ -0,0 +1,87 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class SubscriptionDeletedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class SubscriptionDeletedEvent extends Event {
/** @var int */
private $subscriptionId;
/** @var array */
private $subscriptionData;
/** @var array */
private $shares;
/**
* SubscriptionDeletedEvent constructor.
*
* @param int $subscriptionId
* @param array $subscriptionData
* @param array $shares
* @since 20.0.0
*/
public function __construct(int $subscriptionId,
array $subscriptionData,
array $shares) {
parent::__construct();
$this->subscriptionId = $subscriptionId;
$this->subscriptionData = $subscriptionData;
$this->shares = $shares;
}
/**
* @return int
* @since 20.0.0
*/
public function getSubscriptionId(): int {
return $this->subscriptionId;
}
/**
* @return array
* @since 20.0.0
*/
public function getSubscriptionData(): array {
return $this->subscriptionData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
}
@@ -0,0 +1,101 @@
<?php
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Georg Ehrke
*
* @author Georg Ehrke <oc.list@georgehrke.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
namespace OCA\DAV\Events;
use OCP\EventDispatcher\Event;
/**
* Class SubscriptionUpdatedEvent
*
* @package OCA\DAV\Events
* @since 20.0.0
*/
class SubscriptionUpdatedEvent extends Event {
/** @var int */
private $subscriptionId;
/** @var array */
private $subscriptionData;
/** @var array */
private $shares;
/** @var array */
private $mutations;
/**
* SubscriptionUpdatedEvent constructor.
*
* @param int $subscriptionId
* @param array $subscriptionData
* @param array $shares
* @param array $mutations
* @since 20.0.0
*/
public function __construct(int $subscriptionId,
array $subscriptionData,
array $shares,
array $mutations) {
parent::__construct();
$this->subscriptionId = $subscriptionId;
$this->subscriptionData = $subscriptionData;
$this->shares = $shares;
$this->mutations = $mutations;
}
/**
* @return int
* @since 20.0.0
*/
public function getSubscriptionId(): int {
return $this->subscriptionId;
}
/**
* @return array
* @since 20.0.0
*/
public function getSubscriptionData(): array {
return $this->subscriptionData;
}
/**
* @return array
* @since 20.0.0
*/
public function getShares(): array {
return $this->shares;
}
/**
* @return array
* @since 20.0.0
*/
public function getMutations(): array {
return $this->mutations;
}
}