aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service/ImagesService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/service/ImagesService.java')
-rw-r--r--src/main/java/com/juick/service/ImagesService.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/ImagesService.java b/src/main/java/com/juick/service/ImagesService.java
index 3fb06c63..0891dca9 100644
--- a/src/main/java/com/juick/service/ImagesService.java
+++ b/src/main/java/com/juick/service/ImagesService.java
@@ -17,11 +17,14 @@
package com.juick.service;
+import com.juick.model.Attachment;
import com.juick.model.Message;
+import java.io.FileNotFoundException;
import java.io.IOException;
public interface ImagesService {
+
void setAttachmentMetadata(String baseUrl, Message msg) throws Exception;
/**
* Move attached image from temp folder to image folder.
@@ -38,4 +41,15 @@ public interface ImagesService {
* @param uid User id that is used to build image file names.
*/
void saveAvatar(String tempFilename, int uid) throws IOException;
+
+ String getTemporaryDirectory();
+
+ String getImageDirectory();
+
+ /**
+ * Get image metadata
+ * @param resource URL
+ * @return image metadata
+ */
+ Attachment getImageMetadata(String resourceUrl) throws FileNotFoundException, IOException;
}