Liferay 7.0-ce-b4

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


Constructor Summary
DLHook()
           
 
Method Summary
 void deleteImage(Image image)
           
protected  String getFileName(long imageId, String type)
           
 byte[] getImageAsBytes(Image image)
           
 InputStream getImageAsStream(Image image)
           
 void updateImage(Image image, 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(Image image)
                 throws PortalException
Throws:
PortalException

getImageAsBytes

public byte[] getImageAsBytes(Image image)
                       throws PortalException
Throws:
PortalException

getImageAsStream

public InputStream getImageAsStream(Image image)
                             throws PortalException
Throws:
PortalException

updateImage

public void updateImage(Image image,
                        String type,
                        byte[] bytes)
                 throws PortalException
Throws:
PortalException

getFileName

protected String getFileName(long imageId,
                             String type)

Liferay 7.0-ce-b4