public class FileSystemHook extends BaseHook
| Constructor and Description |
|---|
FileSystemHook() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public void deleteImage(com.liferay.portal.kernel.model.Image image)
public byte[] getImageAsBytes(com.liferay.portal.kernel.model.Image image)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic InputStream getImageAsStream(com.liferay.portal.kernel.model.Image image)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void updateImage(com.liferay.portal.kernel.model.Image image,
String type,
byte[] bytes)
protected String buildPath(String fileNameFragment)
protected File getFile(long imageId,
String type)