mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
This implements a simple initial blog client that covers the basic blog actions, but no deletion/removal of blogs, yet. Classes for Blogs and Blog Post Headers have been introduced along with the associated factories. A `BlogPostValidator` has been added that validates incoming blog posts. Closes #402 Closes #404
18 lines
558 B
Java
18 lines
558 B
Java
package org.briarproject.api.blogs;
|
|
|
|
import org.briarproject.api.FormatException;
|
|
import org.briarproject.api.identity.Author;
|
|
import org.briarproject.api.sync.Group;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public interface BlogFactory {
|
|
|
|
/** Creates a blog with the given name, description and author. */
|
|
Blog createBlog(@NotNull String name, @NotNull String description,
|
|
@NotNull Author author);
|
|
|
|
/** Parses a blog with the given Group and description */
|
|
Blog parseBlog(@NotNull Group g, @NotNull String description)
|
|
throws FormatException;
|
|
}
|