com.liferay.portal.image
Interface Hook

All Known Implementing Classes:
BaseHook, DatabaseHook, DLHook, FileSystemHook

public interface Hook

View Source

Author:
Jorge Ferrer

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

Method Detail

deleteImage

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

getImageAsBytes

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

getImageAsStream

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

updateImage

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