Class ImageManagementServices


  • public class ImageManagementServices
    extends java.lang.Object
    Product Services
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String module  
      static java.lang.String resource  
      static java.lang.String resourceError  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> addMultipleuploadForProduct​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.io.File checkExistsImage​(java.io.File file)  
      static java.util.Map<java.lang.String,​java.lang.Object> createContentAndDataResource​(DispatchContext dctx, GenericValue userLogin, java.lang.String filenameToUse, java.lang.String imageUrl, java.lang.String contentId, java.lang.String fileContentType)  
      static java.util.Map<java.lang.String,​java.lang.Object> createContentThumbnail​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context, GenericValue userLogin, java.nio.ByteBuffer imageData, java.lang.String productId, java.lang.String imageName)  
      static java.util.Map<java.lang.String,​java.lang.Object> createNewImageThumbnail​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> removeImageFileForImageManagement​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> renameImage​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> resizeImage​(java.awt.image.BufferedImage bufImg, double imgHeight, double imgWidth, double resizeHeight, double resizeWidth)  
      static java.util.Map<java.lang.String,​java.lang.Object> resizeImageOfProduct​(DispatchContext dctx, java.util.Map<java.lang.String,​? extends java.lang.Object> context)  
      static java.util.Map<java.lang.String,​java.lang.Object> resizeImageThumbnail​(java.awt.image.BufferedImage bufImg, double imgHeight, double imgWidth)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • ImageManagementServices

        public ImageManagementServices()
    • Method Detail

      • addMultipleuploadForProduct

        public static java.util.Map<java.lang.String,​java.lang.Object> addMultipleuploadForProduct​(DispatchContext dctx,
                                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)
                                                                                                  throws org.apache.commons.imaging.ImageReadException
        Throws:
        org.apache.commons.imaging.ImageReadException
      • removeImageFileForImageManagement

        public static java.util.Map<java.lang.String,​java.lang.Object> removeImageFileForImageManagement​(DispatchContext dctx,
                                                                                                               java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • createContentAndDataResource

        public static java.util.Map<java.lang.String,​java.lang.Object> createContentAndDataResource​(DispatchContext dctx,
                                                                                                          GenericValue userLogin,
                                                                                                          java.lang.String filenameToUse,
                                                                                                          java.lang.String imageUrl,
                                                                                                          java.lang.String contentId,
                                                                                                          java.lang.String fileContentType)
      • createContentThumbnail

        public static java.util.Map<java.lang.String,​java.lang.Object> createContentThumbnail​(DispatchContext dctx,
                                                                                                    java.util.Map<java.lang.String,​? extends java.lang.Object> context,
                                                                                                    GenericValue userLogin,
                                                                                                    java.nio.ByteBuffer imageData,
                                                                                                    java.lang.String productId,
                                                                                                    java.lang.String imageName)
                                                                                             throws org.apache.commons.imaging.ImageReadException
        Throws:
        org.apache.commons.imaging.ImageReadException
      • resizeImageThumbnail

        public static java.util.Map<java.lang.String,​java.lang.Object> resizeImageThumbnail​(java.awt.image.BufferedImage bufImg,
                                                                                                  double imgHeight,
                                                                                                  double imgWidth)
      • checkExistsImage

        public static java.io.File checkExistsImage​(java.io.File file)
      • resizeImage

        public static java.util.Map<java.lang.String,​java.lang.Object> resizeImage​(java.awt.image.BufferedImage bufImg,
                                                                                         double imgHeight,
                                                                                         double imgWidth,
                                                                                         double resizeHeight,
                                                                                         double resizeWidth)
      • createNewImageThumbnail

        public static java.util.Map<java.lang.String,​java.lang.Object> createNewImageThumbnail​(DispatchContext dctx,
                                                                                                     java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • resizeImageOfProduct

        public static java.util.Map<java.lang.String,​java.lang.Object> resizeImageOfProduct​(DispatchContext dctx,
                                                                                                  java.util.Map<java.lang.String,​? extends java.lang.Object> context)
      • renameImage

        public static java.util.Map<java.lang.String,​java.lang.Object> renameImage​(DispatchContext dctx,
                                                                                         java.util.Map<java.lang.String,​? extends java.lang.Object> context)