mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
When a contact is added, her personal blog will also be added automatically. Also, when a new identity is added, a personal blog for that identity is created. Part of #436
22 lines
706 B
Java
22 lines
706 B
Java
package org.briarproject.api.blogs;
|
|
|
|
import org.briarproject.api.FormatException;
|
|
import org.briarproject.api.contact.Contact;
|
|
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);
|
|
|
|
/** Creates a personal blog for a given author. */
|
|
Blog createPersonalBlog(@NotNull Author author);
|
|
|
|
/** Parses a blog with the given Group and description */
|
|
Blog parseBlog(@NotNull Group g, @NotNull String description)
|
|
throws FormatException;
|
|
}
|