public class ResizeAvatarPictureListener extends Object implements EventListener
| Modifier and Type | Field and Description |
|---|---|
protected static int |
RESIZED_IMAGE_HEIGHT |
protected static int |
RESIZED_IMAGE_WIDTH |
| Constructor and Description |
|---|
ResizeAvatarPictureListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleEvent(Event event)
Handle the given event.
|
protected boolean |
isBeforeUpdate(Event event) |
protected void |
resizeAvatar(DocumentModel doc,
Blob avatarImage) |
protected static final int RESIZED_IMAGE_WIDTH
protected static final int RESIZED_IMAGE_HEIGHT
public ResizeAvatarPictureListener()
public void handleEvent(Event event)
EventListenerEvent.cancel()handleEvent in interface EventListenerevent - the eventprotected boolean isBeforeUpdate(Event event)
protected void resizeAvatar(DocumentModel doc, Blob avatarImage) throws PropertyException
PropertyExceptionCopyright © 2016 Nuxeo SA. All rights reserved.