|
19 | 19 | use OCA\DAV\Events\CalendarCreatedEvent; |
20 | 20 | use OCA\DAV\Events\CalendarDeletedEvent; |
21 | 21 | use OCA\DAV\Events\CalendarMovedToTrashEvent; |
22 | | -use OCA\DAV\Events\CalendarObjectCreatedEvent; |
23 | | -use OCA\DAV\Events\CalendarObjectDeletedEvent; |
24 | | -use OCA\DAV\Events\CalendarObjectMovedEvent; |
25 | | -use OCA\DAV\Events\CalendarObjectMovedToTrashEvent; |
26 | | -use OCA\DAV\Events\CalendarObjectRestoredEvent; |
27 | | -use OCA\DAV\Events\CalendarObjectUpdatedEvent; |
28 | 22 | use OCA\DAV\Events\CalendarPublishedEvent; |
29 | 23 | use OCA\DAV\Events\CalendarRestoredEvent; |
30 | 24 | use OCA\DAV\Events\CalendarShareUpdatedEvent; |
|
34 | 28 | use OCA\DAV\Events\SubscriptionDeletedEvent; |
35 | 29 | use OCA\DAV\Events\SubscriptionUpdatedEvent; |
36 | 30 | use OCP\AppFramework\Db\TTransactional; |
37 | | -use OCP\Calendar\Events\CalendarObjectCreatedEvent as PublicCalendarObjectCreatedEvent; |
38 | | -use OCP\Calendar\Events\CalendarObjectDeletedEvent as PublicCalendarObjectDeletedEvent; |
39 | | -use OCP\Calendar\Events\CalendarObjectMovedEvent as PublicCalendarObjectMovedEvent; |
40 | | -use OCP\Calendar\Events\CalendarObjectMovedToTrashEvent as PublicCalendarObjectMovedToTrashEvent; |
41 | | -use OCP\Calendar\Events\CalendarObjectRestoredEvent as PublicCalendarObjectRestoredEvent; |
42 | | -use OCP\Calendar\Events\CalendarObjectUpdatedEvent as PublicCalendarObjectUpdatedEvent; |
| 31 | +use OCP\Calendar\Events\CalendarObjectCreatedEvent; |
| 32 | +use OCP\Calendar\Events\CalendarObjectDeletedEvent; |
| 33 | +use OCP\Calendar\Events\CalendarObjectMovedEvent; |
| 34 | +use OCP\Calendar\Events\CalendarObjectMovedToTrashEvent; |
| 35 | +use OCP\Calendar\Events\CalendarObjectRestoredEvent; |
| 36 | +use OCP\Calendar\Events\CalendarObjectUpdatedEvent; |
43 | 37 | use OCP\Calendar\Exceptions\CalendarException; |
44 | 38 | use OCP\DB\Exception; |
45 | 39 | use OCP\DB\QueryBuilder\IQueryBuilder; |
@@ -1324,7 +1318,6 @@ public function createCalendarObject($calendarId, $objectUri, $calendarData, $ca |
1324 | 1318 | $shares = $this->getShares($calendarId); |
1325 | 1319 |
|
1326 | 1320 | $this->dispatcher->dispatchTyped(new CalendarObjectCreatedEvent($calendarId, $calendarRow, $shares, $objectRow)); |
1327 | | - $this->dispatcher->dispatchTyped(new PublicCalendarObjectCreatedEvent($calendarId, $calendarRow, $shares, $objectRow)); |
1328 | 1321 | } else { |
1329 | 1322 | $subscriptionRow = $this->getSubscriptionById($calendarId); |
1330 | 1323 |
|
@@ -1385,7 +1378,6 @@ public function updateCalendarObject($calendarId, $objectUri, $calendarData, $ca |
1385 | 1378 | $shares = $this->getShares($calendarId); |
1386 | 1379 |
|
1387 | 1380 | $this->dispatcher->dispatchTyped(new CalendarObjectUpdatedEvent($calendarId, $calendarRow, $shares, $objectRow)); |
1388 | | - $this->dispatcher->dispatchTyped(new PublicCalendarObjectUpdatedEvent($calendarId, $calendarRow, $shares, $objectRow)); |
1389 | 1381 | } else { |
1390 | 1382 | $subscriptionRow = $this->getSubscriptionById($calendarId); |
1391 | 1383 |
|
@@ -1447,7 +1439,6 @@ public function moveCalendarObject(int $sourceCalendarId, int $targetCalendarId, |
1447 | 1439 | $targetShares = $this->getShares($targetCalendarId); |
1448 | 1440 | $sourceCalendarRow = $this->getCalendarById($sourceCalendarId); |
1449 | 1441 | $this->dispatcher->dispatchTyped(new CalendarObjectMovedEvent($sourceCalendarId, $sourceCalendarRow, $targetCalendarId, $targetCalendarRow, $sourceShares, $targetShares, $object)); |
1450 | | - $this->dispatcher->dispatchTyped(new PublicCalendarObjectMovedEvent($sourceCalendarId, $sourceCalendarRow, $targetCalendarId, $targetCalendarRow, $sourceShares, $targetShares, $object)); |
1451 | 1442 | } |
1452 | 1443 | return true; |
1453 | 1444 | }, $this->db); |
@@ -1506,7 +1497,6 @@ public function deleteCalendarObject($calendarId, $objectUri, $calendarType = se |
1506 | 1497 | $shares = $this->getShares($calendarId); |
1507 | 1498 |
|
1508 | 1499 | $this->dispatcher->dispatchTyped(new CalendarObjectDeletedEvent($calendarId, $calendarRow, $shares, $data)); |
1509 | | - $this->dispatcher->dispatchTyped(new PublicCalendarObjectDeletedEvent($calendarId, $calendarRow, $shares, $data)); |
1510 | 1500 | } else { |
1511 | 1501 | $subscriptionRow = $this->getSubscriptionById($calendarId); |
1512 | 1502 |
|
@@ -1556,14 +1546,6 @@ public function deleteCalendarObject($calendarId, $objectUri, $calendarType = se |
1556 | 1546 | $data |
1557 | 1547 | ) |
1558 | 1548 | ); |
1559 | | - $this->dispatcher->dispatchTyped( |
1560 | | - new PublicCalendarObjectMovedToTrashEvent( |
1561 | | - $calendarId, |
1562 | | - $calendarData, |
1563 | | - $this->getShares($calendarId), |
1564 | | - $data |
1565 | | - ) |
1566 | | - ); |
1567 | 1549 | } |
1568 | 1550 | } |
1569 | 1551 |
|
@@ -1623,14 +1605,6 @@ public function restoreCalendarObject(array $objectData): void { |
1623 | 1605 | $row |
1624 | 1606 | ) |
1625 | 1607 | ); |
1626 | | - $this->dispatcher->dispatchTyped( |
1627 | | - new PublicCalendarObjectRestoredEvent( |
1628 | | - (int)$objectData['calendarid'], |
1629 | | - $calendarRow, |
1630 | | - $this->getShares((int)$row['calendarid']), |
1631 | | - $row |
1632 | | - ) |
1633 | | - ); |
1634 | 1608 | }, $this->db); |
1635 | 1609 | } |
1636 | 1610 |
|
|
0 commit comments