mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Removes teaser and makes body mandatory. It also adds support for deleting blogs and introduces a getAuthorStatus() method to the IdentityManager that takes a running transaction.
20 lines
651 B
Java
20 lines
651 B
Java
package org.briarproject.api.blogs;
|
|
|
|
import org.briarproject.api.FormatException;
|
|
import org.briarproject.api.identity.LocalAuthor;
|
|
import org.briarproject.api.sync.GroupId;
|
|
import org.briarproject.api.sync.MessageId;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
import java.security.GeneralSecurityException;
|
|
|
|
public interface BlogPostFactory {
|
|
|
|
BlogPost createBlogPost(@NotNull GroupId groupId, @Nullable String title,
|
|
long timestamp, @Nullable MessageId parent,
|
|
@NotNull LocalAuthor author, @NotNull String contentType,
|
|
@NotNull byte[] body)
|
|
throws FormatException, GeneralSecurityException;
|
|
}
|