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=7708df5b6f4d1cf1416a8202b825a4f6f78f289e;hp=b5e436dd9b2f2f0e861489fa76203d34ad048599;hpb=9d32a0f70e14a764946ae29edcf07304f9e5f75e;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 b5e436d..e5142ba 100644
--- a/src/main/java/net/pterodactylus/sone/database/ImageDatabase.java
+++ b/src/main/java/net/pterodactylus/sone/database/ImageDatabase.java
@@ -17,14 +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, ImageBuilderFactory, ImageStore {
+public interface ImageDatabase {
+
+ Optional getImage(String imageId);
+ List getImages(Album parent);
- /* nothing here. */
+ void moveUp(Image image);
+ void moveDown(Image image);
+ void storeImage(Image image);
+ void removeImage(Image image);
}