1 package org.argeo.cms.ui;
2
3 import java.io.InputStream;
4
5 import javax.jcr.Binary;
6 import javax.jcr.Node;
7 import javax.jcr.RepositoryException;
8
9 import org.eclipse.swt.graphics.Image;
10 import org.eclipse.swt.graphics.Point;
11 import org.eclipse.swt.widgets.Control;
12
13
14 public interface CmsImageManager {
15
16 public Boolean load(Node node, Control control, Point size) throws RepositoryException;
17
18
19 public Point getImageSize(Node node) throws RepositoryException;
20
21
22
23
24
25
26 public String getImageTag(Node node) throws RepositoryException;
27
28
29
30
31
32
33
34 public StringBuilder getImageTagBuilder(Node node, Point size) throws RepositoryException;
35
36
37
38
39
40 public String getImageUrl(Node node) throws RepositoryException;
41
42 public Binary getImageBinary(Node node) throws RepositoryException;
43
44 public Image getSwtImage(Node node) throws RepositoryException;
45
46
47 public String uploadImage(Node parentNode, String fileName, InputStream in) throws RepositoryException;
48 }