import java.util.Set;
import net.pterodactylus.sone.core.Options;
+import net.pterodactylus.sone.database.AlbumBuilder;
import net.pterodactylus.sone.freenet.wot.Identity;
import net.pterodactylus.sone.freenet.wot.OwnIdentity;
import net.pterodactylus.sone.template.SoneAccessor;
/* TODO - remove this method again, maybe add an option provider */
void setOptions(Options options);
+ AlbumBuilder newAlbumBuilder();
+
}
import net.pterodactylus.sone.data.Profile;
import net.pterodactylus.sone.data.Reply;
import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.database.AlbumBuilder;
import net.pterodactylus.sone.freenet.wot.Identity;
import net.pterodactylus.util.logging.Logging;
private final Set<String> likedReplyIds = new CopyOnWriteArraySet<String>();
/** The root album containing all albums. */
- private final Album rootAlbum = new DefaultAlbum(this, null);
+ private final DefaultAlbum rootAlbum = new DefaultAlbum(this, null);
/** Sone-specific options. */
private Options options = new Options();
this.options = options;
}
+ @Override
+ public AlbumBuilder newAlbumBuilder() {
+ return new DefaultAlbumBuilder(this, rootAlbum);
+ }
+
//
// FINGERPRINTABLE METHODS
//