Move required parameters for image into the image builder.
[Sone.git] / src / main / java / net / pterodactylus / sone / data / Album.java
index 09a7da4..8864f13 100644 (file)
@@ -26,6 +26,8 @@ import java.util.Comparator;
 import java.util.List;
 import javax.annotation.Nonnull;
 
+import net.pterodactylus.sone.database.ImageBuilder;
+
 import com.google.common.base.Function;
 import com.google.common.base.Predicate;
 import com.google.common.collect.FluentIterable;
@@ -178,14 +180,6 @@ public interface Album extends Identified, Fingerprintable {
        List<Image> getImages();
 
        /**
-        * Adds the given image to this album.
-        *
-        * @param image
-        *              The image to add
-        */
-       void addImage(Image image);
-
-       /**
         * Removes the given image from this album.
         *
         * @param image
@@ -276,6 +270,8 @@ public interface Album extends Identified, Fingerprintable {
         */
        String getDescription();
 
+       ImageBuilder newImageBuilder() throws IllegalStateException;
+
        /**
         * Returns a modifier for this album.
         *