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