com.liferay.portal.image
Interface Hook


public interface Hook

View Source

Author:
Jorge Ferrer

Method Summary
 void deleteImage(Image imageId)
           
 byte[] getImageAsBytes(Image image)
           
 java.io.InputStream getImageAsStream(Image image)
           
 void updateImage(Image image, java.lang.String type, byte[] bytes)
           
 

Method Detail

deleteImage

void deleteImage(Image imageId)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageAsBytes

byte[] getImageAsBytes(Image image)
                       throws com.liferay.portal.kernel.exception.PortalException,
                              com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getImageAsStream

java.io.InputStream getImageAsStream(Image image)
                                     throws com.liferay.portal.kernel.exception.PortalException,
                                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

updateImage

void updateImage(Image image,
                 java.lang.String type,
                 byte[] bytes)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException