Backend for Automatic Personal Blogs

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
This commit is contained in:
Torsten Grote
2016-06-21 17:00:13 -03:00
parent 30fe9f6e2a
commit a8f51fcb8a
8 changed files with 135 additions and 11 deletions

View File

@@ -11,13 +11,16 @@ public class Blog extends Forum {
private final String description;
@NotNull
private final Author author;
private final boolean permanent;
public Blog(@NotNull Group group, @NotNull String name,
@NotNull String description, @NotNull Author author) {
@NotNull String description, @NotNull Author author,
boolean permanent) {
super(group, name, null);
this.description = description;
this.author = author;
this.permanent = permanent;
}
@NotNull
@@ -29,4 +32,8 @@ public class Blog extends Forum {
public Author getAuthor() {
return author;
}
public boolean isPermanent() {
return permanent;
}
}