Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-04-13 21:28:28 +0300
committerJulius Härtl <jus@bitgrid.net>2019-04-13 21:28:28 +0300
commit1bdb0ff3eaa0f8a874bbf306ca5fe8a45f8e6ff4 (patch)
tree69363d95e38dc7b02a55c4e2cf3a9149f75cbb46 /lib/Controller/PublicSessionController.php
parent66adbbbe655ef62f1545a39c2bf31630455af8da (diff)
Add first working version of collaborative editing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/Controller/PublicSessionController.php')
-rw-r--r--lib/Controller/PublicSessionController.php51
1 files changed, 51 insertions, 0 deletions
diff --git a/lib/Controller/PublicSessionController.php b/lib/Controller/PublicSessionController.php
new file mode 100644
index 000000000..446b02fde
--- /dev/null
+++ b/lib/Controller/PublicSessionController.php
@@ -0,0 +1,51 @@
+<?php
+/**
+ * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
+ *
+ * @author Julius Härtl <jus@bitgrid.net>
+ *
+ * @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/>.
+ *
+ */
+
+declare(strict_types=1);
+
+
+namespace OCA\Text\Controller;
+
+use OCP\AppFramework\Controller;
+use OCP\AppFramework\Http\DataResponse;
+use OCP\AppFramework\Http\FileDisplayResponse;
+use OCP\Files\IRootFolder;
+use OCP\ICacheFactory;
+use OCP\IRequest;
+use OCP\ITempManager;
+use OCP\Security\ISecureRandom;
+
+class PublicSessionController extends SessionController {
+
+ /**
+ * TODO: maybe set guestUserId in middleware
+ */
+
+ /**
+ * @PublicPage
+ */
+ public function push($transaction): DataResponse {
+ parent::push($transaction);
+ }
+
+}