mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 04:18:53 +01:00
Addressing second round of review issues
This commit is contained in:
@@ -5,9 +5,9 @@ import org.briarproject.api.nullsafety.NotNullByDefault;
|
||||
import org.briarproject.api.sharing.Shareable;
|
||||
import org.briarproject.api.sync.Group;
|
||||
|
||||
import javax.annotation.concurrent.ThreadSafe;
|
||||
import javax.annotation.concurrent.Immutable;
|
||||
|
||||
@ThreadSafe
|
||||
@Immutable
|
||||
@NotNullByDefault
|
||||
public class Forum extends NamedGroup implements Shareable {
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package org.briarproject.api.forum;
|
||||
|
||||
import org.briarproject.api.clients.MessageTracker;
|
||||
import org.briarproject.api.crypto.CryptoExecutor;
|
||||
import org.briarproject.api.db.DbException;
|
||||
import org.briarproject.api.db.Transaction;
|
||||
import org.briarproject.api.identity.LocalAuthor;
|
||||
import org.briarproject.api.sync.ClientId;
|
||||
import org.briarproject.api.sync.GroupId;
|
||||
import org.briarproject.api.sync.MessageId;
|
||||
@@ -22,8 +24,9 @@ public interface ForumManager extends MessageTracker {
|
||||
void removeForum(Forum f) throws DbException;
|
||||
|
||||
/** Creates a local forum post. */
|
||||
ForumPost createLocalPost(GroupId groupId, String text,
|
||||
@Nullable MessageId parentId) throws DbException;
|
||||
@CryptoExecutor
|
||||
ForumPost createLocalPost(GroupId groupId, String body, long timestamp,
|
||||
@Nullable MessageId parentId, LocalAuthor author);
|
||||
|
||||
/** Stores a local forum post. */
|
||||
ForumPostHeader addLocalPost(ForumPost p) throws DbException;
|
||||
|
||||
Reference in New Issue
Block a user