Class ImageManagementServices
- java.lang.Object
-
- org.apache.ofbiz.product.imagemanagement.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
-
Constructor Summary
Constructors Constructor Description ImageManagementServices()
-
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)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resourceError
public static final java.lang.String resourceError
- See Also:
- Constant Field Values
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
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)
-
-