com.liferay.portal.image
Class DLHook

java.lang.Object
  extended by com.liferay.portal.image.BaseHook
      extended by com.liferay.portal.image.DLHook
All Implemented Interfaces:
Hook

public class DLHook
extends BaseHook

View Source

Author:
Jorge Ferrer

Constructor Summary
DLHook()
           
 
Method Summary
 void deleteImage(com.liferay.portal.model.Image image)
           
protected  java.lang.String getFileName(long imageId, java.lang.String type)
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLHook

public DLHook()
Method Detail

deleteImage

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

getImageAsBytes

public 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

public 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

public 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

getFileName

protected java.lang.String getFileName(long imageId,
                                       java.lang.String type)