mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Add transactional versions of BlogManager methods
This commit is contained in:
@@ -74,6 +74,13 @@ public interface BlogManager {
|
||||
@Nullable String comment, BlogPostHeader parentHeader)
|
||||
throws DbException;
|
||||
|
||||
/**
|
||||
* Adds a comment to an existing blog post or reblogs it.
|
||||
*/
|
||||
void addLocalComment(Transaction txn, LocalAuthor author,
|
||||
GroupId groupId, @Nullable String comment,
|
||||
BlogPostHeader parentHeader) throws DbException;
|
||||
|
||||
/**
|
||||
* Returns the blog with the given ID.
|
||||
*/
|
||||
@@ -99,6 +106,11 @@ public interface BlogManager {
|
||||
*/
|
||||
Collection<Blog> getBlogs() throws DbException;
|
||||
|
||||
/**
|
||||
* Returns all blogs to which the user subscribes.
|
||||
*/
|
||||
Collection<Blog> getBlogs(Transaction txn) throws DbException;
|
||||
|
||||
/**
|
||||
* Returns the group IDs of all blogs to which the user subscribes.
|
||||
*/
|
||||
@@ -136,6 +148,11 @@ public interface BlogManager {
|
||||
*/
|
||||
void setReadFlag(MessageId m, boolean read) throws DbException;
|
||||
|
||||
/**
|
||||
* Marks a blog post as read or unread.
|
||||
*/
|
||||
void setReadFlag(Transaction txn, MessageId m, boolean read) throws DbException;
|
||||
|
||||
/**
|
||||
* Registers a hook to be called whenever a blog is removed.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user