Liferay 6.1.2-ce-ga3

com.liferay.portal.image
Class FileSystemHook

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

public class FileSystemHook
extends BaseHook


Constructor Summary
FileSystemHook()
           
 
Method Summary
protected  String buildPath(String fileNameFragment)
           
 void deleteImage(Image image)
           
protected  File getFile(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

FileSystemHook

public FileSystemHook()
Method Detail

deleteImage

public void deleteImage(Image image)

getImageAsBytes

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

getImageAsStream

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

updateImage

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

buildPath

protected String buildPath(String fileNameFragment)

getFile

protected File getFile(long imageId,
                       String type)

Liferay 6.1.2-ce-ga3