Liferay 7.0-ga1 portal-impl

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:
com.liferay.portal.kernel.image.Hook

public class FileSystemHook
extends BaseHook


Constructor Summary
FileSystemHook()
           
 
Method Summary
protected  String buildPath(String fileNameFragment)
           
 void deleteImage(com.liferay.portal.kernel.model.Image image)
           
protected  File getFile(long imageId, String type)
           
 byte[] getImageAsBytes(com.liferay.portal.kernel.model.Image image)
           
 InputStream getImageAsStream(com.liferay.portal.kernel.model.Image image)
           
 void updateImage(com.liferay.portal.kernel.model.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()
               throws IOException
Throws:
IOException
Method Detail

deleteImage

public void deleteImage(com.liferay.portal.kernel.model.Image image)

getImageAsBytes

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

getImageAsStream

public InputStream getImageAsStream(com.liferay.portal.kernel.model.Image image)
                             throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateImage

public void updateImage(com.liferay.portal.kernel.model.Image image,
                        String type,
                        byte[] bytes)

buildPath

protected String buildPath(String fileNameFragment)

getFile

protected File getFile(long imageId,
                       String type)

Liferay 7.0-ga1 portal-impl