Temporarily re-add deprecated CMS Image manager method.
[lgpl/argeo-commons.git] / org.argeo.cms.ui / src / org / argeo / cms / ui / CmsImageManager.java
index 9ac58fac2367952953313657ab993adf8f043d7d..e0cfa3112031b899b0f231b801e96a23c4f6c804 100644 (file)
@@ -44,5 +44,12 @@ public interface CmsImageManager {
        public Image getSwtImage(Node node) throws RepositoryException;
 
        /** @return URL */
-       public String uploadImage(Node context,Node uploadFolder, String fileName, InputStream in, String contentType) throws RepositoryException;
+       public String uploadImage(Node context, Node uploadFolder, String fileName, InputStream in, String contentType)
+                       throws RepositoryException;
+
+       @Deprecated
+       default String uploadImage(Node uploadFolder, String fileName, InputStream in) throws RepositoryException {
+               System.err.println("Context must be provided to " + CmsImageManager.class.getName());
+               return uploadImage(null, uploadFolder, fileName, in, null);
+       }
 }