X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Fdatabase%2FImageDatabase.java;h=e5142baf52340be181ad738616c95a6e0ccc45ae;hb=53164b673d81b508ba6ef0d8578c033f1eba1ddc;hp=ad1518b1301c38326074f7b96ff89a85b6008758;hpb=ba270a5f7762293fcb07758b16ee30db84a1c766;p=Sone.git
diff --git a/src/main/java/net/pterodactylus/sone/database/ImageDatabase.java b/src/main/java/net/pterodactylus/sone/database/ImageDatabase.java
index ad1518b..e5142ba 100644
--- a/src/main/java/net/pterodactylus/sone/database/ImageDatabase.java
+++ b/src/main/java/net/pterodactylus/sone/database/ImageDatabase.java
@@ -17,17 +17,26 @@
package net.pterodactylus.sone.database;
+import java.util.List;
+
+import net.pterodactylus.sone.data.Album;
import net.pterodactylus.sone.data.Image;
+import com.google.common.base.Optional;
+
/**
- * Combines an {@link ImageProvider}, an {@link ImageBuilderFactory}, and an
- * {@link ImageStore} into an image database.
+ * Database for handling {@link Image}s.
*
* @author David âBombeâ Roden
*/
-public interface ImageDatabase extends ImageProvider, ImageStore {
+public interface ImageDatabase {
+
+ Optional getImage(String imageId);
+ List getImages(Album parent);
void moveUp(Image image);
void moveDown(Image image);
+ void storeImage(Image image);
+ void removeImage(Image image);
}