From e340ea8366159610fd9d5b7590874b750a797126 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Thu, 30 Jun 2022 00:17:47 +0300
Subject: ActivityPub: add missing Actor types
---
.../com/juick/www/api/activity/model/Context.java | 7 +++++--
.../www/api/activity/model/objects/Group.java | 22 ++++++++++++++++++++++
.../api/activity/model/objects/Organization.java | 22 ++++++++++++++++++++++
.../www/api/activity/model/objects/Service.java | 22 ++++++++++++++++++++++
4 files changed, 71 insertions(+), 2 deletions(-)
create mode 100644 src/main/java/com/juick/www/api/activity/model/objects/Group.java
create mode 100644 src/main/java/com/juick/www/api/activity/model/objects/Organization.java
create mode 100644 src/main/java/com/juick/www/api/activity/model/objects/Service.java
(limited to 'src/main/java/com/juick/www')
diff --git a/src/main/java/com/juick/www/api/activity/model/Context.java b/src/main/java/com/juick/www/api/activity/model/Context.java
index 66259b7b..63f991cc 100644
--- a/src/main/java/com/juick/www/api/activity/model/Context.java
+++ b/src/main/java/com/juick/www/api/activity/model/Context.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2020, Juick
+ * Copyright (C) 2008-2022, Juick
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -54,7 +54,10 @@ import java.util.Map;
@JsonSubTypes.Type(value = OrderedCollection.class, name = "OrderedCollection"),
@JsonSubTypes.Type(value = OrderedCollectionPage.class, name = "OrderedCollectionPage"),
@JsonSubTypes.Type(value = Person.class, name = "Person"),
- @JsonSubTypes.Type(value = Application.class, name = "Application")
+ @JsonSubTypes.Type(value = Application.class, name = "Application"),
+ @JsonSubTypes.Type(value = Service.class, name = "Service"),
+ @JsonSubTypes.Type(value = Group.class, name = "Group"),
+ @JsonSubTypes.Type(value = Organization.class, name = "Organization")
})
public class Context {
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Group.java b/src/main/java/com/juick/www/api/activity/model/objects/Group.java
new file mode 100644
index 00000000..c8470896
--- /dev/null
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Group.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2008-2022, Juick
+ *
+ * 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 .
+ */
+
+package com.juick.www.api.activity.model.objects;
+
+public class Group extends Actor {
+
+}
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Organization.java b/src/main/java/com/juick/www/api/activity/model/objects/Organization.java
new file mode 100644
index 00000000..d5d5c1eb
--- /dev/null
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Organization.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2008-2022, Juick
+ *
+ * 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 .
+ */
+
+package com.juick.www.api.activity.model.objects;
+
+public class Organization extends Actor {
+
+}
diff --git a/src/main/java/com/juick/www/api/activity/model/objects/Service.java b/src/main/java/com/juick/www/api/activity/model/objects/Service.java
new file mode 100644
index 00000000..cafbb3a9
--- /dev/null
+++ b/src/main/java/com/juick/www/api/activity/model/objects/Service.java
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2008-2022, Juick
+ *
+ * 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 .
+ */
+
+package com.juick.www.api.activity.model.objects;
+
+public class Service extends Actor {
+
+}
--
cgit v1.2.3